{"action":"closed","number":46,"pull_request":{"url":"https://api.github.com/repos/TheRealReal/new-relixir/pulls/46","id":184151372,"html_url":"https://github.com/TheRealReal/new-relixir/pull/46","diff_url":"https://github.com/TheRealReal/new-relixir/pull/46.diff","patch_url":"https://github.com/TheRealReal/new-relixir/pull/46.patch","issue_url":"https://api.github.com/repos/TheRealReal/new-relixir/issues/46","number":46,"state":"closed","locked":false,"title":"Add report_error and plug for exception handling","user":{"login":"cschilbe","id":485557,"avatar_url":"https://avatars1.githubusercontent.com/u/485557?v=4","gravatar_id":"","url":"https://api.github.com/users/cschilbe","html_url":"https://github.com/cschilbe","followers_url":"https://api.github.com/users/cschilbe/followers","following_url":"https://api.github.com/users/cschilbe/following{/other_user}","gists_url":"https://api.github.com/users/cschilbe/gists{/gist_id}","starred_url":"https://api.github.com/users/cschilbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschilbe/subscriptions","organizations_url":"https://api.github.com/users/cschilbe/orgs","repos_url":"https://api.github.com/users/cschilbe/repos","events_url":"https://api.github.com/users/cschilbe/events{/privacy}","received_events_url":"https://api.github.com/users/cschilbe/received_events","type":"User","site_admin":false},"body":"Send exception data to new relic.\r\n\r\nTo report all exceptions, use add `use NewRelixir.Plug.Exception` in phoenix router.\r\n\r\nTo report a caught exception, use `Transaction.report_error/2`\r\n\r\n\r\n### TODO: \r\n- [x] ~Does not support multiple error handlers~ Must call record_error directly\r\n\r\n- [ ] Does not report stack trace.\r\n\r\n","created_at":"2018-04-25T20:17:59Z","updated_at":"2018-05-02T22:01:30Z","closed_at":"2018-05-02T22:01:30Z","merged_at":"2018-05-02T22:01:30Z","merge_commit_sha":"0cbef2f32eb6430a3b5236bff92d6c829045b8a7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/TheRealReal/new-relixir/pulls/46/commits","review_comments_url":"https://api.github.com/repos/TheRealReal/new-relixir/pulls/46/comments","review_comment_url":"https://api.github.com/repos/TheRealReal/new-relixir/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TheRealReal/new-relixir/issues/46/comments","statuses_url":"https://api.github.com/repos/TheRealReal/new-relixir/statuses/dded4c84fd2ed17c4f30244f4ca800d007272c77","head":{"label":"TheRealReal:feature/155098206-report-errors-to-new-relic","ref":"feature/155098206-report-errors-to-new-relic","sha":"dded4c84fd2ed17c4f30244f4ca800d007272c77","user":{"login":"TheRealReal","id":2111388,"avatar_url":"https://avatars0.githubusercontent.com/u/2111388?v=4","gravatar_id":"","url":"https://api.github.com/users/TheRealReal","html_url":"https://github.com/TheRealReal","followers_url":"https://api.github.com/users/TheRealReal/followers","following_url":"https://api.github.com/users/TheRealReal/following{/other_user}","gists_url":"https://api.github.com/users/TheRealReal/gists{/gist_id}","starred_url":"https://api.github.com/users/TheRealReal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheRealReal/subscriptions","organizations_url":"https://api.github.com/users/TheRealReal/orgs","repos_url":"https://api.github.com/users/TheRealReal/repos","events_url":"https://api.github.com/users/TheRealReal/events{/privacy}","received_events_url":"https://api.github.com/users/TheRealReal/received_events","type":"Organization","site_admin":false},"repo":{"id":48519237,"name":"new-relixir","full_name":"TheRealReal/new-relixir","owner":{"login":"TheRealReal","id":2111388,"avatar_url":"https://avatars0.githubusercontent.com/u/2111388?v=4","gravatar_id":"","url":"https://api.github.com/users/TheRealReal","html_url":"https://github.com/TheRealReal","followers_url":"https://api.github.com/users/TheRealReal/followers","following_url":"https://api.github.com/users/TheRealReal/following{/other_user}","gists_url":"https://api.github.com/users/TheRealReal/gists{/gist_id}","starred_url":"https://api.github.com/users/TheRealReal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheRealReal/subscriptions","organizations_url":"https://api.github.com/users/TheRealReal/orgs","repos_url":"https://api.github.com/users/TheRealReal/repos","events_url":"https://api.github.com/users/TheRealReal/events{/privacy}","received_events_url":"https://api.github.com/users/TheRealReal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TheRealReal/new-relixir","description":"New Relic tracking for Phoenix and Plug applications.","fork":false,"url":"https://api.github.com/repos/TheRealReal/new-relixir","forks_url":"https://api.github.com/repos/TheRealReal/new-relixir/forks","keys_url":"https://api.github.com/repos/TheRealReal/new-relixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheRealReal/new-relixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheRealReal/new-relixir/teams","hooks_url":"https://api.github.com/repos/TheRealReal/new-relixir/hooks","issue_events_url":"https://api.github.com/repos/TheRealReal/new-relixir/issues/events{/number}","events_url":"https://api.github.com/repos/TheRealReal/new-relixir/events","assignees_url":"https://api.github.com/repos/TheRealReal/new-relixir/assignees{/user}","branches_url":"https://api.github.com/repos/TheRealReal/new-relixir/branches{/branch}","tags_url":"https://api.github.com/repos/TheRealReal/new-relixir/tags","blobs_url":"https://api.github.com/repos/TheRealReal/new-relixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheRealReal/new-relixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheRealReal/new-relixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheRealReal/new-relixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheRealReal/new-relixir/statuses/{sha}","languages_url":"https://api.github.com/repos/TheRealReal/new-relixir/languages","stargazers_url":"https://api.github.com/repos/TheRealReal/new-relixir/stargazers","contributors_url":"https://api.github.com/repos/TheRealReal/new-relixir/contributors","subscribers_url":"https://api.github.com/repos/TheRealReal/new-relixir/subscribers","subscription_url":"https://api.github.com/repos/TheRealReal/new-relixir/subscription","commits_url":"https://api.github.com/repos/TheRealReal/new-relixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheRealReal/new-relixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheRealReal/new-relixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheRealReal/new-relixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheRealReal/new-relixir/contents/{+path}","compare_url":"https://api.github.com/repos/TheRealReal/new-relixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheRealReal/new-relixir/merges","archive_url":"https://api.github.com/repos/TheRealReal/new-relixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheRealReal/new-relixir/downloads","issues_url":"https://api.github.com/repos/TheRealReal/new-relixir/issues{/number}","pulls_url":"https://api.github.com/repos/TheRealReal/new-relixir/pulls{/number}","milestones_url":"https://api.github.com/repos/TheRealReal/new-relixir/milestones{/number}","notifications_url":"https://api.github.com/repos/TheRealReal/new-relixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheRealReal/new-relixir/labels{/name}","releases_url":"https://api.github.com/repos/TheRealReal/new-relixir/releases{/id}","deployments_url":"https://api.github.com/repos/TheRealReal/new-relixir/deployments","created_at":"2015-12-24T01:48:32Z","updated_at":"2018-05-02T08:50:37Z","pushed_at":"2018-05-02T22:01:30Z","git_url":"git://github.com/TheRealReal/new-relixir.git","ssh_url":"git@github.com:TheRealReal/new-relixir.git","clone_url":"https://github.com/TheRealReal/new-relixir.git","svn_url":"https://github.com/TheRealReal/new-relixir","homepage":"","size":84,"stargazers_count":144,"watchers_count":144,"language":"Elixir","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":42,"open_issues":1,"watchers":144,"default_branch":"master"}},"base":{"label":"TheRealReal:master","ref":"master","sha":"ce2f209a256280897ccc31dcdebfc643db918a77","user":{"login":"TheRealReal","id":2111388,"avatar_url":"https://avatars0.githubusercontent.com/u/2111388?v=4","gravatar_id":"","url":"https://api.github.com/users/TheRealReal","html_url":"https://github.com/TheRealReal","followers_url":"https://api.github.com/users/TheRealReal/followers","following_url":"https://api.github.com/users/TheRealReal/following{/other_user}","gists_url":"https://api.github.com/users/TheRealReal/gists{/gist_id}","starred_url":"https://api.github.com/users/TheRealReal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheRealReal/subscriptions","organizations_url":"https://api.github.com/users/TheRealReal/orgs","repos_url":"https://api.github.com/users/TheRealReal/repos","events_url":"https://api.github.com/users/TheRealReal/events{/privacy}","received_events_url":"https://api.github.com/users/TheRealReal/received_events","type":"Organization","site_admin":false},"repo":{"id":48519237,"name":"new-relixir","full_name":"TheRealReal/new-relixir","owner":{"login":"TheRealReal","id":2111388,"avatar_url":"https://avatars0.githubusercontent.com/u/2111388?v=4","gravatar_id":"","url":"https://api.github.com/users/TheRealReal","html_url":"https://github.com/TheRealReal","followers_url":"https://api.github.com/users/TheRealReal/followers","following_url":"https://api.github.com/users/TheRealReal/following{/other_user}","gists_url":"https://api.github.com/users/TheRealReal/gists{/gist_id}","starred_url":"https://api.github.com/users/TheRealReal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheRealReal/subscriptions","organizations_url":"https://api.github.com/users/TheRealReal/orgs","repos_url":"https://api.github.com/users/TheRealReal/repos","events_url":"https://api.github.com/users/TheRealReal/events{/privacy}","received_events_url":"https://api.github.com/users/TheRealReal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TheRealReal/new-relixir","description":"New Relic tracking for Phoenix and Plug applications.","fork":false,"url":"https://api.github.com/repos/TheRealReal/new-relixir","forks_url":"https://api.github.com/repos/TheRealReal/new-relixir/forks","keys_url":"https://api.github.com/repos/TheRealReal/new-relixir/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheRealReal/new-relixir/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheRealReal/new-relixir/teams","hooks_url":"https://api.github.com/repos/TheRealReal/new-relixir/hooks","issue_events_url":"https://api.github.com/repos/TheRealReal/new-relixir/issues/events{/number}","events_url":"https://api.github.com/repos/TheRealReal/new-relixir/events","assignees_url":"https://api.github.com/repos/TheRealReal/new-relixir/assignees{/user}","branches_url":"https://api.github.com/repos/TheRealReal/new-relixir/branches{/branch}","tags_url":"https://api.github.com/repos/TheRealReal/new-relixir/tags","blobs_url":"https://api.github.com/repos/TheRealReal/new-relixir/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheRealReal/new-relixir/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheRealReal/new-relixir/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheRealReal/new-relixir/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheRealReal/new-relixir/statuses/{sha}","languages_url":"https://api.github.com/repos/TheRealReal/new-relixir/languages","stargazers_url":"https://api.github.com/repos/TheRealReal/new-relixir/stargazers","contributors_url":"https://api.github.com/repos/TheRealReal/new-relixir/contributors","subscribers_url":"https://api.github.com/repos/TheRealReal/new-relixir/subscribers","subscription_url":"https://api.github.com/repos/TheRealReal/new-relixir/subscription","commits_url":"https://api.github.com/repos/TheRealReal/new-relixir/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheRealReal/new-relixir/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheRealReal/new-relixir/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheRealReal/new-relixir/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheRealReal/new-relixir/contents/{+path}","compare_url":"https://api.github.com/repos/TheRealReal/new-relixir/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheRealReal/new-relixir/merges","archive_url":"https://api.github.com/repos/TheRealReal/new-relixir/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheRealReal/new-relixir/downloads","issues_url":"https://api.github.com/repos/TheRealReal/new-relixir/issues{/number}","pulls_url":"https://api.github.com/repos/TheRealReal/new-relixir/pulls{/number}","milestones_url":"https://api.github.com/repos/TheRealReal/new-relixir/milestones{/number}","notifications_url":"https://api.github.com/repos/TheRealReal/new-relixir/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheRealReal/new-relixir/labels{/name}","releases_url":"https://api.github.com/repos/TheRealReal/new-relixir/releases{/id}","deployments_url":"https://api.github.com/repos/TheRealReal/new-relixir/deployments","created_at":"2015-12-24T01:48:32Z","updated_at":"2018-05-02T08:50:37Z","pushed_at":"2018-05-02T22:01:30Z","git_url":"git://github.com/TheRealReal/new-relixir.git","ssh_url":"git@github.com:TheRealReal/new-relixir.git","clone_url":"https://github.com/TheRealReal/new-relixir.git","svn_url":"https://github.com/TheRealReal/new-relixir","homepage":"","size":84,"stargazers_count":144,"watchers_count":144,"language":"Elixir","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":42,"open_issues":1,"watchers":144,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/TheRealReal/new-relixir/pulls/46"},"html":{"href":"https://github.com/TheRealReal/new-relixir/pull/46"},"issue":{"href":"https://api.github.com/repos/TheRealReal/new-relixir/issues/46"},"comments":{"href":"https://api.github.com/repos/TheRealReal/new-relixir/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/TheRealReal/new-relixir/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/TheRealReal/new-relixir/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TheRealReal/new-relixir/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/TheRealReal/new-relixir/statuses/dded4c84fd2ed17c4f30244f4ca800d007272c77"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"coburncoburn","id":32463466,"avatar_url":"https://avatars0.githubusercontent.com/u/32463466?v=4","gravatar_id":"","url":"https://api.github.com/users/coburncoburn","html_url":"https://github.com/coburncoburn","followers_url":"https://api.github.com/users/coburncoburn/followers","following_url":"https://api.github.com/users/coburncoburn/following{/other_user}","gists_url":"https://api.github.com/users/coburncoburn/gists{/gist_id}","starred_url":"https://api.github.com/users/coburncoburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coburncoburn/subscriptions","organizations_url":"https://api.github.com/users/coburncoburn/orgs","repos_url":"https://api.github.com/users/coburncoburn/repos","events_url":"https://api.github.com/users/coburncoburn/events{/privacy}","received_events_url":"https://api.github.com/users/coburncoburn/received_events","type":"User","site_admin":false},"comments":6,"review_comments":15,"maintainer_can_modify":false,"commits":10,"additions":164,"deletions":4,"changed_files":9}}
{"actor":{"display_login":"coburncoburn"}}