{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/comments/43817725","id":43817725,"diff_hunk":"@@ -0,0 +1,85 @@\n+/**\n+ * Copyright 2015 Google Inc. All Rights Reserved.\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+'use strict';\n+\n+// Prereqs:\n+// Start docker daemon\n+//   ex) docker -d\n+// Run a mongo image binding the mongo port\n+//   ex) docker run -p 27017:27017 -d mongo\n+var agent = require('../..').start({ samplingRate: 1 }).private_();\n+\n+var common = require('../hooks/common.js');\n+\n+var assert = require('assert');\n+var express = require('../hooks/fixtures/express4');\n+var http = require('http');\n+var mongoose = require('../hooks/fixtures/mongoose4');\n+var redis = require('../hooks/fixtures/redis2');\n+var agent = require('../..').get().private_();","path":"test/standalone/test-hooks-sample-warning.js","position":32,"original_position":32,"commit_id":"bf9b7a52700b9e6a0f17c03951bfb56c90880ba3","original_commit_id":"bf9b7a52700b9e6a0f17c03951bfb56c90880ba3","user":{"login":"ofrobots","id":79017,"avatar_url":"https://avatars.githubusercontent.com/u/79017?v=3","gravatar_id":"","url":"https://api.github.com/users/ofrobots","html_url":"https://github.com/ofrobots","followers_url":"https://api.github.com/users/ofrobots/followers","following_url":"https://api.github.com/users/ofrobots/following{/other_user}","gists_url":"https://api.github.com/users/ofrobots/gists{/gist_id}","starred_url":"https://api.github.com/users/ofrobots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ofrobots/subscriptions","organizations_url":"https://api.github.com/users/ofrobots/orgs","repos_url":"https://api.github.com/users/ofrobots/repos","events_url":"https://api.github.com/users/ofrobots/events{/privacy}","received_events_url":"https://api.github.com/users/ofrobots/received_events","type":"User","site_admin":false},"body":"repeated line.","created_at":"2015-11-03T22:39:01Z","updated_at":"2015-11-03T22:39:01Z","html_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/138#discussion_r43817725","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/138","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/comments/43817725"},"html":{"href":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/138#discussion_r43817725"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/138"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/138","id":49597196,"html_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/138","diff_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/138.diff","patch_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/138.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/138","number":138,"state":"open","locked":false,"title":"No more warnings when root spans are sampled","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":"Mongo and redis no longer warn that tracing happened outside of a\r\nsupported framework when root spans are sampled.\r\n\r\nFixes #137.","created_at":"2015-11-03T19:06:36Z","updated_at":"2015-11-03T22:39:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cedcb218afd411cf54cf999d1df7c29ae019f22b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/138/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/138/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/138/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/statuses/bf9b7a52700b9e6a0f17c03951bfb56c90880ba3","head":{"label":"matthewloring:mongo-context","ref":"mongo-context","sha":"bf9b7a52700b9e6a0f17c03951bfb56c90880ba3","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-03T20:54:36Z","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":866,"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":"48cb2fc2aaa9062813c3642f1d4fc4127ff5b460","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-09-25T17:49:46Z","pushed_at":"2015-11-03T20:54:37Z","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":1403,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":18,"forks":7,"open_issues":18,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/138"},"html":{"href":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/138"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/138"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/138/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/138/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/statuses/bf9b7a52700b9e6a0f17c03951bfb56c90880ba3"}}}}