{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/comments/59744108","id":59744108,"diff_hunk":"@@ -24,17 +24,17 @@ This module provides Cloud Trace support for Node.js applications. [Google Cloud\n \n         npm install --save @google/cloud-trace\n \n-2. Include and start the library at the *top of the main script of your application*. It's important that Cloud Trace is the first thing executed so that it can accurately gather data:\n+2. If you are running locally, or not on the Google Cloud Platform, set the GCLOUD_PROJECT environment variable. Your project ID is visible in the [Google Cloud Console Console](https://console.cloud.google.com/project?_ga=1.258049870.576536942.1443543237), it may be something like `particular-future-12345`. If your application is [running on Google Cloud Platform](running-on-google-cloud-platform), you don't need to specify the project ID.","path":"README.md","position":5,"original_position":5,"commit_id":"6c6b9b5b2c04203da5323d217df46f85dc8196c3","original_commit_id":"6c6b9b5b2c04203da5323d217df46f85dc8196c3","user":{"login":"JustinBeckwith","id":534619,"avatar_url":"https://avatars.githubusercontent.com/u/534619?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinBeckwith","html_url":"https://github.com/JustinBeckwith","followers_url":"https://api.github.com/users/JustinBeckwith/followers","following_url":"https://api.github.com/users/JustinBeckwith/following{/other_user}","gists_url":"https://api.github.com/users/JustinBeckwith/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinBeckwith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinBeckwith/subscriptions","organizations_url":"https://api.github.com/users/JustinBeckwith/orgs","repos_url":"https://api.github.com/users/JustinBeckwith/repos","events_url":"https://api.github.com/users/JustinBeckwith/events{/privacy}","received_events_url":"https://api.github.com/users/JustinBeckwith/received_events","type":"User","site_admin":false},"body":"In the quick start instructions, for 2, I would just ask them to give us the project id - no hemming and hawing :)  Something like:\r\n\r\nSet the GCLOUD_PROJECT environment variable. You can find your Project ID in the Google Cloud Developers Console, or by running the command `gcloud projects list`.  You can ensure this environment variable is set at startup time by placing it in your startup script in `package.json`:\r\n\r\n```json\r\n\"scripts\": {\r\n  \"start\": \"GCLOUD_PROJECT=<YOUR_PROJECT_ID> node server.js\",\r\n},\r\n```\r\n\r\nThen, further down in the readme, include a specific section (if there isn't one already) on running this outside of Google Cloud.  ","created_at":"2016-04-14T16:04:05Z","updated_at":"2016-04-14T16:04:05Z","html_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/237#discussion_r59744108","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/237","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/comments/59744108"},"html":{"href":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/237#discussion_r59744108"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/237"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/237","id":66252141,"html_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/237","diff_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/237.diff","patch_url":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/237.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/237","number":237,"state":"open","locked":false,"title":"Use GCLOUD_PROJECT instead of GCLOUD_PROJECT_NUM","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":"Fixes #236","created_at":"2016-04-13T01:05:35Z","updated_at":"2016-04-14T16:04:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a06ac3d08dcb4bb7ed410521afafb4cc83ed56d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/237/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/237/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/237/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/statuses/6c6b9b5b2c04203da5323d217df46f85dc8196c3","head":{"label":"matthewloring:env-var","ref":"env-var","sha":"6c6b9b5b2c04203da5323d217df46f85dc8196c3","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}","deployments_url":"https://api.github.com/repos/matthewloring/cloud-trace-nodejs/deployments","created_at":"2015-08-25T22:25:15Z","updated_at":"2016-01-12T23:11:38Z","pushed_at":"2016-04-14T14:44:43Z","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":1015,"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":"cf94ceefd5d311575e3b331c9db2e1a8e1a82050","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}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/deployments","created_at":"2015-08-21T18:23:09Z","updated_at":"2016-04-13T17:45:22Z","pushed_at":"2016-04-14T14:44:39Z","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":1028,"stargazers_count":25,"watchers_count":25,"language":"JavaScript","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":12,"forks":12,"open_issues":12,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/237"},"html":{"href":"https://github.com/GoogleCloudPlatform/cloud-trace-nodejs/pull/237"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/237"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/issues/237/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/pulls/237/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/237/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/cloud-trace-nodejs/statuses/6c6b9b5b2c04203da5323d217df46f85dc8196c3"}}}}