{"action":"created","issue":{"url":"https://api.github.com/repos/getsentry/raven-python/issues/635","labels_url":"https://api.github.com/repos/getsentry/raven-python/issues/635/labels{/name}","comments_url":"https://api.github.com/repos/getsentry/raven-python/issues/635/comments","events_url":"https://api.github.com/repos/getsentry/raven-python/issues/635/events","html_url":"https://github.com/getsentry/raven-python/pull/635","id":99194398,"number":635,"title":"Only fetch context when sending exception and message","user":{"login":"lepture","id":290496,"avatar_url":"https://avatars.githubusercontent.com/u/290496?v=3","gravatar_id":"","url":"https://api.github.com/users/lepture","html_url":"https://github.com/lepture","followers_url":"https://api.github.com/users/lepture/followers","following_url":"https://api.github.com/users/lepture/following{/other_user}","gists_url":"https://api.github.com/users/lepture/gists{/gist_id}","starred_url":"https://api.github.com/users/lepture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lepture/subscriptions","organizations_url":"https://api.github.com/users/lepture/orgs","repos_url":"https://api.github.com/users/lepture/repos","events_url":"https://api.github.com/users/lepture/events{/privacy}","received_events_url":"https://api.github.com/users/lepture/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-05T12:33:34Z","updated_at":"2015-08-05T19:29:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/getsentry/raven-python/pulls/635","html_url":"https://github.com/getsentry/raven-python/pull/635","diff_url":"https://github.com/getsentry/raven-python/pull/635.diff","patch_url":"https://github.com/getsentry/raven-python/pull/635.patch"},"body":"The `before_request` will be called every request. It costs 10+ ms to collect context\ninformation even if there is no errors.\n\nThis makes the application slow. The patch will change this behavior. It works like the tornado\nplugin. It will collect context information when there is an error."},"comment":{"url":"https://api.github.com/repos/getsentry/raven-python/issues/comments/128120821","html_url":"https://github.com/getsentry/raven-python/pull/635#issuecomment-128120821","issue_url":"https://api.github.com/repos/getsentry/raven-python/issues/635","id":128120821,"user":{"login":"dcramer","id":23610,"avatar_url":"https://avatars.githubusercontent.com/u/23610?v=3","gravatar_id":"","url":"https://api.github.com/users/dcramer","html_url":"https://github.com/dcramer","followers_url":"https://api.github.com/users/dcramer/followers","following_url":"https://api.github.com/users/dcramer/following{/other_user}","gists_url":"https://api.github.com/users/dcramer/gists{/gist_id}","starred_url":"https://api.github.com/users/dcramer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcramer/subscriptions","organizations_url":"https://api.github.com/users/dcramer/orgs","repos_url":"https://api.github.com/users/dcramer/repos","events_url":"https://api.github.com/users/dcramer/events{/privacy}","received_events_url":"https://api.github.com/users/dcramer/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T19:29:34Z","updated_at":"2015-08-05T19:29:34Z","body":"I think what I'd prefer is we support passing a function to the context methods for lazy execution rather than one-offing this with each integration"}}