{"action":"created","comment":{"url":"https://api.github.com/repos/uber-go/tally/pulls/comments/93945293","pull_request_review_id":14476546,"id":93945293,"diff_hunk":"@@ -0,0 +1,48 @@\n+# Example Usage\n+\n+`main.go`:\n+\n+```\n+package main\n+\n+import (\n+        \"fmt\"\n+        \"github.com/uber-go/tally/prometheus\"\n+        \"math/rand\"\n+        \"net/http\"\n+        \"time\"\n+)\n+\n+func main() {\n+        r := prometheus.NewReporter()\n+\n+        r.RegisterCounter(\"test_counter\", map[string]string{\"labela\": \"foo\"}, \"This is a counter\")\n+        r.RegisterGauge(\"test_gauge\", map[string]string{\"labela\": \"foo\"}, \"This is a gauge\")\n+        r.RegisterTimer(\"test_histogram\", map[string]string{\"labela\": \"foo\"}, \"This is a histogram\", nil)\n+\n+        go func() {\n+                for {\n+                        r.ReportCounter(\"test_counter\", map[string]string{\"labela\": \"foo\"}, 1)\n+                        time.Sleep(1000000)\n+                }\n+        }()\n+        go func() {\n+                for {\n+                        r.ReportGauge(\"test_gauge\", map[string]string{\"labela\": \"foo\"}, rand.Float64()*1000)\n+                        time.Sleep(1000000)\n+                }\n+        }()\n+\n+        go func() {\n+                for {\n+                        r.ReportTimer(\"test_histogram\", map[string]string{\"labela\": \"foo\"}, time.Duration(rand.Float64()*1000*1000))\n+                        time.Sleep(1000000)\n+                }\n+        }()","path":"prometheus/README.md","position":41,"original_position":41,"commit_id":"7a05a2b712c8d4a769190eb982a614c7d17974e6","original_commit_id":"7a05a2b712c8d4a769190eb982a614c7d17974e6","user":{"login":"byxorna","id":130194,"avatar_url":"https://avatars.githubusercontent.com/u/130194?v=3","gravatar_id":"","url":"https://api.github.com/users/byxorna","html_url":"https://github.com/byxorna","followers_url":"https://api.github.com/users/byxorna/followers","following_url":"https://api.github.com/users/byxorna/following{/other_user}","gists_url":"https://api.github.com/users/byxorna/gists{/gist_id}","starred_url":"https://api.github.com/users/byxorna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byxorna/subscriptions","organizations_url":"https://api.github.com/users/byxorna/orgs","repos_url":"https://api.github.com/users/byxorna/repos","events_url":"https://api.github.com/users/byxorna/events{/privacy}","received_events_url":"https://api.github.com/users/byxorna/received_events","type":"User","site_admin":false},"body":"Sure thing. Ill update it.","created_at":"2016-12-27T16:07:30Z","updated_at":"2016-12-27T16:07:30Z","html_url":"https://github.com/uber-go/tally/pull/16#discussion_r93945293","pull_request_url":"https://api.github.com/repos/uber-go/tally/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/uber-go/tally/pulls/comments/93945293"},"html":{"href":"https://github.com/uber-go/tally/pull/16#discussion_r93945293"},"pull_request":{"href":"https://api.github.com/repos/uber-go/tally/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/uber-go/tally/pulls/16","id":99131305,"html_url":"https://github.com/uber-go/tally/pull/16","diff_url":"https://github.com/uber-go/tally/pull/16.diff","patch_url":"https://github.com/uber-go/tally/pull/16.patch","issue_url":"https://api.github.com/repos/uber-go/tally/issues/16","number":16,"state":"open","locked":false,"title":"Add prometheus backend support","user":{"login":"byxorna","id":130194,"avatar_url":"https://avatars.githubusercontent.com/u/130194?v=3","gravatar_id":"","url":"https://api.github.com/users/byxorna","html_url":"https://github.com/byxorna","followers_url":"https://api.github.com/users/byxorna/followers","following_url":"https://api.github.com/users/byxorna/following{/other_user}","gists_url":"https://api.github.com/users/byxorna/gists{/gist_id}","starred_url":"https://api.github.com/users/byxorna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byxorna/subscriptions","organizations_url":"https://api.github.com/users/byxorna/orgs","repos_url":"https://api.github.com/users/byxorna/repos","events_url":"https://api.github.com/users/byxorna/events{/privacy}","received_events_url":"https://api.github.com/users/byxorna/received_events","type":"User","site_admin":false},"body":"Adds a new reporter that supports the prometheus registry backend.\r\n\r\n","created_at":"2016-12-22T16:24:13Z","updated_at":"2016-12-27T16:07:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f45da1dc893e981a68693b957a2b0911386b5678","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/uber-go/tally/pulls/16/commits","review_comments_url":"https://api.github.com/repos/uber-go/tally/pulls/16/comments","review_comment_url":"https://api.github.com/repos/uber-go/tally/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uber-go/tally/issues/16/comments","statuses_url":"https://api.github.com/repos/uber-go/tally/statuses/7a05a2b712c8d4a769190eb982a614c7d17974e6","head":{"label":"byxorna:gabe-prom-support","ref":"gabe-prom-support","sha":"7a05a2b712c8d4a769190eb982a614c7d17974e6","user":{"login":"byxorna","id":130194,"avatar_url":"https://avatars.githubusercontent.com/u/130194?v=3","gravatar_id":"","url":"https://api.github.com/users/byxorna","html_url":"https://github.com/byxorna","followers_url":"https://api.github.com/users/byxorna/followers","following_url":"https://api.github.com/users/byxorna/following{/other_user}","gists_url":"https://api.github.com/users/byxorna/gists{/gist_id}","starred_url":"https://api.github.com/users/byxorna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byxorna/subscriptions","organizations_url":"https://api.github.com/users/byxorna/orgs","repos_url":"https://api.github.com/users/byxorna/repos","events_url":"https://api.github.com/users/byxorna/events{/privacy}","received_events_url":"https://api.github.com/users/byxorna/received_events","type":"User","site_admin":false},"repo":{"id":77072023,"name":"tally","full_name":"byxorna/tally","owner":{"login":"byxorna","id":130194,"avatar_url":"https://avatars.githubusercontent.com/u/130194?v=3","gravatar_id":"","url":"https://api.github.com/users/byxorna","html_url":"https://github.com/byxorna","followers_url":"https://api.github.com/users/byxorna/followers","following_url":"https://api.github.com/users/byxorna/following{/other_user}","gists_url":"https://api.github.com/users/byxorna/gists{/gist_id}","starred_url":"https://api.github.com/users/byxorna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byxorna/subscriptions","organizations_url":"https://api.github.com/users/byxorna/orgs","repos_url":"https://api.github.com/users/byxorna/repos","events_url":"https://api.github.com/users/byxorna/events{/privacy}","received_events_url":"https://api.github.com/users/byxorna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/byxorna/tally","description":"A common metrics logging interface with fast buffered metrics","fork":true,"url":"https://api.github.com/repos/byxorna/tally","forks_url":"https://api.github.com/repos/byxorna/tally/forks","keys_url":"https://api.github.com/repos/byxorna/tally/keys{/key_id}","collaborators_url":"https://api.github.com/repos/byxorna/tally/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/byxorna/tally/teams","hooks_url":"https://api.github.com/repos/byxorna/tally/hooks","issue_events_url":"https://api.github.com/repos/byxorna/tally/issues/events{/number}","events_url":"https://api.github.com/repos/byxorna/tally/events","assignees_url":"https://api.github.com/repos/byxorna/tally/assignees{/user}","branches_url":"https://api.github.com/repos/byxorna/tally/branches{/branch}","tags_url":"https://api.github.com/repos/byxorna/tally/tags","blobs_url":"https://api.github.com/repos/byxorna/tally/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/byxorna/tally/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/byxorna/tally/git/refs{/sha}","trees_url":"https://api.github.com/repos/byxorna/tally/git/trees{/sha}","statuses_url":"https://api.github.com/repos/byxorna/tally/statuses/{sha}","languages_url":"https://api.github.com/repos/byxorna/tally/languages","stargazers_url":"https://api.github.com/repos/byxorna/tally/stargazers","contributors_url":"https://api.github.com/repos/byxorna/tally/contributors","subscribers_url":"https://api.github.com/repos/byxorna/tally/subscribers","subscription_url":"https://api.github.com/repos/byxorna/tally/subscription","commits_url":"https://api.github.com/repos/byxorna/tally/commits{/sha}","git_commits_url":"https://api.github.com/repos/byxorna/tally/git/commits{/sha}","comments_url":"https://api.github.com/repos/byxorna/tally/comments{/number}","issue_comment_url":"https://api.github.com/repos/byxorna/tally/issues/comments{/number}","contents_url":"https://api.github.com/repos/byxorna/tally/contents/{+path}","compare_url":"https://api.github.com/repos/byxorna/tally/compare/{base}...{head}","merges_url":"https://api.github.com/repos/byxorna/tally/merges","archive_url":"https://api.github.com/repos/byxorna/tally/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/byxorna/tally/downloads","issues_url":"https://api.github.com/repos/byxorna/tally/issues{/number}","pulls_url":"https://api.github.com/repos/byxorna/tally/pulls{/number}","milestones_url":"https://api.github.com/repos/byxorna/tally/milestones{/number}","notifications_url":"https://api.github.com/repos/byxorna/tally/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/byxorna/tally/labels{/name}","releases_url":"https://api.github.com/repos/byxorna/tally/releases{/id}","deployments_url":"https://api.github.com/repos/byxorna/tally/deployments","created_at":"2016-12-21T17:21:38Z","updated_at":"2016-12-21T17:21:40Z","pushed_at":"2016-12-22T16:33:53Z","git_url":"git://github.com/byxorna/tally.git","ssh_url":"git@github.com:byxorna/tally.git","clone_url":"https://github.com/byxorna/tally.git","svn_url":"https://github.com/byxorna/tally","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"uber-go:master","ref":"master","sha":"2750b4ae690cbeb294016efe18ceaeb80c4ce17c","user":{"login":"uber-go","id":19262598,"avatar_url":"https://avatars.githubusercontent.com/u/19262598?v=3","gravatar_id":"","url":"https://api.github.com/users/uber-go","html_url":"https://github.com/uber-go","followers_url":"https://api.github.com/users/uber-go/followers","following_url":"https://api.github.com/users/uber-go/following{/other_user}","gists_url":"https://api.github.com/users/uber-go/gists{/gist_id}","starred_url":"https://api.github.com/users/uber-go/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber-go/subscriptions","organizations_url":"https://api.github.com/users/uber-go/orgs","repos_url":"https://api.github.com/users/uber-go/repos","events_url":"https://api.github.com/users/uber-go/events{/privacy}","received_events_url":"https://api.github.com/users/uber-go/received_events","type":"Organization","site_admin":false},"repo":{"id":65762567,"name":"tally","full_name":"uber-go/tally","owner":{"login":"uber-go","id":19262598,"avatar_url":"https://avatars.githubusercontent.com/u/19262598?v=3","gravatar_id":"","url":"https://api.github.com/users/uber-go","html_url":"https://github.com/uber-go","followers_url":"https://api.github.com/users/uber-go/followers","following_url":"https://api.github.com/users/uber-go/following{/other_user}","gists_url":"https://api.github.com/users/uber-go/gists{/gist_id}","starred_url":"https://api.github.com/users/uber-go/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uber-go/subscriptions","organizations_url":"https://api.github.com/users/uber-go/orgs","repos_url":"https://api.github.com/users/uber-go/repos","events_url":"https://api.github.com/users/uber-go/events{/privacy}","received_events_url":"https://api.github.com/users/uber-go/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uber-go/tally","description":"A common metrics logging interface with fast buffered metrics","fork":false,"url":"https://api.github.com/repos/uber-go/tally","forks_url":"https://api.github.com/repos/uber-go/tally/forks","keys_url":"https://api.github.com/repos/uber-go/tally/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uber-go/tally/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uber-go/tally/teams","hooks_url":"https://api.github.com/repos/uber-go/tally/hooks","issue_events_url":"https://api.github.com/repos/uber-go/tally/issues/events{/number}","events_url":"https://api.github.com/repos/uber-go/tally/events","assignees_url":"https://api.github.com/repos/uber-go/tally/assignees{/user}","branches_url":"https://api.github.com/repos/uber-go/tally/branches{/branch}","tags_url":"https://api.github.com/repos/uber-go/tally/tags","blobs_url":"https://api.github.com/repos/uber-go/tally/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uber-go/tally/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uber-go/tally/git/refs{/sha}","trees_url":"https://api.github.com/repos/uber-go/tally/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uber-go/tally/statuses/{sha}","languages_url":"https://api.github.com/repos/uber-go/tally/languages","stargazers_url":"https://api.github.com/repos/uber-go/tally/stargazers","contributors_url":"https://api.github.com/repos/uber-go/tally/contributors","subscribers_url":"https://api.github.com/repos/uber-go/tally/subscribers","subscription_url":"https://api.github.com/repos/uber-go/tally/subscription","commits_url":"https://api.github.com/repos/uber-go/tally/commits{/sha}","git_commits_url":"https://api.github.com/repos/uber-go/tally/git/commits{/sha}","comments_url":"https://api.github.com/repos/uber-go/tally/comments{/number}","issue_comment_url":"https://api.github.com/repos/uber-go/tally/issues/comments{/number}","contents_url":"https://api.github.com/repos/uber-go/tally/contents/{+path}","compare_url":"https://api.github.com/repos/uber-go/tally/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uber-go/tally/merges","archive_url":"https://api.github.com/repos/uber-go/tally/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uber-go/tally/downloads","issues_url":"https://api.github.com/repos/uber-go/tally/issues{/number}","pulls_url":"https://api.github.com/repos/uber-go/tally/pulls{/number}","milestones_url":"https://api.github.com/repos/uber-go/tally/milestones{/number}","notifications_url":"https://api.github.com/repos/uber-go/tally/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uber-go/tally/labels{/name}","releases_url":"https://api.github.com/repos/uber-go/tally/releases{/id}","deployments_url":"https://api.github.com/repos/uber-go/tally/deployments","created_at":"2016-08-15T20:24:57Z","updated_at":"2016-12-21T23:14:57Z","pushed_at":"2016-12-22T16:33:55Z","git_url":"git://github.com/uber-go/tally.git","ssh_url":"git@github.com:uber-go/tally.git","clone_url":"https://github.com/uber-go/tally.git","svn_url":"https://github.com/uber-go/tally","homepage":null,"size":63,"stargazers_count":32,"watchers_count":32,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uber-go/tally/pulls/16"},"html":{"href":"https://github.com/uber-go/tally/pull/16"},"issue":{"href":"https://api.github.com/repos/uber-go/tally/issues/16"},"comments":{"href":"https://api.github.com/repos/uber-go/tally/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/uber-go/tally/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/uber-go/tally/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uber-go/tally/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/uber-go/tally/statuses/7a05a2b712c8d4a769190eb982a614c7d17974e6"}}}}
{"actor":{"display_login":"byxorna"}}