{"action":"created","comment":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/comments/201392389","pull_request_review_id":135885671,"id":201392389,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTM5MjM4OQ==","diff_hunk":"@@ -76,7 +76,7 @@ def test_wrap_httplib_request(self):\n         method = 'GET'\n \n         with patch:\n-            wrapped(mock.Mock(), method, url)","path":"tests/unit/trace/ext/httplib/test_httplib_trace.py","position":4,"original_position":4,"commit_id":"c3c0d66854d798c4dd5197ac5a35dbeea24fda97","original_commit_id":"c3c0d66854d798c4dd5197ac5a35dbeea24fda97","user":{"login":"SergeyKanzhelev","id":9950081,"node_id":"MDQ6VXNlcjk5NTAwODE=","avatar_url":"https://avatars2.githubusercontent.com/u/9950081?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyKanzhelev","html_url":"https://github.com/SergeyKanzhelev","followers_url":"https://api.github.com/users/SergeyKanzhelev/followers","following_url":"https://api.github.com/users/SergeyKanzhelev/following{/other_user}","gists_url":"https://api.github.com/users/SergeyKanzhelev/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyKanzhelev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyKanzhelev/subscriptions","organizations_url":"https://api.github.com/users/SergeyKanzhelev/orgs","repos_url":"https://api.github.com/users/SergeyKanzhelev/repos","events_url":"https://api.github.com/users/SergeyKanzhelev/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyKanzhelev/received_events","type":"User","site_admin":false},"body":"This may be a separate work item though","created_at":"2018-07-10T15:38:55Z","updated_at":"2018-07-10T15:39:00Z","html_url":"https://github.com/census-instrumentation/opencensus-python/pull/220#discussion_r201392389","pull_request_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/220","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/comments/201392389"},"html":{"href":"https://github.com/census-instrumentation/opencensus-python/pull/220#discussion_r201392389"},"pull_request":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/220"}},"in_reply_to_id":201392326},"pull_request":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/220","id":198824069,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4ODI0MDY5","html_url":"https://github.com/census-instrumentation/opencensus-python/pull/220","diff_url":"https://github.com/census-instrumentation/opencensus-python/pull/220.diff","patch_url":"https://github.com/census-instrumentation/opencensus-python/pull/220.patch","issue_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/220","number":220,"state":"open","locked":false,"title":"Support trace propagation in httplib integration","user":{"login":"reyang","id":17327289,"node_id":"MDQ6VXNlcjE3MzI3Mjg5","avatar_url":"https://avatars1.githubusercontent.com/u/17327289?v=4","gravatar_id":"","url":"https://api.github.com/users/reyang","html_url":"https://github.com/reyang","followers_url":"https://api.github.com/users/reyang/followers","following_url":"https://api.github.com/users/reyang/following{/other_user}","gists_url":"https://api.github.com/users/reyang/gists{/gist_id}","starred_url":"https://api.github.com/users/reyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reyang/subscriptions","organizations_url":"https://api.github.com/users/reyang/orgs","repos_url":"https://api.github.com/users/reyang/repos","events_url":"https://api.github.com/users/reyang/events{/privacy}","received_events_url":"https://api.github.com/users/reyang/received_events","type":"User","site_admin":false},"body":"With this change, the httplib will propagate context while sending requests.\r\n\r\nSample code:\r\n\r\n```import requests\r\n\r\nfrom opencensus.trace import config_integration\r\nfrom opencensus.trace.tracer import Tracer\r\n\r\nconfig_integration.trace_integrations(['httplib'])\r\ntracer = Tracer()\r\n\r\ndef main():\r\n\twith tracer.span(name = 'client'):\r\n\t\tresponse = requests.get('http://localhost:5000')\r\n\t\tprint(response)\r\n\r\nif __name__ == '__main__':\r\n\tmain()\r\n```","created_at":"2018-07-03T00:56:09Z","updated_at":"2018-07-10T15:39:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27b8ee85c79804662603020d25bd4136a80db565","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/220/commits","review_comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/220/comments","review_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/220/comments","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/statuses/c3c0d66854d798c4dd5197ac5a35dbeea24fda97","head":{"label":"reyang:master","ref":"master","sha":"c3c0d66854d798c4dd5197ac5a35dbeea24fda97","user":{"login":"reyang","id":17327289,"node_id":"MDQ6VXNlcjE3MzI3Mjg5","avatar_url":"https://avatars1.githubusercontent.com/u/17327289?v=4","gravatar_id":"","url":"https://api.github.com/users/reyang","html_url":"https://github.com/reyang","followers_url":"https://api.github.com/users/reyang/followers","following_url":"https://api.github.com/users/reyang/following{/other_user}","gists_url":"https://api.github.com/users/reyang/gists{/gist_id}","starred_url":"https://api.github.com/users/reyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reyang/subscriptions","organizations_url":"https://api.github.com/users/reyang/orgs","repos_url":"https://api.github.com/users/reyang/repos","events_url":"https://api.github.com/users/reyang/events{/privacy}","received_events_url":"https://api.github.com/users/reyang/received_events","type":"User","site_admin":false},"repo":{"id":138814551,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg4MTQ1NTE=","name":"opencensus-python","full_name":"reyang/opencensus-python","owner":{"login":"reyang","id":17327289,"node_id":"MDQ6VXNlcjE3MzI3Mjg5","avatar_url":"https://avatars1.githubusercontent.com/u/17327289?v=4","gravatar_id":"","url":"https://api.github.com/users/reyang","html_url":"https://github.com/reyang","followers_url":"https://api.github.com/users/reyang/followers","following_url":"https://api.github.com/users/reyang/following{/other_user}","gists_url":"https://api.github.com/users/reyang/gists{/gist_id}","starred_url":"https://api.github.com/users/reyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reyang/subscriptions","organizations_url":"https://api.github.com/users/reyang/orgs","repos_url":"https://api.github.com/users/reyang/repos","events_url":"https://api.github.com/users/reyang/events{/privacy}","received_events_url":"https://api.github.com/users/reyang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reyang/opencensus-python","description":"A stats collection and distributed tracing framework","fork":true,"url":"https://api.github.com/repos/reyang/opencensus-python","forks_url":"https://api.github.com/repos/reyang/opencensus-python/forks","keys_url":"https://api.github.com/repos/reyang/opencensus-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reyang/opencensus-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reyang/opencensus-python/teams","hooks_url":"https://api.github.com/repos/reyang/opencensus-python/hooks","issue_events_url":"https://api.github.com/repos/reyang/opencensus-python/issues/events{/number}","events_url":"https://api.github.com/repos/reyang/opencensus-python/events","assignees_url":"https://api.github.com/repos/reyang/opencensus-python/assignees{/user}","branches_url":"https://api.github.com/repos/reyang/opencensus-python/branches{/branch}","tags_url":"https://api.github.com/repos/reyang/opencensus-python/tags","blobs_url":"https://api.github.com/repos/reyang/opencensus-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reyang/opencensus-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reyang/opencensus-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/reyang/opencensus-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reyang/opencensus-python/statuses/{sha}","languages_url":"https://api.github.com/repos/reyang/opencensus-python/languages","stargazers_url":"https://api.github.com/repos/reyang/opencensus-python/stargazers","contributors_url":"https://api.github.com/repos/reyang/opencensus-python/contributors","subscribers_url":"https://api.github.com/repos/reyang/opencensus-python/subscribers","subscription_url":"https://api.github.com/repos/reyang/opencensus-python/subscription","commits_url":"https://api.github.com/repos/reyang/opencensus-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/reyang/opencensus-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/reyang/opencensus-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/reyang/opencensus-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/reyang/opencensus-python/contents/{+path}","compare_url":"https://api.github.com/repos/reyang/opencensus-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reyang/opencensus-python/merges","archive_url":"https://api.github.com/repos/reyang/opencensus-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reyang/opencensus-python/downloads","issues_url":"https://api.github.com/repos/reyang/opencensus-python/issues{/number}","pulls_url":"https://api.github.com/repos/reyang/opencensus-python/pulls{/number}","milestones_url":"https://api.github.com/repos/reyang/opencensus-python/milestones{/number}","notifications_url":"https://api.github.com/repos/reyang/opencensus-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reyang/opencensus-python/labels{/name}","releases_url":"https://api.github.com/repos/reyang/opencensus-python/releases{/id}","deployments_url":"https://api.github.com/repos/reyang/opencensus-python/deployments","created_at":"2018-06-27T01:40:51Z","updated_at":"2018-07-03T01:04:29Z","pushed_at":"2018-07-05T23:13:26Z","git_url":"git://github.com/reyang/opencensus-python.git","ssh_url":"git@github.com:reyang/opencensus-python.git","clone_url":"https://github.com/reyang/opencensus-python.git","svn_url":"https://github.com/reyang/opencensus-python","homepage":"","size":836,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"census-instrumentation:master","ref":"master","sha":"2caf7f3691af541796ac5db9213e628d649b9b16","user":{"login":"census-instrumentation","id":26944525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2OTQ0NTI1","avatar_url":"https://avatars0.githubusercontent.com/u/26944525?v=4","gravatar_id":"","url":"https://api.github.com/users/census-instrumentation","html_url":"https://github.com/census-instrumentation","followers_url":"https://api.github.com/users/census-instrumentation/followers","following_url":"https://api.github.com/users/census-instrumentation/following{/other_user}","gists_url":"https://api.github.com/users/census-instrumentation/gists{/gist_id}","starred_url":"https://api.github.com/users/census-instrumentation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/census-instrumentation/subscriptions","organizations_url":"https://api.github.com/users/census-instrumentation/orgs","repos_url":"https://api.github.com/users/census-instrumentation/repos","events_url":"https://api.github.com/users/census-instrumentation/events{/privacy}","received_events_url":"https://api.github.com/users/census-instrumentation/received_events","type":"Organization","site_admin":false},"repo":{"id":96581030,"node_id":"MDEwOlJlcG9zaXRvcnk5NjU4MTAzMA==","name":"opencensus-python","full_name":"census-instrumentation/opencensus-python","owner":{"login":"census-instrumentation","id":26944525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2OTQ0NTI1","avatar_url":"https://avatars0.githubusercontent.com/u/26944525?v=4","gravatar_id":"","url":"https://api.github.com/users/census-instrumentation","html_url":"https://github.com/census-instrumentation","followers_url":"https://api.github.com/users/census-instrumentation/followers","following_url":"https://api.github.com/users/census-instrumentation/following{/other_user}","gists_url":"https://api.github.com/users/census-instrumentation/gists{/gist_id}","starred_url":"https://api.github.com/users/census-instrumentation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/census-instrumentation/subscriptions","organizations_url":"https://api.github.com/users/census-instrumentation/orgs","repos_url":"https://api.github.com/users/census-instrumentation/repos","events_url":"https://api.github.com/users/census-instrumentation/events{/privacy}","received_events_url":"https://api.github.com/users/census-instrumentation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/census-instrumentation/opencensus-python","description":"A stats collection and distributed tracing framework","fork":false,"url":"https://api.github.com/repos/census-instrumentation/opencensus-python","forks_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/forks","keys_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/teams","hooks_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/hooks","issue_events_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/events{/number}","events_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/events","assignees_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/assignees{/user}","branches_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/branches{/branch}","tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/tags","blobs_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/statuses/{sha}","languages_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/languages","stargazers_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/stargazers","contributors_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/contributors","subscribers_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/subscribers","subscription_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/subscription","commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/contents/{+path}","compare_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/merges","archive_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/downloads","issues_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues{/number}","pulls_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls{/number}","milestones_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/milestones{/number}","notifications_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/labels{/name}","releases_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/releases{/id}","deployments_url":"https://api.github.com/repos/census-instrumentation/opencensus-python/deployments","created_at":"2017-07-07T22:28:28Z","updated_at":"2018-07-07T19:24:43Z","pushed_at":"2018-07-09T19:38:08Z","git_url":"git://github.com/census-instrumentation/opencensus-python.git","ssh_url":"git@github.com:census-instrumentation/opencensus-python.git","clone_url":"https://github.com/census-instrumentation/opencensus-python.git","svn_url":"https://github.com/census-instrumentation/opencensus-python","homepage":"","size":802,"stargazers_count":166,"watchers_count":166,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":41,"mirror_url":null,"archived":false,"open_issues_count":36,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":41,"open_issues":36,"watchers":166,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/220"},"html":{"href":"https://github.com/census-instrumentation/opencensus-python/pull/220"},"issue":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/220"},"comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/issues/220/comments"},"review_comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/220/comments"},"review_comment":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/pulls/220/commits"},"statuses":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-python/statuses/c3c0d66854d798c4dd5197ac5a35dbeea24fda97"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"SergeyKanzhelev"}}