{"action":"closed","number":739,"pull_request":{"url":"https://api.github.com/repos/travis-ci/travis-api/pulls/739","id":182499826,"html_url":"https://github.com/travis-ci/travis-api/pull/739","diff_url":"https://github.com/travis-ci/travis-api/pull/739.diff","patch_url":"https://github.com/travis-ci/travis-api/pull/739.patch","issue_url":"https://api.github.com/repos/travis-ci/travis-api/issues/739","number":739,"state":"closed","locked":false,"title":"Use custom middleware instead of the library provided RackMiddleware","user":{"login":"bogdanap","id":1673649,"avatar_url":"https://avatars3.githubusercontent.com/u/1673649?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdanap","html_url":"https://github.com/bogdanap","followers_url":"https://api.github.com/users/bogdanap/followers","following_url":"https://api.github.com/users/bogdanap/following{/other_user}","gists_url":"https://api.github.com/users/bogdanap/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdanap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdanap/subscriptions","organizations_url":"https://api.github.com/users/bogdanap/orgs","repos_url":"https://api.github.com/users/bogdanap/repos","events_url":"https://api.github.com/users/bogdanap/events{/privacy}","received_events_url":"https://api.github.com/users/bogdanap/received_events","type":"User","site_admin":false},"body":"This should fix both https://github.com/travis-ci/reliability/issues/71 and https://github.com/travis-ci/reliability/issues/72\r\n\r\nUsing a custom middleware should give us more control over how and what we want to trace.\r\nI copied over the methods in RackMiddleware, but added extra attributes to the span (app, site and request id for now) and logic to handle the 'HTTP_TRACE' header.","created_at":"2018-04-18T14:33:20Z","updated_at":"2018-04-19T08:35:16Z","closed_at":"2018-04-19T08:35:16Z","merged_at":"2018-04-19T08:35:16Z","merge_commit_sha":"f9f0266e429246da03bf84dc1ad136130b7c8b65","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/739/commits","review_comments_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/739/comments","review_comment_url":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/issues/739/comments","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/44b4edd8ff1bf332e613a40900a436ec84d3eba6","head":{"label":"travis-ci:bv-new-opencensus-middleware","ref":"bv-new-opencensus-middleware","sha":"44b4edd8ff1bf332e613a40900a436ec84d3eba6","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":5096124,"name":"travis-api","full_name":"travis-ci/travis-api","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/travis-api","description":"The public Travis API","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-api","forks_url":"https://api.github.com/repos/travis-ci/travis-api/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-api/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-api/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-api/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-api/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-api/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-api/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-api/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-api/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-api/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-api/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-api/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-api/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-api/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-api/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-api/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-api/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-api/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-api/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-api/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-api/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-api/deployments","created_at":"2012-07-18T12:55:46Z","updated_at":"2018-04-18T18:12:24Z","pushed_at":"2018-04-19T08:35:16Z","git_url":"git://github.com/travis-ci/travis-api.git","ssh_url":"git@github.com:travis-ci/travis-api.git","clone_url":"https://github.com/travis-ci/travis-api.git","svn_url":"https://github.com/travis-ci/travis-api","homepage":"https://api.travis-ci.org","size":7250,"stargazers_count":210,"watchers_count":210,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":118,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":118,"open_issues":23,"watchers":210,"default_branch":"master"}},"base":{"label":"travis-ci:master","ref":"master","sha":"efd61183af10939a45c83201a6732ceb5d6b9c6f","user":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":5096124,"name":"travis-api","full_name":"travis-ci/travis-api","owner":{"login":"travis-ci","id":639823,"avatar_url":"https://avatars2.githubusercontent.com/u/639823?v=4","gravatar_id":"","url":"https://api.github.com/users/travis-ci","html_url":"https://github.com/travis-ci","followers_url":"https://api.github.com/users/travis-ci/followers","following_url":"https://api.github.com/users/travis-ci/following{/other_user}","gists_url":"https://api.github.com/users/travis-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/travis-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/travis-ci/subscriptions","organizations_url":"https://api.github.com/users/travis-ci/orgs","repos_url":"https://api.github.com/users/travis-ci/repos","events_url":"https://api.github.com/users/travis-ci/events{/privacy}","received_events_url":"https://api.github.com/users/travis-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/travis-ci/travis-api","description":"The public Travis API","fork":false,"url":"https://api.github.com/repos/travis-ci/travis-api","forks_url":"https://api.github.com/repos/travis-ci/travis-api/forks","keys_url":"https://api.github.com/repos/travis-ci/travis-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/travis-ci/travis-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/travis-ci/travis-api/teams","hooks_url":"https://api.github.com/repos/travis-ci/travis-api/hooks","issue_events_url":"https://api.github.com/repos/travis-ci/travis-api/issues/events{/number}","events_url":"https://api.github.com/repos/travis-ci/travis-api/events","assignees_url":"https://api.github.com/repos/travis-ci/travis-api/assignees{/user}","branches_url":"https://api.github.com/repos/travis-ci/travis-api/branches{/branch}","tags_url":"https://api.github.com/repos/travis-ci/travis-api/tags","blobs_url":"https://api.github.com/repos/travis-ci/travis-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/travis-ci/travis-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/travis-ci/travis-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/travis-ci/travis-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/travis-ci/travis-api/statuses/{sha}","languages_url":"https://api.github.com/repos/travis-ci/travis-api/languages","stargazers_url":"https://api.github.com/repos/travis-ci/travis-api/stargazers","contributors_url":"https://api.github.com/repos/travis-ci/travis-api/contributors","subscribers_url":"https://api.github.com/repos/travis-ci/travis-api/subscribers","subscription_url":"https://api.github.com/repos/travis-ci/travis-api/subscription","commits_url":"https://api.github.com/repos/travis-ci/travis-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/travis-ci/travis-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/travis-ci/travis-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/travis-ci/travis-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/travis-ci/travis-api/contents/{+path}","compare_url":"https://api.github.com/repos/travis-ci/travis-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/travis-ci/travis-api/merges","archive_url":"https://api.github.com/repos/travis-ci/travis-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/travis-ci/travis-api/downloads","issues_url":"https://api.github.com/repos/travis-ci/travis-api/issues{/number}","pulls_url":"https://api.github.com/repos/travis-ci/travis-api/pulls{/number}","milestones_url":"https://api.github.com/repos/travis-ci/travis-api/milestones{/number}","notifications_url":"https://api.github.com/repos/travis-ci/travis-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/travis-ci/travis-api/labels{/name}","releases_url":"https://api.github.com/repos/travis-ci/travis-api/releases{/id}","deployments_url":"https://api.github.com/repos/travis-ci/travis-api/deployments","created_at":"2012-07-18T12:55:46Z","updated_at":"2018-04-18T18:12:24Z","pushed_at":"2018-04-19T08:35:16Z","git_url":"git://github.com/travis-ci/travis-api.git","ssh_url":"git@github.com:travis-ci/travis-api.git","clone_url":"https://github.com/travis-ci/travis-api.git","svn_url":"https://github.com/travis-ci/travis-api","homepage":"https://api.travis-ci.org","size":7250,"stargazers_count":210,"watchers_count":210,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":118,"mirror_url":null,"archived":false,"open_issues_count":23,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":118,"open_issues":23,"watchers":210,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/739"},"html":{"href":"https://github.com/travis-ci/travis-api/pull/739"},"issue":{"href":"https://api.github.com/repos/travis-ci/travis-api/issues/739"},"comments":{"href":"https://api.github.com/repos/travis-ci/travis-api/issues/739/comments"},"review_comments":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/739/comments"},"review_comment":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/travis-ci/travis-api/pulls/739/commits"},"statuses":{"href":"https://api.github.com/repos/travis-ci/travis-api/statuses/44b4edd8ff1bf332e613a40900a436ec84d3eba6"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"bogdanap","id":1673649,"avatar_url":"https://avatars3.githubusercontent.com/u/1673649?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdanap","html_url":"https://github.com/bogdanap","followers_url":"https://api.github.com/users/bogdanap/followers","following_url":"https://api.github.com/users/bogdanap/following{/other_user}","gists_url":"https://api.github.com/users/bogdanap/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdanap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdanap/subscriptions","organizations_url":"https://api.github.com/users/bogdanap/orgs","repos_url":"https://api.github.com/users/bogdanap/repos","events_url":"https://api.github.com/users/bogdanap/events{/privacy}","received_events_url":"https://api.github.com/users/bogdanap/received_events","type":"User","site_admin":false},"comments":1,"review_comments":1,"maintainer_can_modify":false,"commits":9,"additions":130,"deletions":31,"changed_files":2}}
{"actor":{"display_login":"bogdanap"}}