{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/pulls/5","id":201732998,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNzMyOTk4","html_url":"https://github.com/elastic/apm-nodejs-http-client/pull/5","diff_url":"https://github.com/elastic/apm-nodejs-http-client/pull/5.diff","patch_url":"https://github.com/elastic/apm-nodejs-http-client/pull/5.patch","issue_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/issues/5","number":5,"state":"open","locked":false,"title":"POC: Support v2 of the APM Server intake API","user":{"login":"watson","id":10602,"node_id":"MDQ6VXNlcjEwNjAy","avatar_url":"https://avatars3.githubusercontent.com/u/10602?v=4","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 adds support for the upcoming new version of the APM Server intake API.\r\n\r\nNote that the PR is towards a new `api-v2` branch as this is still experimental and not supported by the APM Server.\r\n\r\nBREAKING CHANGE: The client no longer supports v1 of the intake API and the client API have changed as well.\r\n\r\n## Todo\r\n\r\n- [ ] Address all todo's in code\r\n","created_at":"2018-07-16T19:14:44Z","updated_at":"2018-07-16T19:14:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"watson","id":10602,"node_id":"MDQ6VXNlcjEwNjAy","avatar_url":"https://avatars3.githubusercontent.com/u/10602?v=4","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},"assignees":[{"login":"watson","id":10602,"node_id":"MDQ6VXNlcjEwNjAy","avatar_url":"https://avatars3.githubusercontent.com/u/10602?v=4","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}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":882569338,"node_id":"MDU6TGFiZWw4ODI1NjkzMzg=","url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/labels/[zube]:%20In%20Progress","name":"[zube]: In Progress","color":"ffffff","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/pulls/5/commits","review_comments_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/pulls/5/comments","review_comment_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/issues/5/comments","statuses_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/statuses/cf78b3b251327c4e94ee10c348ed970c580d1997","head":{"label":"watson:v2","ref":"v2","sha":"cf78b3b251327c4e94ee10c348ed970c580d1997","user":{"login":"watson","id":10602,"node_id":"MDQ6VXNlcjEwNjAy","avatar_url":"https://avatars3.githubusercontent.com/u/10602?v=4","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},"repo":{"id":141182026,"node_id":"MDEwOlJlcG9zaXRvcnkxNDExODIwMjY=","name":"apm-nodejs-http-client","full_name":"watson/apm-nodejs-http-client","owner":{"login":"watson","id":10602,"node_id":"MDQ6VXNlcjEwNjAy","avatar_url":"https://avatars3.githubusercontent.com/u/10602?v=4","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},"private":false,"html_url":"https://github.com/watson/apm-nodejs-http-client","description":"A low-level Node.js HTTP client for communicating with the Elastic APM intake API","fork":true,"url":"https://api.github.com/repos/watson/apm-nodejs-http-client","forks_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/forks","keys_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/teams","hooks_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/hooks","issue_events_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/issues/events{/number}","events_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/events","assignees_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/assignees{/user}","branches_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/branches{/branch}","tags_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/tags","blobs_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/statuses/{sha}","languages_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/languages","stargazers_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/stargazers","contributors_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/contributors","subscribers_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/subscribers","subscription_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/subscription","commits_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/contents/{+path}","compare_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/merges","archive_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/downloads","issues_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/issues{/number}","pulls_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/pulls{/number}","milestones_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/milestones{/number}","notifications_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/labels{/name}","releases_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/releases{/id}","deployments_url":"https://api.github.com/repos/watson/apm-nodejs-http-client/deployments","created_at":"2018-07-16T19:08:09Z","updated_at":"2018-07-16T19:08:11Z","pushed_at":"2018-07-16T19:08:23Z","git_url":"git://github.com/watson/apm-nodejs-http-client.git","ssh_url":"git@github.com:watson/apm-nodejs-http-client.git","clone_url":"https://github.com/watson/apm-nodejs-http-client.git","svn_url":"https://github.com/watson/apm-nodejs-http-client","homepage":"","size":79,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elastic:api-v2","ref":"api-v2","sha":"b15efca25a52d121d813a1322e8fa06df94776da","user":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"repo":{"id":32172023,"node_id":"MDEwOlJlcG9zaXRvcnkzMjE3MjAyMw==","name":"apm-nodejs-http-client","full_name":"elastic/apm-nodejs-http-client","owner":{"login":"elastic","id":6764390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY3NjQzOTA=","avatar_url":"https://avatars0.githubusercontent.com/u/6764390?v=4","gravatar_id":"","url":"https://api.github.com/users/elastic","html_url":"https://github.com/elastic","followers_url":"https://api.github.com/users/elastic/followers","following_url":"https://api.github.com/users/elastic/following{/other_user}","gists_url":"https://api.github.com/users/elastic/gists{/gist_id}","starred_url":"https://api.github.com/users/elastic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastic/subscriptions","organizations_url":"https://api.github.com/users/elastic/orgs","repos_url":"https://api.github.com/users/elastic/repos","events_url":"https://api.github.com/users/elastic/events{/privacy}","received_events_url":"https://api.github.com/users/elastic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastic/apm-nodejs-http-client","description":"A low-level Node.js HTTP client for communicating with the Elastic APM intake API","fork":false,"url":"https://api.github.com/repos/elastic/apm-nodejs-http-client","forks_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/forks","keys_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/teams","hooks_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/hooks","issue_events_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/issues/events{/number}","events_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/events","assignees_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/assignees{/user}","branches_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/branches{/branch}","tags_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/tags","blobs_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/statuses/{sha}","languages_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/languages","stargazers_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/stargazers","contributors_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/contributors","subscribers_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/subscribers","subscription_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/subscription","commits_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/contents/{+path}","compare_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/merges","archive_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/downloads","issues_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/issues{/number}","pulls_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/pulls{/number}","milestones_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/milestones{/number}","notifications_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/labels{/name}","releases_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/releases{/id}","deployments_url":"https://api.github.com/repos/elastic/apm-nodejs-http-client/deployments","created_at":"2015-03-13T18:00:29Z","updated_at":"2018-07-16T16:12:45Z","pushed_at":"2018-07-16T19:12:22Z","git_url":"git://github.com/elastic/apm-nodejs-http-client.git","ssh_url":"git@github.com:elastic/apm-nodejs-http-client.git","clone_url":"https://github.com/elastic/apm-nodejs-http-client.git","svn_url":"https://github.com/elastic/apm-nodejs-http-client","homepage":"","size":79,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastic/apm-nodejs-http-client/pulls/5"},"html":{"href":"https://github.com/elastic/apm-nodejs-http-client/pull/5"},"issue":{"href":"https://api.github.com/repos/elastic/apm-nodejs-http-client/issues/5"},"comments":{"href":"https://api.github.com/repos/elastic/apm-nodejs-http-client/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/elastic/apm-nodejs-http-client/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/elastic/apm-nodejs-http-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastic/apm-nodejs-http-client/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/elastic/apm-nodejs-http-client/statuses/cf78b3b251327c4e94ee10c348ed970c580d1997"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":703,"deletions":340,"changed_files":7}}
{"actor":{"display_login":"watson"}}