{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/comments/44193739","id":44193739,"diff_hunk":"@@ -54,19 +53,21 @@ function requestWrap(request) {\n       return request.apply(this, arguments);\n     }\n \n+    var localOptions = (typeof options === 'string') ?","path":"lib/hooks/core/hook-http.js","position":null,"original_position":29,"commit_id":"dca896fcf5f5c269ba7a422862105579dffe8e69","original_commit_id":"ec532926e9f38e442f81b1f61b429efbb36d1a61","user":{"login":"matthewloring","id":1485909,"avatar_url":"https://avatars.githubusercontent.com/u/1485909?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewloring","html_url":"https://github.com/matthewloring","followers_url":"https://api.github.com/users/matthewloring/followers","following_url":"https://api.github.com/users/matthewloring/following{/other_user}","gists_url":"https://api.github.com/users/matthewloring/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewloring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewloring/subscriptions","organizations_url":"https://api.github.com/users/matthewloring/orgs","repos_url":"https://api.github.com/users/matthewloring/repos","events_url":"https://api.github.com/users/matthewloring/events{/privacy}","received_events_url":"https://api.github.com/users/matthewloring/received_events","type":"User","site_admin":false},"body":"Fixed.","created_at":"2015-11-06T22:14:21Z","updated_at":"2015-11-06T22:14:21Z","html_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/153#discussion_r44193739","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/153","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/comments/44193739"},"html":{"href":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/153#discussion_r44193739"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/153","id":49907567,"html_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/153","diff_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/153.diff","patch_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/153.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/153","number":153,"state":"open","locked":false,"title":"Identify root spans with inherited context","user":{"login":"matthewloring","id":1485909,"avatar_url":"https://avatars.githubusercontent.com/u/1485909?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewloring","html_url":"https://github.com/matthewloring","followers_url":"https://api.github.com/users/matthewloring/followers","following_url":"https://api.github.com/users/matthewloring/following{/other_user}","gists_url":"https://api.github.com/users/matthewloring/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewloring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewloring/subscriptions","organizations_url":"https://api.github.com/users/matthewloring/orgs","repos_url":"https://api.github.com/users/matthewloring/repos","events_url":"https://api.github.com/users/matthewloring/events{/privacy}","received_events_url":"https://api.github.com/users/matthewloring/received_events","type":"User","site_admin":false},"body":"Root spans that inherit their trace context from incoming headers are\r\nnow properly identified as root spans and logged. Independently this\r\nfixes and tests a bug where outgoing contexts were not attached to all\r\nrequests.\r\n\r\nFixes #152.","created_at":"2015-11-06T01:58:51Z","updated_at":"2015-11-06T22:14:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"334fccab5da7ce3e3c73b0371b978f4fbd43045c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/153/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/153/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/153/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/statuses/dca896fcf5f5c269ba7a422862105579dffe8e69","head":{"label":"matthewloring:headers","ref":"headers","sha":"dca896fcf5f5c269ba7a422862105579dffe8e69","user":{"login":"matthewloring","id":1485909,"avatar_url":"https://avatars.githubusercontent.com/u/1485909?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewloring","html_url":"https://github.com/matthewloring","followers_url":"https://api.github.com/users/matthewloring/followers","following_url":"https://api.github.com/users/matthewloring/following{/other_user}","gists_url":"https://api.github.com/users/matthewloring/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewloring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewloring/subscriptions","organizations_url":"https://api.github.com/users/matthewloring/orgs","repos_url":"https://api.github.com/users/matthewloring/repos","events_url":"https://api.github.com/users/matthewloring/events{/privacy}","received_events_url":"https://api.github.com/users/matthewloring/received_events","type":"User","site_admin":false},"repo":{"id":41391013,"name":"cloud-trace-nodejs","full_name":"matthewloring/cloud-trace-nodejs","owner":{"login":"matthewloring","id":1485909,"avatar_url":"https://avatars.githubusercontent.com/u/1485909?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewloring","html_url":"https://github.com/matthewloring","followers_url":"https://api.github.com/users/matthewloring/followers","following_url":"https://api.github.com/users/matthewloring/following{/other_user}","gists_url":"https://api.github.com/users/matthewloring/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewloring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewloring/subscriptions","organizations_url":"https://api.github.com/users/matthewloring/orgs","repos_url":"https://api.github.com/users/matthewloring/repos","events_url":"https://api.github.com/users/matthewloring/events{/privacy}","received_events_url":"https://api.github.com/users/matthewloring/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthewloring/cloud-trace-nodejs","description":"Experimental Node.js support for Google Cloud Trace","fork":true,"url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs","forks_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/forks","keys_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/teams","hooks_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/hooks","issue_events_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/issues/events{/number}","events_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/events","assignees_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/assignees{/user}","branches_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/branches{/branch}","tags_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/tags","blobs_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/statuses/{sha}","languages_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/languages","stargazers_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/stargazers","contributors_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/contributors","subscribers_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/subscribers","subscription_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/subscription","commits_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/contents/{+path}","compare_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/merges","archive_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/downloads","issues_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/issues{/number}","pulls_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/pulls{/number}","milestones_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/milestones{/number}","notifications_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/labels{/name}","releases_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/releases{/id}","created_at":"2015-08-25T22:25:15Z","updated_at":"2015-08-25T22:25:15Z","pushed_at":"2015-11-06T22:13:54Z","git_url":"git://github.com/matthewloring/cloud-trace-nodejs.git","ssh_url":"git@github.com:matthewloring/cloud-trace-nodejs.git","clone_url":"https://github.com/matthewloring/cloud-trace-nodejs.git","svn_url":"https://github.com/matthewloring/cloud-trace-nodejs","homepage":"https://cloud.google.com/cloud-trace/","size":962,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"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":"GoogleCloudPlatform:master","ref":"master","sha":"5f0da07093d9a4fae431d73ae526552be910e9b7","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":41170869,"name":"cloud-trace-nodejs","full_name":"GoogleCloudPlatform/cloud-trace-nodejs","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs","description":"Experimental Node.js support for Google Cloud Trace","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/releases{/id}","created_at":"2015-08-21T18:23:09Z","updated_at":"2015-11-06T09:43:17Z","pushed_at":"2015-11-06T22:13:55Z","git_url":"git://github.com/GoogleCloudPlatform/cloud-trace-nodejs.git","ssh_url":"git@github.com:GoogleCloudPlatform/cloud-trace-nodejs.git","clone_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs.git","svn_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs","homepage":"https://cloud.google.com/cloud-trace/","size":1399,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":21,"forks":7,"open_issues":21,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/153"},"html":{"href":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/153"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/153"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/statuses/dca896fcf5f5c269ba7a422862105579dffe8e69"}}}}