{"action":"closed","number":3717,"pull_request":{"url":"https://api.github.com/repos/getsentry/sentry/pulls/3717","id":77371116,"html_url":"https://github.com/getsentry/sentry/pull/3717","diff_url":"https://github.com/getsentry/sentry/pull/3717.diff","patch_url":"https://github.com/getsentry/sentry/pull/3717.patch","issue_url":"https://api.github.com/repos/getsentry/sentry/issues/3717","number":3717,"state":"closed","locked":false,"title":"Add a small utility to wrap structlog.logger.bind()","user":{"login":"JTCunning","id":1189446,"avatar_url":"https://avatars.githubusercontent.com/u/1189446?v=3","gravatar_id":"","url":"https://api.github.com/users/JTCunning","html_url":"https://github.com/JTCunning","followers_url":"https://api.github.com/users/JTCunning/followers","following_url":"https://api.github.com/users/JTCunning/following{/other_user}","gists_url":"https://api.github.com/users/JTCunning/gists{/gist_id}","starred_url":"https://api.github.com/users/JTCunning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JTCunning/subscriptions","organizations_url":"https://api.github.com/users/JTCunning/orgs","repos_url":"https://api.github.com/users/JTCunning/repos","events_url":"https://api.github.com/users/JTCunning/events{/privacy}","received_events_url":"https://api.github.com/users/JTCunning/received_events","type":"User","site_admin":false},"body":"@mattrobenolt\r\n\r\nExample:\r\n```\r\nIn [1]: import logging\r\n\r\nIn [2]: logger = logging.getLogger('sentry.example')\r\n\r\nIn [3]: from sentry.logging import bind\r\n\r\nIn [4]: bind(logger.name, k1='v1')\r\nOut[4]: <BoundLogger...>\r\n\r\nIn [5]: logger.info('something.happened', extra={'k2':'v2'})\r\n[INFO] sentry.example: something.happened (k2='v2' k1='v1')\r\n```\r\n<!-- Reviewable:start -->\r\n---\r\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/getsentry/sentry/3717)\r\n<!-- Reviewable:end -->\r\n","created_at":"2016-07-13T22:15:41Z","updated_at":"2016-07-14T17:06:00Z","closed_at":"2016-07-14T17:06:00Z","merged_at":"2016-07-14T17:06:00Z","merge_commit_sha":"df96cf0c02bdd95742091fba455bf2d7eaa0a46f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/getsentry/sentry/pulls/3717/commits","review_comments_url":"https://api.github.com/repos/getsentry/sentry/pulls/3717/comments","review_comment_url":"https://api.github.com/repos/getsentry/sentry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getsentry/sentry/issues/3717/comments","statuses_url":"https://api.github.com/repos/getsentry/sentry/statuses/27ee8ded483d89532bc5a1bb3c5edfd11f3dab3d","head":{"label":"getsentry:bind_util","ref":"bind_util","sha":"27ee8ded483d89532bc5a1bb3c5edfd11f3dab3d","user":{"login":"getsentry","id":1396951,"avatar_url":"https://avatars.githubusercontent.com/u/1396951?v=3","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"repo":{"id":873328,"name":"sentry","full_name":"getsentry/sentry","owner":{"login":"getsentry","id":1396951,"avatar_url":"https://avatars.githubusercontent.com/u/1396951?v=3","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getsentry/sentry","description":"Sentry is cross-platform crash reporting built with love","fork":false,"url":"https://api.github.com/repos/getsentry/sentry","forks_url":"https://api.github.com/repos/getsentry/sentry/forks","keys_url":"https://api.github.com/repos/getsentry/sentry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getsentry/sentry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getsentry/sentry/teams","hooks_url":"https://api.github.com/repos/getsentry/sentry/hooks","issue_events_url":"https://api.github.com/repos/getsentry/sentry/issues/events{/number}","events_url":"https://api.github.com/repos/getsentry/sentry/events","assignees_url":"https://api.github.com/repos/getsentry/sentry/assignees{/user}","branches_url":"https://api.github.com/repos/getsentry/sentry/branches{/branch}","tags_url":"https://api.github.com/repos/getsentry/sentry/tags","blobs_url":"https://api.github.com/repos/getsentry/sentry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getsentry/sentry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getsentry/sentry/git/refs{/sha}","trees_url":"https://api.github.com/repos/getsentry/sentry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getsentry/sentry/statuses/{sha}","languages_url":"https://api.github.com/repos/getsentry/sentry/languages","stargazers_url":"https://api.github.com/repos/getsentry/sentry/stargazers","contributors_url":"https://api.github.com/repos/getsentry/sentry/contributors","subscribers_url":"https://api.github.com/repos/getsentry/sentry/subscribers","subscription_url":"https://api.github.com/repos/getsentry/sentry/subscription","commits_url":"https://api.github.com/repos/getsentry/sentry/commits{/sha}","git_commits_url":"https://api.github.com/repos/getsentry/sentry/git/commits{/sha}","comments_url":"https://api.github.com/repos/getsentry/sentry/comments{/number}","issue_comment_url":"https://api.github.com/repos/getsentry/sentry/issues/comments{/number}","contents_url":"https://api.github.com/repos/getsentry/sentry/contents/{+path}","compare_url":"https://api.github.com/repos/getsentry/sentry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getsentry/sentry/merges","archive_url":"https://api.github.com/repos/getsentry/sentry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getsentry/sentry/downloads","issues_url":"https://api.github.com/repos/getsentry/sentry/issues{/number}","pulls_url":"https://api.github.com/repos/getsentry/sentry/pulls{/number}","milestones_url":"https://api.github.com/repos/getsentry/sentry/milestones{/number}","notifications_url":"https://api.github.com/repos/getsentry/sentry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getsentry/sentry/labels{/name}","releases_url":"https://api.github.com/repos/getsentry/sentry/releases{/id}","deployments_url":"https://api.github.com/repos/getsentry/sentry/deployments","created_at":"2010-08-30T22:06:41Z","updated_at":"2016-07-14T16:33:06Z","pushed_at":"2016-07-14T17:06:00Z","git_url":"git://github.com/getsentry/sentry.git","ssh_url":"git@github.com:getsentry/sentry.git","clone_url":"https://github.com/getsentry/sentry.git","svn_url":"https://github.com/getsentry/sentry","homepage":"https://getsentry.com","size":101784,"stargazers_count":9764,"watchers_count":9764,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1169,"mirror_url":null,"open_issues_count":366,"forks":1169,"open_issues":366,"watchers":9764,"default_branch":"master"}},"base":{"label":"getsentry:master","ref":"master","sha":"2c24b11cdf18112b1f8c0b62a0ed9c89dce176af","user":{"login":"getsentry","id":1396951,"avatar_url":"https://avatars.githubusercontent.com/u/1396951?v=3","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"repo":{"id":873328,"name":"sentry","full_name":"getsentry/sentry","owner":{"login":"getsentry","id":1396951,"avatar_url":"https://avatars.githubusercontent.com/u/1396951?v=3","gravatar_id":"","url":"https://api.github.com/users/getsentry","html_url":"https://github.com/getsentry","followers_url":"https://api.github.com/users/getsentry/followers","following_url":"https://api.github.com/users/getsentry/following{/other_user}","gists_url":"https://api.github.com/users/getsentry/gists{/gist_id}","starred_url":"https://api.github.com/users/getsentry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getsentry/subscriptions","organizations_url":"https://api.github.com/users/getsentry/orgs","repos_url":"https://api.github.com/users/getsentry/repos","events_url":"https://api.github.com/users/getsentry/events{/privacy}","received_events_url":"https://api.github.com/users/getsentry/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getsentry/sentry","description":"Sentry is cross-platform crash reporting built with love","fork":false,"url":"https://api.github.com/repos/getsentry/sentry","forks_url":"https://api.github.com/repos/getsentry/sentry/forks","keys_url":"https://api.github.com/repos/getsentry/sentry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getsentry/sentry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getsentry/sentry/teams","hooks_url":"https://api.github.com/repos/getsentry/sentry/hooks","issue_events_url":"https://api.github.com/repos/getsentry/sentry/issues/events{/number}","events_url":"https://api.github.com/repos/getsentry/sentry/events","assignees_url":"https://api.github.com/repos/getsentry/sentry/assignees{/user}","branches_url":"https://api.github.com/repos/getsentry/sentry/branches{/branch}","tags_url":"https://api.github.com/repos/getsentry/sentry/tags","blobs_url":"https://api.github.com/repos/getsentry/sentry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getsentry/sentry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getsentry/sentry/git/refs{/sha}","trees_url":"https://api.github.com/repos/getsentry/sentry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getsentry/sentry/statuses/{sha}","languages_url":"https://api.github.com/repos/getsentry/sentry/languages","stargazers_url":"https://api.github.com/repos/getsentry/sentry/stargazers","contributors_url":"https://api.github.com/repos/getsentry/sentry/contributors","subscribers_url":"https://api.github.com/repos/getsentry/sentry/subscribers","subscription_url":"https://api.github.com/repos/getsentry/sentry/subscription","commits_url":"https://api.github.com/repos/getsentry/sentry/commits{/sha}","git_commits_url":"https://api.github.com/repos/getsentry/sentry/git/commits{/sha}","comments_url":"https://api.github.com/repos/getsentry/sentry/comments{/number}","issue_comment_url":"https://api.github.com/repos/getsentry/sentry/issues/comments{/number}","contents_url":"https://api.github.com/repos/getsentry/sentry/contents/{+path}","compare_url":"https://api.github.com/repos/getsentry/sentry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getsentry/sentry/merges","archive_url":"https://api.github.com/repos/getsentry/sentry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getsentry/sentry/downloads","issues_url":"https://api.github.com/repos/getsentry/sentry/issues{/number}","pulls_url":"https://api.github.com/repos/getsentry/sentry/pulls{/number}","milestones_url":"https://api.github.com/repos/getsentry/sentry/milestones{/number}","notifications_url":"https://api.github.com/repos/getsentry/sentry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getsentry/sentry/labels{/name}","releases_url":"https://api.github.com/repos/getsentry/sentry/releases{/id}","deployments_url":"https://api.github.com/repos/getsentry/sentry/deployments","created_at":"2010-08-30T22:06:41Z","updated_at":"2016-07-14T16:33:06Z","pushed_at":"2016-07-14T17:06:00Z","git_url":"git://github.com/getsentry/sentry.git","ssh_url":"git@github.com:getsentry/sentry.git","clone_url":"https://github.com/getsentry/sentry.git","svn_url":"https://github.com/getsentry/sentry","homepage":"https://getsentry.com","size":101784,"stargazers_count":9764,"watchers_count":9764,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1169,"mirror_url":null,"open_issues_count":366,"forks":1169,"open_issues":366,"watchers":9764,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/3717"},"html":{"href":"https://github.com/getsentry/sentry/pull/3717"},"issue":{"href":"https://api.github.com/repos/getsentry/sentry/issues/3717"},"comments":{"href":"https://api.github.com/repos/getsentry/sentry/issues/3717/comments"},"review_comments":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/3717/comments"},"review_comment":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getsentry/sentry/pulls/3717/commits"},"statuses":{"href":"https://api.github.com/repos/getsentry/sentry/statuses/27ee8ded483d89532bc5a1bb3c5edfd11f3dab3d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"JTCunning","id":1189446,"avatar_url":"https://avatars.githubusercontent.com/u/1189446?v=3","gravatar_id":"","url":"https://api.github.com/users/JTCunning","html_url":"https://github.com/JTCunning","followers_url":"https://api.github.com/users/JTCunning/followers","following_url":"https://api.github.com/users/JTCunning/following{/other_user}","gists_url":"https://api.github.com/users/JTCunning/gists{/gist_id}","starred_url":"https://api.github.com/users/JTCunning/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JTCunning/subscriptions","organizations_url":"https://api.github.com/users/JTCunning/orgs","repos_url":"https://api.github.com/users/JTCunning/repos","events_url":"https://api.github.com/users/JTCunning/events{/privacy}","received_events_url":"https://api.github.com/users/JTCunning/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":10,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"JTCunning"}}