{"action":"created","comment":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/comments/189109459","pull_request_review_id":121226315,"id":189109459,"diff_hunk":"@@ -0,0 +1,206 @@\n+/**\n+ * Copyright 2018, OpenCensus Authors\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+import {types} from '@opencensus/opencensus-core';\n+import {classes} from '@opencensus/opencensus-core';\n+import {logger} from '@opencensus/opencensus-core';\n+import * as assert from 'assert';\n+import * as http from 'http';\n+import * as mocha from 'mocha';\n+import * as nock from 'nock';\n+import * as shimmer from 'shimmer';\n+\n+import {plugin} from '../src/';\n+import {HttpPlugin} from '../src/';\n+\n+\n+function doNoke(\n+    url: string, path: string, httpCode: number, respBody: string,\n+    times?: number) {\n+  let i = times;\n+  if (!times) {\n+    i = 1;\n+  }\n+  nock(url).get(path).times(i).reply(httpCode, respBody);\n+}\n+\n+\n+const httpRequest = {\n+  get: (options: {}|string) => {\n+    return (new Promise((resolve, reject) => {","path":"packages/opencensus-instrumentation-http/test/test-http.ts","position":43,"original_position":43,"commit_id":"4024453043b1d3810de5f347476d6c51e26cfde9","original_commit_id":"d9588c98d3aff7e5324388da1cd82ff5d8cfba08","user":{"login":"fabiogomessilva","id":37403306,"avatar_url":"https://avatars3.githubusercontent.com/u/37403306?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiogomessilva","html_url":"https://github.com/fabiogomessilva","followers_url":"https://api.github.com/users/fabiogomessilva/followers","following_url":"https://api.github.com/users/fabiogomessilva/following{/other_user}","gists_url":"https://api.github.com/users/fabiogomessilva/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiogomessilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiogomessilva/subscriptions","organizations_url":"https://api.github.com/users/fabiogomessilva/orgs","repos_url":"https://api.github.com/users/fabiogomessilva/repos","events_url":"https://api.github.com/users/fabiogomessilva/events{/privacy}","received_events_url":"https://api.github.com/users/fabiogomessilva/received_events","type":"User","site_admin":false},"body":"Done !","created_at":"2018-05-17T21:38:26Z","updated_at":"2018-05-17T21:38:26Z","html_url":"https://github.com/census-instrumentation/opencensus-node/pull/14#discussion_r189109459","pull_request_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/14","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/comments/189109459"},"html":{"href":"https://github.com/census-instrumentation/opencensus-node/pull/14#discussion_r189109459"},"pull_request":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/14"}},"in_reply_to_id":188713683},"pull_request":{"url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/14","id":188361020,"html_url":"https://github.com/census-instrumentation/opencensus-node/pull/14","diff_url":"https://github.com/census-instrumentation/opencensus-node/pull/14.diff","patch_url":"https://github.com/census-instrumentation/opencensus-node/pull/14.patch","issue_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/14","number":14,"state":"open","locked":false,"title":"feat: add packages intrumentation-http/https and propagation-b3","user":{"login":"fabiogomessilva","id":37403306,"avatar_url":"https://avatars3.githubusercontent.com/u/37403306?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiogomessilva","html_url":"https://github.com/fabiogomessilva","followers_url":"https://api.github.com/users/fabiogomessilva/followers","following_url":"https://api.github.com/users/fabiogomessilva/following{/other_user}","gists_url":"https://api.github.com/users/fabiogomessilva/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiogomessilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiogomessilva/subscriptions","organizations_url":"https://api.github.com/users/fabiogomessilva/orgs","repos_url":"https://api.github.com/users/fabiogomessilva/repos","events_url":"https://api.github.com/users/fabiogomessilva/events{/privacy}","received_events_url":"https://api.github.com/users/fabiogomessilva/received_events","type":"User","site_admin":false},"body":"This PR adds packages intrumentation-http/ intstrumentation-https and propagation-b3 to opencensus-node","created_at":"2018-05-16T08:53:47Z","updated_at":"2018-05-17T21:38:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ae4537847d8c89583033a4ce135ed42b6a991c1f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":925574749,"url":"https://api.github.com/repos/census-instrumentation/opencensus-node/labels/cla:%20no","name":"cla: no","color":"ef2f8c","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/14/commits","review_comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/14/comments","review_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/14/comments","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/statuses/4024453043b1d3810de5f347476d6c51e26cfde9","head":{"label":"fabiogomessilva:pkg_http","ref":"pkg_http","sha":"4024453043b1d3810de5f347476d6c51e26cfde9","user":{"login":"fabiogomessilva","id":37403306,"avatar_url":"https://avatars3.githubusercontent.com/u/37403306?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiogomessilva","html_url":"https://github.com/fabiogomessilva","followers_url":"https://api.github.com/users/fabiogomessilva/followers","following_url":"https://api.github.com/users/fabiogomessilva/following{/other_user}","gists_url":"https://api.github.com/users/fabiogomessilva/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiogomessilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiogomessilva/subscriptions","organizations_url":"https://api.github.com/users/fabiogomessilva/orgs","repos_url":"https://api.github.com/users/fabiogomessilva/repos","events_url":"https://api.github.com/users/fabiogomessilva/events{/privacy}","received_events_url":"https://api.github.com/users/fabiogomessilva/received_events","type":"User","site_admin":false},"repo":{"id":129977811,"name":"opencensus-node","full_name":"fabiogomessilva/opencensus-node","owner":{"login":"fabiogomessilva","id":37403306,"avatar_url":"https://avatars3.githubusercontent.com/u/37403306?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiogomessilva","html_url":"https://github.com/fabiogomessilva","followers_url":"https://api.github.com/users/fabiogomessilva/followers","following_url":"https://api.github.com/users/fabiogomessilva/following{/other_user}","gists_url":"https://api.github.com/users/fabiogomessilva/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiogomessilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiogomessilva/subscriptions","organizations_url":"https://api.github.com/users/fabiogomessilva/orgs","repos_url":"https://api.github.com/users/fabiogomessilva/repos","events_url":"https://api.github.com/users/fabiogomessilva/events{/privacy}","received_events_url":"https://api.github.com/users/fabiogomessilva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fabiogomessilva/opencensus-node","description":null,"fork":true,"url":"https://api.github.com/repos/fabiogomessilva/opencensus-node","forks_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/forks","keys_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/teams","hooks_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/hooks","issue_events_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/issues/events{/number}","events_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/events","assignees_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/assignees{/user}","branches_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/branches{/branch}","tags_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/tags","blobs_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/statuses/{sha}","languages_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/languages","stargazers_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/stargazers","contributors_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/contributors","subscribers_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/subscribers","subscription_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/subscription","commits_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/contents/{+path}","compare_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/merges","archive_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/downloads","issues_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/issues{/number}","pulls_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/pulls{/number}","milestones_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/milestones{/number}","notifications_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/labels{/name}","releases_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/releases{/id}","deployments_url":"https://api.github.com/repos/fabiogomessilva/opencensus-node/deployments","created_at":"2018-04-17T23:48:38Z","updated_at":"2018-05-15T00:07:17Z","pushed_at":"2018-05-16T22:25:59Z","git_url":"git://github.com/fabiogomessilva/opencensus-node.git","ssh_url":"git@github.com:fabiogomessilva/opencensus-node.git","clone_url":"https://github.com/fabiogomessilva/opencensus-node.git","svn_url":"https://github.com/fabiogomessilva/opencensus-node","homepage":null,"size":875,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"census-instrumentation:master","ref":"master","sha":"6db5496c445a1328d2eb91fa4b807135b9408da8","user":{"login":"census-instrumentation","id":26944525,"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":109782875,"name":"opencensus-node","full_name":"census-instrumentation/opencensus-node","owner":{"login":"census-instrumentation","id":26944525,"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-node","description":null,"fork":false,"url":"https://api.github.com/repos/census-instrumentation/opencensus-node","forks_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/forks","keys_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/teams","hooks_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/hooks","issue_events_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/events{/number}","events_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/events","assignees_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/assignees{/user}","branches_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/branches{/branch}","tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/tags","blobs_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/statuses/{sha}","languages_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/languages","stargazers_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/stargazers","contributors_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/contributors","subscribers_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/subscribers","subscription_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/subscription","commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/contents/{+path}","compare_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/merges","archive_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/downloads","issues_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues{/number}","pulls_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls{/number}","milestones_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/milestones{/number}","notifications_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/labels{/name}","releases_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/releases{/id}","deployments_url":"https://api.github.com/repos/census-instrumentation/opencensus-node/deployments","created_at":"2017-11-07T03:35:31Z","updated_at":"2018-05-17T14:03:34Z","pushed_at":"2018-05-17T21:20:39Z","git_url":"git://github.com/census-instrumentation/opencensus-node.git","ssh_url":"git@github.com:census-instrumentation/opencensus-node.git","clone_url":"https://github.com/census-instrumentation/opencensus-node.git","svn_url":"https://github.com/census-instrumentation/opencensus-node","homepage":null,"size":685,"stargazers_count":33,"watchers_count":33,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":7,"open_issues":4,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/14"},"html":{"href":"https://github.com/census-instrumentation/opencensus-node/pull/14"},"issue":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/14"},"comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/census-instrumentation/opencensus-node/statuses/4024453043b1d3810de5f347476d6c51e26cfde9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"fabiogomessilva"}}