{"action":"opened","number":48,"pull_request":{"url":"https://api.github.com/repos/opbeat/opbeat-node/pulls/48","id":71915952,"html_url":"https://github.com/opbeat/opbeat-node/pull/48","diff_url":"https://github.com/opbeat/opbeat-node/pull/48.diff","patch_url":"https://github.com/opbeat/opbeat-node/pull/48.patch","issue_url":"https://api.github.com/repos/opbeat/opbeat-node/issues/48","number":48,"state":"open","locked":false,"title":"Refactor currentTrace to currentTransaction","user":{"login":"watson","id":10602,"avatar_url":"https://avatars.githubusercontent.com/u/10602?v=3","gravatar_id":"","url":"https://api.github.com/users/watson","html_url":"https://github.com/watson","followers_url":"https://api.github.com/users/watson/followers","following_url":"https://api.github.com/users/watson/following{/other_user}","gists_url":"https://api.github.com/users/watson/gists{/gist_id}","starred_url":"https://api.github.com/users/watson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson/subscriptions","organizations_url":"https://api.github.com/users/watson/orgs","repos_url":"https://api.github.com/users/watson/repos","events_url":"https://api.github.com/users/watson/events{/privacy}","received_events_url":"https://api.github.com/users/watson/received_events","type":"User","site_admin":false},"body":"This PR should technically not change the logic of the Node agent.\r\n\r\nPreviously we've kept track of a variable called `currentTrace` which pointed to either:\r\n\r\n- the latest trace created in the current synchronous code context\r\n- or the value of `currentTrace` at the point in time when the current synchronous code context was queued on the Node.js event loop (if no trace have been created so far in the current synchronous code context)\r\n\r\nSo far we haven't used `currentTrace` for anything else than getting access to the current transaction (via `currentTrace.transaction`). Having the `currentTrace` gives us more resolution, but is a little trickier to work with. So since we technically don't need this level of details at the moment, this PR refactors the pointer to always point to the current transaction instead (i.e. `currentTrace.transaction === currentTransaction`).","created_at":"2016-05-30T15:30:55Z","updated_at":"2016-05-30T15:30:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opbeat/opbeat-node/pulls/48/commits","review_comments_url":"https://api.github.com/repos/opbeat/opbeat-node/pulls/48/comments","review_comment_url":"https://api.github.com/repos/opbeat/opbeat-node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opbeat/opbeat-node/issues/48/comments","statuses_url":"https://api.github.com/repos/opbeat/opbeat-node/statuses/5ae184e374df4962c8013131efcc94727f55d383","head":{"label":"opbeat:current-transaction","ref":"current-transaction","sha":"5ae184e374df4962c8013131efcc94727f55d383","user":{"login":"opbeat","id":1669860,"avatar_url":"https://avatars.githubusercontent.com/u/1669860?v=3","gravatar_id":"","url":"https://api.github.com/users/opbeat","html_url":"https://github.com/opbeat","followers_url":"https://api.github.com/users/opbeat/followers","following_url":"https://api.github.com/users/opbeat/following{/other_user}","gists_url":"https://api.github.com/users/opbeat/gists{/gist_id}","starred_url":"https://api.github.com/users/opbeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opbeat/subscriptions","organizations_url":"https://api.github.com/users/opbeat/orgs","repos_url":"https://api.github.com/users/opbeat/repos","events_url":"https://api.github.com/users/opbeat/events{/privacy}","received_events_url":"https://api.github.com/users/opbeat/received_events","type":"Organization","site_admin":false},"repo":{"id":9101317,"name":"opbeat-node","full_name":"opbeat/opbeat-node","owner":{"login":"opbeat","id":1669860,"avatar_url":"https://avatars.githubusercontent.com/u/1669860?v=3","gravatar_id":"","url":"https://api.github.com/users/opbeat","html_url":"https://github.com/opbeat","followers_url":"https://api.github.com/users/opbeat/followers","following_url":"https://api.github.com/users/opbeat/following{/other_user}","gists_url":"https://api.github.com/users/opbeat/gists{/gist_id}","starred_url":"https://api.github.com/users/opbeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opbeat/subscriptions","organizations_url":"https://api.github.com/users/opbeat/orgs","repos_url":"https://api.github.com/users/opbeat/repos","events_url":"https://api.github.com/users/opbeat/events{/privacy}","received_events_url":"https://api.github.com/users/opbeat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opbeat/opbeat-node","description":"The official Opbeat agent for Node.js","fork":false,"url":"https://api.github.com/repos/opbeat/opbeat-node","forks_url":"https://api.github.com/repos/opbeat/opbeat-node/forks","keys_url":"https://api.github.com/repos/opbeat/opbeat-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opbeat/opbeat-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opbeat/opbeat-node/teams","hooks_url":"https://api.github.com/repos/opbeat/opbeat-node/hooks","issue_events_url":"https://api.github.com/repos/opbeat/opbeat-node/issues/events{/number}","events_url":"https://api.github.com/repos/opbeat/opbeat-node/events","assignees_url":"https://api.github.com/repos/opbeat/opbeat-node/assignees{/user}","branches_url":"https://api.github.com/repos/opbeat/opbeat-node/branches{/branch}","tags_url":"https://api.github.com/repos/opbeat/opbeat-node/tags","blobs_url":"https://api.github.com/repos/opbeat/opbeat-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opbeat/opbeat-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opbeat/opbeat-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/opbeat/opbeat-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opbeat/opbeat-node/statuses/{sha}","languages_url":"https://api.github.com/repos/opbeat/opbeat-node/languages","stargazers_url":"https://api.github.com/repos/opbeat/opbeat-node/stargazers","contributors_url":"https://api.github.com/repos/opbeat/opbeat-node/contributors","subscribers_url":"https://api.github.com/repos/opbeat/opbeat-node/subscribers","subscription_url":"https://api.github.com/repos/opbeat/opbeat-node/subscription","commits_url":"https://api.github.com/repos/opbeat/opbeat-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/opbeat/opbeat-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/opbeat/opbeat-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/opbeat/opbeat-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/opbeat/opbeat-node/contents/{+path}","compare_url":"https://api.github.com/repos/opbeat/opbeat-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opbeat/opbeat-node/merges","archive_url":"https://api.github.com/repos/opbeat/opbeat-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opbeat/opbeat-node/downloads","issues_url":"https://api.github.com/repos/opbeat/opbeat-node/issues{/number}","pulls_url":"https://api.github.com/repos/opbeat/opbeat-node/pulls{/number}","milestones_url":"https://api.github.com/repos/opbeat/opbeat-node/milestones{/number}","notifications_url":"https://api.github.com/repos/opbeat/opbeat-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opbeat/opbeat-node/labels{/name}","releases_url":"https://api.github.com/repos/opbeat/opbeat-node/releases{/id}","deployments_url":"https://api.github.com/repos/opbeat/opbeat-node/deployments","created_at":"2013-03-29T15:49:24Z","updated_at":"2016-05-26T13:06:21Z","pushed_at":"2016-05-30T15:22:52Z","git_url":"git://github.com/opbeat/opbeat-node.git","ssh_url":"git@github.com:opbeat/opbeat-node.git","clone_url":"https://github.com/opbeat/opbeat-node.git","svn_url":"https://github.com/opbeat/opbeat-node","homepage":"https://opbeat.com","size":703,"stargazers_count":67,"watchers_count":67,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":10,"forks":7,"open_issues":10,"watchers":67,"default_branch":"master"}},"base":{"label":"opbeat:master","ref":"master","sha":"7a93638a1150c806e5bb1ffac40b126550cea6b6","user":{"login":"opbeat","id":1669860,"avatar_url":"https://avatars.githubusercontent.com/u/1669860?v=3","gravatar_id":"","url":"https://api.github.com/users/opbeat","html_url":"https://github.com/opbeat","followers_url":"https://api.github.com/users/opbeat/followers","following_url":"https://api.github.com/users/opbeat/following{/other_user}","gists_url":"https://api.github.com/users/opbeat/gists{/gist_id}","starred_url":"https://api.github.com/users/opbeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opbeat/subscriptions","organizations_url":"https://api.github.com/users/opbeat/orgs","repos_url":"https://api.github.com/users/opbeat/repos","events_url":"https://api.github.com/users/opbeat/events{/privacy}","received_events_url":"https://api.github.com/users/opbeat/received_events","type":"Organization","site_admin":false},"repo":{"id":9101317,"name":"opbeat-node","full_name":"opbeat/opbeat-node","owner":{"login":"opbeat","id":1669860,"avatar_url":"https://avatars.githubusercontent.com/u/1669860?v=3","gravatar_id":"","url":"https://api.github.com/users/opbeat","html_url":"https://github.com/opbeat","followers_url":"https://api.github.com/users/opbeat/followers","following_url":"https://api.github.com/users/opbeat/following{/other_user}","gists_url":"https://api.github.com/users/opbeat/gists{/gist_id}","starred_url":"https://api.github.com/users/opbeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opbeat/subscriptions","organizations_url":"https://api.github.com/users/opbeat/orgs","repos_url":"https://api.github.com/users/opbeat/repos","events_url":"https://api.github.com/users/opbeat/events{/privacy}","received_events_url":"https://api.github.com/users/opbeat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opbeat/opbeat-node","description":"The official Opbeat agent for Node.js","fork":false,"url":"https://api.github.com/repos/opbeat/opbeat-node","forks_url":"https://api.github.com/repos/opbeat/opbeat-node/forks","keys_url":"https://api.github.com/repos/opbeat/opbeat-node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opbeat/opbeat-node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opbeat/opbeat-node/teams","hooks_url":"https://api.github.com/repos/opbeat/opbeat-node/hooks","issue_events_url":"https://api.github.com/repos/opbeat/opbeat-node/issues/events{/number}","events_url":"https://api.github.com/repos/opbeat/opbeat-node/events","assignees_url":"https://api.github.com/repos/opbeat/opbeat-node/assignees{/user}","branches_url":"https://api.github.com/repos/opbeat/opbeat-node/branches{/branch}","tags_url":"https://api.github.com/repos/opbeat/opbeat-node/tags","blobs_url":"https://api.github.com/repos/opbeat/opbeat-node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opbeat/opbeat-node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opbeat/opbeat-node/git/refs{/sha}","trees_url":"https://api.github.com/repos/opbeat/opbeat-node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opbeat/opbeat-node/statuses/{sha}","languages_url":"https://api.github.com/repos/opbeat/opbeat-node/languages","stargazers_url":"https://api.github.com/repos/opbeat/opbeat-node/stargazers","contributors_url":"https://api.github.com/repos/opbeat/opbeat-node/contributors","subscribers_url":"https://api.github.com/repos/opbeat/opbeat-node/subscribers","subscription_url":"https://api.github.com/repos/opbeat/opbeat-node/subscription","commits_url":"https://api.github.com/repos/opbeat/opbeat-node/commits{/sha}","git_commits_url":"https://api.github.com/repos/opbeat/opbeat-node/git/commits{/sha}","comments_url":"https://api.github.com/repos/opbeat/opbeat-node/comments{/number}","issue_comment_url":"https://api.github.com/repos/opbeat/opbeat-node/issues/comments{/number}","contents_url":"https://api.github.com/repos/opbeat/opbeat-node/contents/{+path}","compare_url":"https://api.github.com/repos/opbeat/opbeat-node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opbeat/opbeat-node/merges","archive_url":"https://api.github.com/repos/opbeat/opbeat-node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opbeat/opbeat-node/downloads","issues_url":"https://api.github.com/repos/opbeat/opbeat-node/issues{/number}","pulls_url":"https://api.github.com/repos/opbeat/opbeat-node/pulls{/number}","milestones_url":"https://api.github.com/repos/opbeat/opbeat-node/milestones{/number}","notifications_url":"https://api.github.com/repos/opbeat/opbeat-node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opbeat/opbeat-node/labels{/name}","releases_url":"https://api.github.com/repos/opbeat/opbeat-node/releases{/id}","deployments_url":"https://api.github.com/repos/opbeat/opbeat-node/deployments","created_at":"2013-03-29T15:49:24Z","updated_at":"2016-05-26T13:06:21Z","pushed_at":"2016-05-30T15:22:52Z","git_url":"git://github.com/opbeat/opbeat-node.git","ssh_url":"git@github.com:opbeat/opbeat-node.git","clone_url":"https://github.com/opbeat/opbeat-node.git","svn_url":"https://github.com/opbeat/opbeat-node","homepage":"https://opbeat.com","size":703,"stargazers_count":67,"watchers_count":67,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":10,"forks":7,"open_issues":10,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opbeat/opbeat-node/pulls/48"},"html":{"href":"https://github.com/opbeat/opbeat-node/pull/48"},"issue":{"href":"https://api.github.com/repos/opbeat/opbeat-node/issues/48"},"comments":{"href":"https://api.github.com/repos/opbeat/opbeat-node/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/opbeat/opbeat-node/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/opbeat/opbeat-node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opbeat/opbeat-node/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/opbeat/opbeat-node/statuses/5ae184e374df4962c8013131efcc94727f55d383"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":32,"deletions":40,"changed_files":7}}
{"actor":{"display_login":"watson"}}