{"action":"closed","number":226,"pull_request":{"url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/pulls/226","id":33499872,"html_url":"https://github.com/bugsnag/bugsnag-ruby/pull/226","diff_url":"https://github.com/bugsnag/bugsnag-ruby/pull/226.diff","patch_url":"https://github.com/bugsnag/bugsnag-ruby/pull/226.patch","issue_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/issues/226","number":226,"state":"closed","locked":false,"title":"Disable sending code by default","user":{"login":"zanker","id":323517,"avatar_url":"https://avatars.githubusercontent.com/u/323517?v=3","gravatar_id":"","url":"https://api.github.com/users/zanker","html_url":"https://github.com/zanker","followers_url":"https://api.github.com/users/zanker/followers","following_url":"https://api.github.com/users/zanker/following{/other_user}","gists_url":"https://api.github.com/users/zanker/gists{/gist_id}","starred_url":"https://api.github.com/users/zanker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanker/subscriptions","organizations_url":"https://api.github.com/users/zanker/orgs","repos_url":"https://api.github.com/users/zanker/repos","events_url":"https://api.github.com/users/zanker/events{/privacy}","received_events_url":"https://api.github.com/users/zanker/received_events","type":"User","site_admin":false},"body":"While the feature to send code by default is pretty cool, it causes terrible performance problems. We saw the time to send an exception go from ~1,000ms to ~200ms on a test case of:\r\n\r\n```ruby\r\nbegin\r\n  fail \"Test\"\r\nrescue => ex\r\n  Bugsnag.notify_or_ignore(ex)\r\nend\r\n```\r\n\r\nOn a lot of exceptions (such as IO), they tend to have a lot of lines because they are wrapped in a couple of exceptions, which Bugsnag unwinds and tries to load code for. It can end up being that you're opening 50+ files and making the payload for an exception much larger.","created_at":"2015-04-16T22:41:35Z","updated_at":"2015-04-18T02:58:10Z","closed_at":"2015-04-18T02:58:10Z","merged_at":null,"merge_commit_sha":"e339d5d1f2185e00bc3d02df8b0c758602850931","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/pulls/226/commits","review_comments_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/pulls/226/comments","review_comment_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/issues/226/comments","statuses_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/statuses/96b79e43951c92e20a2885c5206f674232a42f44","head":{"label":"zanker:zanker/disable-code-sending","ref":"zanker/disable-code-sending","sha":"96b79e43951c92e20a2885c5206f674232a42f44","user":{"login":"zanker","id":323517,"avatar_url":"https://avatars.githubusercontent.com/u/323517?v=3","gravatar_id":"","url":"https://api.github.com/users/zanker","html_url":"https://github.com/zanker","followers_url":"https://api.github.com/users/zanker/followers","following_url":"https://api.github.com/users/zanker/following{/other_user}","gists_url":"https://api.github.com/users/zanker/gists{/gist_id}","starred_url":"https://api.github.com/users/zanker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanker/subscriptions","organizations_url":"https://api.github.com/users/zanker/orgs","repos_url":"https://api.github.com/users/zanker/repos","events_url":"https://api.github.com/users/zanker/events{/privacy}","received_events_url":"https://api.github.com/users/zanker/received_events","type":"User","site_admin":false},"repo":{"id":34084181,"name":"bugsnag-ruby","full_name":"zanker/bugsnag-ruby","owner":{"login":"zanker","id":323517,"avatar_url":"https://avatars.githubusercontent.com/u/323517?v=3","gravatar_id":"","url":"https://api.github.com/users/zanker","html_url":"https://github.com/zanker","followers_url":"https://api.github.com/users/zanker/followers","following_url":"https://api.github.com/users/zanker/following{/other_user}","gists_url":"https://api.github.com/users/zanker/gists{/gist_id}","starred_url":"https://api.github.com/users/zanker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zanker/subscriptions","organizations_url":"https://api.github.com/users/zanker/orgs","repos_url":"https://api.github.com/users/zanker/repos","events_url":"https://api.github.com/users/zanker/events{/privacy}","received_events_url":"https://api.github.com/users/zanker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zanker/bugsnag-ruby","description":"Bugsnag error monitoring for rails, sinatra, rack and ruby","fork":true,"url":"https://api.github.com/repos/zanker/bugsnag-ruby","forks_url":"https://api.github.com/repos/zanker/bugsnag-ruby/forks","keys_url":"https://api.github.com/repos/zanker/bugsnag-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zanker/bugsnag-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zanker/bugsnag-ruby/teams","hooks_url":"https://api.github.com/repos/zanker/bugsnag-ruby/hooks","issue_events_url":"https://api.github.com/repos/zanker/bugsnag-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/zanker/bugsnag-ruby/events","assignees_url":"https://api.github.com/repos/zanker/bugsnag-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/zanker/bugsnag-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/zanker/bugsnag-ruby/tags","blobs_url":"https://api.github.com/repos/zanker/bugsnag-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zanker/bugsnag-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zanker/bugsnag-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/zanker/bugsnag-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zanker/bugsnag-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/zanker/bugsnag-ruby/languages","stargazers_url":"https://api.github.com/repos/zanker/bugsnag-ruby/stargazers","contributors_url":"https://api.github.com/repos/zanker/bugsnag-ruby/contributors","subscribers_url":"https://api.github.com/repos/zanker/bugsnag-ruby/subscribers","subscription_url":"https://api.github.com/repos/zanker/bugsnag-ruby/subscription","commits_url":"https://api.github.com/repos/zanker/bugsnag-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/zanker/bugsnag-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/zanker/bugsnag-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/zanker/bugsnag-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/zanker/bugsnag-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/zanker/bugsnag-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zanker/bugsnag-ruby/merges","archive_url":"https://api.github.com/repos/zanker/bugsnag-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zanker/bugsnag-ruby/downloads","issues_url":"https://api.github.com/repos/zanker/bugsnag-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/zanker/bugsnag-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/zanker/bugsnag-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/zanker/bugsnag-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zanker/bugsnag-ruby/labels{/name}","releases_url":"https://api.github.com/repos/zanker/bugsnag-ruby/releases{/id}","created_at":"2015-04-16T22:36:52Z","updated_at":"2015-04-16T22:36:53Z","pushed_at":"2015-04-18T01:23:17Z","git_url":"git://github.com/zanker/bugsnag-ruby.git","ssh_url":"git@github.com:zanker/bugsnag-ruby.git","clone_url":"https://github.com/zanker/bugsnag-ruby.git","svn_url":"https://github.com/zanker/bugsnag-ruby","homepage":"https://bugsnag.com/docs/notifiers/ruby","size":782,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bugsnag:master","ref":"master","sha":"ca3b35f4e2f95d89bec9ef46f88b1c64376f59a1","user":{"login":"bugsnag","id":1058895,"avatar_url":"https://avatars.githubusercontent.com/u/1058895?v=3","gravatar_id":"","url":"https://api.github.com/users/bugsnag","html_url":"https://github.com/bugsnag","followers_url":"https://api.github.com/users/bugsnag/followers","following_url":"https://api.github.com/users/bugsnag/following{/other_user}","gists_url":"https://api.github.com/users/bugsnag/gists{/gist_id}","starred_url":"https://api.github.com/users/bugsnag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bugsnag/subscriptions","organizations_url":"https://api.github.com/users/bugsnag/orgs","repos_url":"https://api.github.com/users/bugsnag/repos","events_url":"https://api.github.com/users/bugsnag/events{/privacy}","received_events_url":"https://api.github.com/users/bugsnag/received_events","type":"Organization","site_admin":false},"repo":{"id":2545189,"name":"bugsnag-ruby","full_name":"bugsnag/bugsnag-ruby","owner":{"login":"bugsnag","id":1058895,"avatar_url":"https://avatars.githubusercontent.com/u/1058895?v=3","gravatar_id":"","url":"https://api.github.com/users/bugsnag","html_url":"https://github.com/bugsnag","followers_url":"https://api.github.com/users/bugsnag/followers","following_url":"https://api.github.com/users/bugsnag/following{/other_user}","gists_url":"https://api.github.com/users/bugsnag/gists{/gist_id}","starred_url":"https://api.github.com/users/bugsnag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bugsnag/subscriptions","organizations_url":"https://api.github.com/users/bugsnag/orgs","repos_url":"https://api.github.com/users/bugsnag/repos","events_url":"https://api.github.com/users/bugsnag/events{/privacy}","received_events_url":"https://api.github.com/users/bugsnag/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bugsnag/bugsnag-ruby","description":"Bugsnag error monitoring for rails, sinatra, rack and ruby","fork":false,"url":"https://api.github.com/repos/bugsnag/bugsnag-ruby","forks_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/forks","keys_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/teams","hooks_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/hooks","issue_events_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/events","assignees_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/tags","blobs_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/languages","stargazers_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/stargazers","contributors_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/contributors","subscribers_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/subscribers","subscription_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/subscription","commits_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/merges","archive_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/downloads","issues_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/labels{/name}","releases_url":"https://api.github.com/repos/bugsnag/bugsnag-ruby/releases{/id}","created_at":"2011-10-10T00:15:17Z","updated_at":"2015-04-18T02:56:49Z","pushed_at":"2015-04-18T02:56:49Z","git_url":"git://github.com/bugsnag/bugsnag-ruby.git","ssh_url":"git@github.com:bugsnag/bugsnag-ruby.git","clone_url":"https://github.com/bugsnag/bugsnag-ruby.git","svn_url":"https://github.com/bugsnag/bugsnag-ruby","homepage":"https://bugsnag.com/docs/notifiers/ruby","size":2928,"stargazers_count":91,"watchers_count":91,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":6,"forks":53,"open_issues":6,"watchers":91,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bugsnag/bugsnag-ruby/pulls/226"},"html":{"href":"https://github.com/bugsnag/bugsnag-ruby/pull/226"},"issue":{"href":"https://api.github.com/repos/bugsnag/bugsnag-ruby/issues/226"},"comments":{"href":"https://api.github.com/repos/bugsnag/bugsnag-ruby/issues/226/comments"},"review_comments":{"href":"https://api.github.com/repos/bugsnag/bugsnag-ruby/pulls/226/comments"},"review_comment":{"href":"https://api.github.com/repos/bugsnag/bugsnag-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bugsnag/bugsnag-ruby/pulls/226/commits"},"statuses":{"href":"https://api.github.com/repos/bugsnag/bugsnag-ruby/statuses/96b79e43951c92e20a2885c5206f674232a42f44"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":10,"deletions":4,"changed_files":2}}