{"action":"created","comment":{"url":"https://api.github.com/repos/DoSomething/northstar/pulls/comments/55093849","id":55093849,"diff_hunk":"@@ -34,6 +27,11 @@ public function boot(DispatcherContract $events)\n     {\n         parent::boot($events);\n \n-        //\n+        // Update count on StatHat every time a route is hit.\n+        // e.g. will increment the \"northstar - v1/users/{term}/{id}\" stat each\n+        // time a client attempts to view a user profile through that route.\n+        $events->listen(RouteMatched::class, function (RouteMatched $match) {","path":"app/Providers/EventServiceProvider.php","position":33,"original_position":33,"commit_id":"4026031cf1d515a00dc750eac9b0ef4d9fa341af","original_commit_id":"4026031cf1d515a00dc750eac9b0ef4d9fa341af","user":{"login":"angaither","id":645205,"avatar_url":"https://avatars.githubusercontent.com/u/645205?v=3","gravatar_id":"","url":"https://api.github.com/users/angaither","html_url":"https://github.com/angaither","followers_url":"https://api.github.com/users/angaither/followers","following_url":"https://api.github.com/users/angaither/following{/other_user}","gists_url":"https://api.github.com/users/angaither/gists{/gist_id}","starred_url":"https://api.github.com/users/angaither/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angaither/subscriptions","organizations_url":"https://api.github.com/users/angaither/orgs","repos_url":"https://api.github.com/users/angaither/repos","events_url":"https://api.github.com/users/angaither/events{/privacy}","received_events_url":"https://api.github.com/users/angaither/received_events","type":"User","site_admin":false},"body":"woaaaaaaaahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh","created_at":"2016-03-04T21:48:49Z","updated_at":"2016-03-04T21:48:49Z","html_url":"https://github.com/DoSomething/northstar/pull/299#discussion_r55093849","pull_request_url":"https://api.github.com/repos/DoSomething/northstar/pulls/299","_links":{"self":{"href":"https://api.github.com/repos/DoSomething/northstar/pulls/comments/55093849"},"html":{"href":"https://github.com/DoSomething/northstar/pull/299#discussion_r55093849"},"pull_request":{"href":"https://api.github.com/repos/DoSomething/northstar/pulls/299"}}},"pull_request":{"url":"https://api.github.com/repos/DoSomething/northstar/pulls/299","id":61762797,"html_url":"https://github.com/DoSomething/northstar/pull/299","diff_url":"https://github.com/DoSomething/northstar/pull/299.diff","patch_url":"https://github.com/DoSomething/northstar/pull/299.patch","issue_url":"https://api.github.com/repos/DoSomething/northstar/issues/299","number":299,"state":"open","locked":false,"title":"Add StatHat logging!","user":{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},"body":"#### Changes\r\nAdds StatHat logging for each route & a couple of authentication/key errors. :chart_with_upwards_trend:  :tophat:\r\n\r\n#### Questions\r\nIs logging each time a route is matched overkill? I went back and forth, but it does give us nice visibility since there's no Google Analytics in the JSON API world...\r\n\r\n---\r\nFor review: @angaither @weerd @mshmsh5000 ","created_at":"2016-03-04T19:57:31Z","updated_at":"2016-03-04T21:48:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d167d5e7f6c62088901a1c77c4eaf9cf93c401d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DoSomething/northstar/pulls/299/commits","review_comments_url":"https://api.github.com/repos/DoSomething/northstar/pulls/299/comments","review_comment_url":"https://api.github.com/repos/DoSomething/northstar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DoSomething/northstar/issues/299/comments","statuses_url":"https://api.github.com/repos/DoSomething/northstar/statuses/4026031cf1d515a00dc750eac9b0ef4d9fa341af","head":{"label":"DFurnes:hat-trick","ref":"hat-trick","sha":"4026031cf1d515a00dc750eac9b0ef4d9fa341af","user":{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},"repo":{"id":34683157,"name":"northstar","full_name":"DFurnes/northstar","owner":{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DFurnes/northstar","description":"DoSomething.org User API.","fork":true,"url":"https://api.github.com/repos/DFurnes/northstar","forks_url":"https://api.github.com/repos/DFurnes/northstar/forks","keys_url":"https://api.github.com/repos/DFurnes/northstar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DFurnes/northstar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DFurnes/northstar/teams","hooks_url":"https://api.github.com/repos/DFurnes/northstar/hooks","issue_events_url":"https://api.github.com/repos/DFurnes/northstar/issues/events{/number}","events_url":"https://api.github.com/repos/DFurnes/northstar/events","assignees_url":"https://api.github.com/repos/DFurnes/northstar/assignees{/user}","branches_url":"https://api.github.com/repos/DFurnes/northstar/branches{/branch}","tags_url":"https://api.github.com/repos/DFurnes/northstar/tags","blobs_url":"https://api.github.com/repos/DFurnes/northstar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DFurnes/northstar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DFurnes/northstar/git/refs{/sha}","trees_url":"https://api.github.com/repos/DFurnes/northstar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DFurnes/northstar/statuses/{sha}","languages_url":"https://api.github.com/repos/DFurnes/northstar/languages","stargazers_url":"https://api.github.com/repos/DFurnes/northstar/stargazers","contributors_url":"https://api.github.com/repos/DFurnes/northstar/contributors","subscribers_url":"https://api.github.com/repos/DFurnes/northstar/subscribers","subscription_url":"https://api.github.com/repos/DFurnes/northstar/subscription","commits_url":"https://api.github.com/repos/DFurnes/northstar/commits{/sha}","git_commits_url":"https://api.github.com/repos/DFurnes/northstar/git/commits{/sha}","comments_url":"https://api.github.com/repos/DFurnes/northstar/comments{/number}","issue_comment_url":"https://api.github.com/repos/DFurnes/northstar/issues/comments{/number}","contents_url":"https://api.github.com/repos/DFurnes/northstar/contents/{+path}","compare_url":"https://api.github.com/repos/DFurnes/northstar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DFurnes/northstar/merges","archive_url":"https://api.github.com/repos/DFurnes/northstar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DFurnes/northstar/downloads","issues_url":"https://api.github.com/repos/DFurnes/northstar/issues{/number}","pulls_url":"https://api.github.com/repos/DFurnes/northstar/pulls{/number}","milestones_url":"https://api.github.com/repos/DFurnes/northstar/milestones{/number}","notifications_url":"https://api.github.com/repos/DFurnes/northstar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DFurnes/northstar/labels{/name}","releases_url":"https://api.github.com/repos/DFurnes/northstar/releases{/id}","deployments_url":"https://api.github.com/repos/DFurnes/northstar/deployments","created_at":"2015-04-27T18:18:39Z","updated_at":"2016-01-11T20:03:02Z","pushed_at":"2016-03-04T19:58:08Z","git_url":"git://github.com/DFurnes/northstar.git","ssh_url":"git@github.com:DFurnes/northstar.git","clone_url":"https://github.com/DFurnes/northstar.git","svn_url":"https://github.com/DFurnes/northstar","homepage":null,"size":790,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"dev"}},"base":{"label":"DoSomething:dev","ref":"dev","sha":"19a38361b2e3b38782ab77d81388ad9e81a96d4e","user":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"repo":{"id":26884886,"name":"northstar","full_name":"DoSomething/northstar","owner":{"login":"DoSomething","id":731685,"avatar_url":"https://avatars.githubusercontent.com/u/731685?v=3","gravatar_id":"","url":"https://api.github.com/users/DoSomething","html_url":"https://github.com/DoSomething","followers_url":"https://api.github.com/users/DoSomething/followers","following_url":"https://api.github.com/users/DoSomething/following{/other_user}","gists_url":"https://api.github.com/users/DoSomething/gists{/gist_id}","starred_url":"https://api.github.com/users/DoSomething/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoSomething/subscriptions","organizations_url":"https://api.github.com/users/DoSomething/orgs","repos_url":"https://api.github.com/users/DoSomething/repos","events_url":"https://api.github.com/users/DoSomething/events{/privacy}","received_events_url":"https://api.github.com/users/DoSomething/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DoSomething/northstar","description":"The DoSomething.org user & activity API.","fork":false,"url":"https://api.github.com/repos/DoSomething/northstar","forks_url":"https://api.github.com/repos/DoSomething/northstar/forks","keys_url":"https://api.github.com/repos/DoSomething/northstar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DoSomething/northstar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DoSomething/northstar/teams","hooks_url":"https://api.github.com/repos/DoSomething/northstar/hooks","issue_events_url":"https://api.github.com/repos/DoSomething/northstar/issues/events{/number}","events_url":"https://api.github.com/repos/DoSomething/northstar/events","assignees_url":"https://api.github.com/repos/DoSomething/northstar/assignees{/user}","branches_url":"https://api.github.com/repos/DoSomething/northstar/branches{/branch}","tags_url":"https://api.github.com/repos/DoSomething/northstar/tags","blobs_url":"https://api.github.com/repos/DoSomething/northstar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DoSomething/northstar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DoSomething/northstar/git/refs{/sha}","trees_url":"https://api.github.com/repos/DoSomething/northstar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DoSomething/northstar/statuses/{sha}","languages_url":"https://api.github.com/repos/DoSomething/northstar/languages","stargazers_url":"https://api.github.com/repos/DoSomething/northstar/stargazers","contributors_url":"https://api.github.com/repos/DoSomething/northstar/contributors","subscribers_url":"https://api.github.com/repos/DoSomething/northstar/subscribers","subscription_url":"https://api.github.com/repos/DoSomething/northstar/subscription","commits_url":"https://api.github.com/repos/DoSomething/northstar/commits{/sha}","git_commits_url":"https://api.github.com/repos/DoSomething/northstar/git/commits{/sha}","comments_url":"https://api.github.com/repos/DoSomething/northstar/comments{/number}","issue_comment_url":"https://api.github.com/repos/DoSomething/northstar/issues/comments{/number}","contents_url":"https://api.github.com/repos/DoSomething/northstar/contents/{+path}","compare_url":"https://api.github.com/repos/DoSomething/northstar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DoSomething/northstar/merges","archive_url":"https://api.github.com/repos/DoSomething/northstar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DoSomething/northstar/downloads","issues_url":"https://api.github.com/repos/DoSomething/northstar/issues{/number}","pulls_url":"https://api.github.com/repos/DoSomething/northstar/pulls{/number}","milestones_url":"https://api.github.com/repos/DoSomething/northstar/milestones{/number}","notifications_url":"https://api.github.com/repos/DoSomething/northstar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DoSomething/northstar/labels{/name}","releases_url":"https://api.github.com/repos/DoSomething/northstar/releases{/id}","deployments_url":"https://api.github.com/repos/DoSomething/northstar/deployments","created_at":"2014-11-19T22:33:42Z","updated_at":"2016-02-18T19:44:43Z","pushed_at":"2016-03-04T19:58:09Z","git_url":"git://github.com/DoSomething/northstar.git","ssh_url":"git@github.com:DoSomething/northstar.git","clone_url":"https://github.com/DoSomething/northstar.git","svn_url":"https://github.com/DoSomething/northstar","homepage":"","size":846,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":8,"forks":8,"open_issues":8,"watchers":2,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/DoSomething/northstar/pulls/299"},"html":{"href":"https://github.com/DoSomething/northstar/pull/299"},"issue":{"href":"https://api.github.com/repos/DoSomething/northstar/issues/299"},"comments":{"href":"https://api.github.com/repos/DoSomething/northstar/issues/299/comments"},"review_comments":{"href":"https://api.github.com/repos/DoSomething/northstar/pulls/299/comments"},"review_comment":{"href":"https://api.github.com/repos/DoSomething/northstar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DoSomething/northstar/pulls/299/commits"},"statuses":{"href":"https://api.github.com/repos/DoSomething/northstar/statuses/4026031cf1d515a00dc750eac9b0ef4d9fa341af"}}}}