{"action":"created","comment":{"url":"https://api.github.com/repos/OriginProtocol/origin/pulls/comments/230256975","pull_request_review_id":170954343,"id":230256975,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDI1Njk3NQ==","diff_hunk":"@@ -1,7 +1,19 @@\n-const { ApolloServer, gql } = require('apollo-server')\n-\n-var search = require('../lib/search.js')\n-var db = require('../lib/db.js')\n+const express = require('express')\n+const promBundle = require(\"express-prom-bundle\");","path":"origin-discovery/apollo/index.js","position":6,"original_position":6,"commit_id":"25c1a706863ef742e7920f522e6bdaf04da84c06","original_commit_id":"25c1a706863ef742e7920f522e6bdaf04da84c06","user":{"login":"franckc","id":945910,"node_id":"MDQ6VXNlcjk0NTkxMA==","avatar_url":"https://avatars3.githubusercontent.com/u/945910?v=4","gravatar_id":"","url":"https://api.github.com/users/franckc","html_url":"https://github.com/franckc","followers_url":"https://api.github.com/users/franckc/followers","following_url":"https://api.github.com/users/franckc/following{/other_user}","gists_url":"https://api.github.com/users/franckc/gists{/gist_id}","starred_url":"https://api.github.com/users/franckc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franckc/subscriptions","organizations_url":"https://api.github.com/users/franckc/orgs","repos_url":"https://api.github.com/users/franckc/repos","events_url":"https://api.github.com/users/franckc/events{/privacy}","received_events_url":"https://api.github.com/users/franckc/received_events","type":"User","site_admin":false},"body":"super nit: use single quote","created_at":"2018-11-02T02:44:13Z","updated_at":"2018-11-02T02:48:59Z","html_url":"https://github.com/OriginProtocol/origin/pull/870#discussion_r230256975","pull_request_url":"https://api.github.com/repos/OriginProtocol/origin/pulls/870","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/OriginProtocol/origin/pulls/comments/230256975"},"html":{"href":"https://github.com/OriginProtocol/origin/pull/870#discussion_r230256975"},"pull_request":{"href":"https://api.github.com/repos/OriginProtocol/origin/pulls/870"}}},"pull_request":{"url":"https://api.github.com/repos/OriginProtocol/origin/pulls/870","id":227800775,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI3ODAwNzc1","html_url":"https://github.com/OriginProtocol/origin/pull/870","diff_url":"https://github.com/OriginProtocol/origin/pull/870.diff","patch_url":"https://github.com/OriginProtocol/origin/pull/870.patch","issue_url":"https://api.github.com/repos/OriginProtocol/origin/issues/870","number":870,"state":"open","locked":false,"title":"Basic instrumentation for discovery services","user":{"login":"tomlinton","id":489202,"node_id":"MDQ6VXNlcjQ4OTIwMg==","avatar_url":"https://avatars3.githubusercontent.com/u/489202?v=4","gravatar_id":"","url":"https://api.github.com/users/tomlinton","html_url":"https://github.com/tomlinton","followers_url":"https://api.github.com/users/tomlinton/followers","following_url":"https://api.github.com/users/tomlinton/following{/other_user}","gists_url":"https://api.github.com/users/tomlinton/gists{/gist_id}","starred_url":"https://api.github.com/users/tomlinton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomlinton/subscriptions","organizations_url":"https://api.github.com/users/tomlinton/orgs","repos_url":"https://api.github.com/users/tomlinton/repos","events_url":"https://api.github.com/users/tomlinton/events{/privacy}","received_events_url":"https://api.github.com/users/tomlinton/received_events","type":"User","site_admin":false},"body":"First pull request? Read our [guide to contributing](http://docs.originprotocol.com/#contributing)\r\n\r\n### Checklist:\r\n\r\n- [x] Test your work and double-check to confirm that you didn't break anything\r\n- [x] Ensure all new and existing tests pass\r\n- [x] Format code to be consistent with the project\r\n- [x] Wrap any new text/strings for translation\r\n- [x] Map any new environment variables with a default value in the Webpack config\r\n- [x] Update any relevant READMEs and [docs](https://github.com/OriginProtocol/origin/tree/master/origin-docs)\r\n\r\n### Description:\r\n\r\n- Adds basic instrumentation to apollo\r\n- Adds basic instrumentation + last processed block gauge to event-listener. This involved working an express server into the event-listener\r\n- Updated the Kubernetes deployment to support the changes to apollo\r\n- Some whitespace cleanup\r\n","created_at":"2018-11-02T00:39:55Z","updated_at":"2018-11-02T02:48:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d1b46cd547441f812d1a78e08b3a75842f33edf5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OriginProtocol/origin/pulls/870/commits","review_comments_url":"https://api.github.com/repos/OriginProtocol/origin/pulls/870/comments","review_comment_url":"https://api.github.com/repos/OriginProtocol/origin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OriginProtocol/origin/issues/870/comments","statuses_url":"https://api.github.com/repos/OriginProtocol/origin/statuses/25c1a706863ef742e7920f522e6bdaf04da84c06","head":{"label":"OriginProtocol:tomlinton/discovery-instrumentation","ref":"tomlinton/discovery-instrumentation","sha":"25c1a706863ef742e7920f522e6bdaf04da84c06","user":{"login":"OriginProtocol","id":30638653,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNjM4NjUz","avatar_url":"https://avatars2.githubusercontent.com/u/30638653?v=4","gravatar_id":"","url":"https://api.github.com/users/OriginProtocol","html_url":"https://github.com/OriginProtocol","followers_url":"https://api.github.com/users/OriginProtocol/followers","following_url":"https://api.github.com/users/OriginProtocol/following{/other_user}","gists_url":"https://api.github.com/users/OriginProtocol/gists{/gist_id}","starred_url":"https://api.github.com/users/OriginProtocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OriginProtocol/subscriptions","organizations_url":"https://api.github.com/users/OriginProtocol/orgs","repos_url":"https://api.github.com/users/OriginProtocol/repos","events_url":"https://api.github.com/users/OriginProtocol/events{/privacy}","received_events_url":"https://api.github.com/users/OriginProtocol/received_events","type":"Organization","site_admin":false},"repo":{"id":99047066,"node_id":"MDEwOlJlcG9zaXRvcnk5OTA0NzA2Ng==","name":"origin","full_name":"OriginProtocol/origin","private":false,"owner":{"login":"OriginProtocol","id":30638653,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNjM4NjUz","avatar_url":"https://avatars2.githubusercontent.com/u/30638653?v=4","gravatar_id":"","url":"https://api.github.com/users/OriginProtocol","html_url":"https://github.com/OriginProtocol","followers_url":"https://api.github.com/users/OriginProtocol/followers","following_url":"https://api.github.com/users/OriginProtocol/following{/other_user}","gists_url":"https://api.github.com/users/OriginProtocol/gists{/gist_id}","starred_url":"https://api.github.com/users/OriginProtocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OriginProtocol/subscriptions","organizations_url":"https://api.github.com/users/OriginProtocol/orgs","repos_url":"https://api.github.com/users/OriginProtocol/repos","events_url":"https://api.github.com/users/OriginProtocol/events{/privacy}","received_events_url":"https://api.github.com/users/OriginProtocol/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/OriginProtocol/origin","description":"Monorepo for our developer tools and decentralized application","fork":false,"url":"https://api.github.com/repos/OriginProtocol/origin","forks_url":"https://api.github.com/repos/OriginProtocol/origin/forks","keys_url":"https://api.github.com/repos/OriginProtocol/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OriginProtocol/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OriginProtocol/origin/teams","hooks_url":"https://api.github.com/repos/OriginProtocol/origin/hooks","issue_events_url":"https://api.github.com/repos/OriginProtocol/origin/issues/events{/number}","events_url":"https://api.github.com/repos/OriginProtocol/origin/events","assignees_url":"https://api.github.com/repos/OriginProtocol/origin/assignees{/user}","branches_url":"https://api.github.com/repos/OriginProtocol/origin/branches{/branch}","tags_url":"https://api.github.com/repos/OriginProtocol/origin/tags","blobs_url":"https://api.github.com/repos/OriginProtocol/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OriginProtocol/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OriginProtocol/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/OriginProtocol/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OriginProtocol/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/OriginProtocol/origin/languages","stargazers_url":"https://api.github.com/repos/OriginProtocol/origin/stargazers","contributors_url":"https://api.github.com/repos/OriginProtocol/origin/contributors","subscribers_url":"https://api.github.com/repos/OriginProtocol/origin/subscribers","subscription_url":"https://api.github.com/repos/OriginProtocol/origin/subscription","commits_url":"https://api.github.com/repos/OriginProtocol/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/OriginProtocol/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/OriginProtocol/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/OriginProtocol/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/OriginProtocol/origin/contents/{+path}","compare_url":"https://api.github.com/repos/OriginProtocol/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OriginProtocol/origin/merges","archive_url":"https://api.github.com/repos/OriginProtocol/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OriginProtocol/origin/downloads","issues_url":"https://api.github.com/repos/OriginProtocol/origin/issues{/number}","pulls_url":"https://api.github.com/repos/OriginProtocol/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/OriginProtocol/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/OriginProtocol/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OriginProtocol/origin/labels{/name}","releases_url":"https://api.github.com/repos/OriginProtocol/origin/releases{/id}","deployments_url":"https://api.github.com/repos/OriginProtocol/origin/deployments","created_at":"2017-08-01T22:06:57Z","updated_at":"2018-11-02T00:54:38Z","pushed_at":"2018-11-02T01:53:48Z","git_url":"git://github.com/OriginProtocol/origin.git","ssh_url":"git@github.com:OriginProtocol/origin.git","clone_url":"https://github.com/OriginProtocol/origin.git","svn_url":"https://github.com/OriginProtocol/origin","homepage":"https://www.originprotocol.com/developers","size":85198,"stargazers_count":339,"watchers_count":339,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":113,"mirror_url":null,"archived":false,"open_issues_count":168,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":113,"open_issues":168,"watchers":339,"default_branch":"master"}},"base":{"label":"OriginProtocol:master","ref":"master","sha":"18047022c827961035fb69ff6671836ecba17276","user":{"login":"OriginProtocol","id":30638653,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNjM4NjUz","avatar_url":"https://avatars2.githubusercontent.com/u/30638653?v=4","gravatar_id":"","url":"https://api.github.com/users/OriginProtocol","html_url":"https://github.com/OriginProtocol","followers_url":"https://api.github.com/users/OriginProtocol/followers","following_url":"https://api.github.com/users/OriginProtocol/following{/other_user}","gists_url":"https://api.github.com/users/OriginProtocol/gists{/gist_id}","starred_url":"https://api.github.com/users/OriginProtocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OriginProtocol/subscriptions","organizations_url":"https://api.github.com/users/OriginProtocol/orgs","repos_url":"https://api.github.com/users/OriginProtocol/repos","events_url":"https://api.github.com/users/OriginProtocol/events{/privacy}","received_events_url":"https://api.github.com/users/OriginProtocol/received_events","type":"Organization","site_admin":false},"repo":{"id":99047066,"node_id":"MDEwOlJlcG9zaXRvcnk5OTA0NzA2Ng==","name":"origin","full_name":"OriginProtocol/origin","private":false,"owner":{"login":"OriginProtocol","id":30638653,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNjM4NjUz","avatar_url":"https://avatars2.githubusercontent.com/u/30638653?v=4","gravatar_id":"","url":"https://api.github.com/users/OriginProtocol","html_url":"https://github.com/OriginProtocol","followers_url":"https://api.github.com/users/OriginProtocol/followers","following_url":"https://api.github.com/users/OriginProtocol/following{/other_user}","gists_url":"https://api.github.com/users/OriginProtocol/gists{/gist_id}","starred_url":"https://api.github.com/users/OriginProtocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OriginProtocol/subscriptions","organizations_url":"https://api.github.com/users/OriginProtocol/orgs","repos_url":"https://api.github.com/users/OriginProtocol/repos","events_url":"https://api.github.com/users/OriginProtocol/events{/privacy}","received_events_url":"https://api.github.com/users/OriginProtocol/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/OriginProtocol/origin","description":"Monorepo for our developer tools and decentralized application","fork":false,"url":"https://api.github.com/repos/OriginProtocol/origin","forks_url":"https://api.github.com/repos/OriginProtocol/origin/forks","keys_url":"https://api.github.com/repos/OriginProtocol/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OriginProtocol/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OriginProtocol/origin/teams","hooks_url":"https://api.github.com/repos/OriginProtocol/origin/hooks","issue_events_url":"https://api.github.com/repos/OriginProtocol/origin/issues/events{/number}","events_url":"https://api.github.com/repos/OriginProtocol/origin/events","assignees_url":"https://api.github.com/repos/OriginProtocol/origin/assignees{/user}","branches_url":"https://api.github.com/repos/OriginProtocol/origin/branches{/branch}","tags_url":"https://api.github.com/repos/OriginProtocol/origin/tags","blobs_url":"https://api.github.com/repos/OriginProtocol/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OriginProtocol/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OriginProtocol/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/OriginProtocol/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OriginProtocol/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/OriginProtocol/origin/languages","stargazers_url":"https://api.github.com/repos/OriginProtocol/origin/stargazers","contributors_url":"https://api.github.com/repos/OriginProtocol/origin/contributors","subscribers_url":"https://api.github.com/repos/OriginProtocol/origin/subscribers","subscription_url":"https://api.github.com/repos/OriginProtocol/origin/subscription","commits_url":"https://api.github.com/repos/OriginProtocol/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/OriginProtocol/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/OriginProtocol/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/OriginProtocol/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/OriginProtocol/origin/contents/{+path}","compare_url":"https://api.github.com/repos/OriginProtocol/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OriginProtocol/origin/merges","archive_url":"https://api.github.com/repos/OriginProtocol/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OriginProtocol/origin/downloads","issues_url":"https://api.github.com/repos/OriginProtocol/origin/issues{/number}","pulls_url":"https://api.github.com/repos/OriginProtocol/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/OriginProtocol/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/OriginProtocol/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OriginProtocol/origin/labels{/name}","releases_url":"https://api.github.com/repos/OriginProtocol/origin/releases{/id}","deployments_url":"https://api.github.com/repos/OriginProtocol/origin/deployments","created_at":"2017-08-01T22:06:57Z","updated_at":"2018-11-02T00:54:38Z","pushed_at":"2018-11-02T01:53:48Z","git_url":"git://github.com/OriginProtocol/origin.git","ssh_url":"git@github.com:OriginProtocol/origin.git","clone_url":"https://github.com/OriginProtocol/origin.git","svn_url":"https://github.com/OriginProtocol/origin","homepage":"https://www.originprotocol.com/developers","size":85198,"stargazers_count":339,"watchers_count":339,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":113,"mirror_url":null,"archived":false,"open_issues_count":168,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":113,"open_issues":168,"watchers":339,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OriginProtocol/origin/pulls/870"},"html":{"href":"https://github.com/OriginProtocol/origin/pull/870"},"issue":{"href":"https://api.github.com/repos/OriginProtocol/origin/issues/870"},"comments":{"href":"https://api.github.com/repos/OriginProtocol/origin/issues/870/comments"},"review_comments":{"href":"https://api.github.com/repos/OriginProtocol/origin/pulls/870/comments"},"review_comment":{"href":"https://api.github.com/repos/OriginProtocol/origin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OriginProtocol/origin/pulls/870/commits"},"statuses":{"href":"https://api.github.com/repos/OriginProtocol/origin/statuses/25c1a706863ef742e7920f522e6bdaf04da84c06"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"franckc"}}