{"action":"created","comment":{"url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/comments/176349049","pull_request_review_id":106033595,"id":176349049,"diff_hunk":"@@ -86,6 +85,18 @@ func main() {\n \t// Initialized developer mode flag and log level for the logger\n \tlog.InitializeLogger(config.IsLogJSON(), config.GetLogLevel())\n \n+\t// Initialize sentry client\n+\thaltSentry, err := sentry.InitializeSentryClient(\n+\t\tsentry.WithRelease(controller.Commit),\n+\t\tsentry.WithEnvironment(config.GetEnvironment()),\n+\t)\n+\tif err != nil {\n+\t\tlog.Panic(nil, map[string]interface{}{\n+\t\t\t\"err\": err,\n+\t\t}, \"failed to setup the sentry client\")\n+\t}\n+\tdefer haltSentry()","path":"main.go","position":44,"original_position":44,"commit_id":"885a94b6e51f9fe987bb6def8dd9680491120e34","original_commit_id":"885a94b6e51f9fe987bb6def8dd9680491120e34","user":{"login":"xcoulon","id":178502,"avatar_url":"https://avatars2.githubusercontent.com/u/178502?v=4","gravatar_id":"","url":"https://api.github.com/users/xcoulon","html_url":"https://github.com/xcoulon","followers_url":"https://api.github.com/users/xcoulon/followers","following_url":"https://api.github.com/users/xcoulon/following{/other_user}","gists_url":"https://api.github.com/users/xcoulon/gists{/gist_id}","starred_url":"https://api.github.com/users/xcoulon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xcoulon/subscriptions","organizations_url":"https://api.github.com/users/xcoulon/orgs","repos_url":"https://api.github.com/users/xcoulon/repos","events_url":"https://api.github.com/users/xcoulon/events{/privacy}","received_events_url":"https://api.github.com/users/xcoulon/received_events","type":"User","site_admin":false},"body":"ok, got it. Thanks for the clarification. The naming was a bit confusing at first sight: I was expecting a kind of `sentry client` to be returned by the `InitializeSentryClient` function, rather than a function to close it, hence my confusion ;)","created_at":"2018-03-22T09:14:30Z","updated_at":"2018-03-22T09:14:30Z","html_url":"https://github.com/fabric8-services/fabric8-wit/pull/1909#discussion_r176349049","pull_request_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/1909","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/comments/176349049"},"html":{"href":"https://github.com/fabric8-services/fabric8-wit/pull/1909#discussion_r176349049"},"pull_request":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/1909"}},"in_reply_to_id":176331312},"pull_request":{"url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/1909","id":170147754,"html_url":"https://github.com/fabric8-services/fabric8-wit/pull/1909","diff_url":"https://github.com/fabric8-services/fabric8-wit/pull/1909.diff","patch_url":"https://github.com/fabric8-services/fabric8-wit/pull/1909.patch","issue_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/1909","number":1909,"state":"open","locked":false,"title":"Add basic support of Sentry","user":{"login":"surajssd","id":5815795,"avatar_url":"https://avatars0.githubusercontent.com/u/5815795?v=4","gravatar_id":"","url":"https://api.github.com/users/surajssd","html_url":"https://github.com/surajssd","followers_url":"https://api.github.com/users/surajssd/followers","following_url":"https://api.github.com/users/surajssd/following{/other_user}","gists_url":"https://api.github.com/users/surajssd/gists{/gist_id}","starred_url":"https://api.github.com/users/surajssd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surajssd/subscriptions","organizations_url":"https://api.github.com/users/surajssd/orgs","repos_url":"https://api.github.com/users/surajssd/repos","events_url":"https://api.github.com/users/surajssd/events{/privacy}","received_events_url":"https://api.github.com/users/surajssd/received_events","type":"User","site_admin":false},"body":"Now wit can send all the unknown errors to Sentry.","created_at":"2018-02-20T10:09:33Z","updated_at":"2018-03-22T09:14:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"690ee627e05c4dcb5923b1fdd6ea99e75603e8cc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/1909/commits","review_comments_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/1909/comments","review_comment_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/1909/comments","statuses_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/statuses/885a94b6e51f9fe987bb6def8dd9680491120e34","head":{"label":"surajssd:add-sentry-support","ref":"add-sentry-support","sha":"885a94b6e51f9fe987bb6def8dd9680491120e34","user":{"login":"surajssd","id":5815795,"avatar_url":"https://avatars0.githubusercontent.com/u/5815795?v=4","gravatar_id":"","url":"https://api.github.com/users/surajssd","html_url":"https://github.com/surajssd","followers_url":"https://api.github.com/users/surajssd/followers","following_url":"https://api.github.com/users/surajssd/following{/other_user}","gists_url":"https://api.github.com/users/surajssd/gists{/gist_id}","starred_url":"https://api.github.com/users/surajssd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surajssd/subscriptions","organizations_url":"https://api.github.com/users/surajssd/orgs","repos_url":"https://api.github.com/users/surajssd/repos","events_url":"https://api.github.com/users/surajssd/events{/privacy}","received_events_url":"https://api.github.com/users/surajssd/received_events","type":"User","site_admin":false},"repo":{"id":73249673,"name":"almighty-core","full_name":"surajssd/almighty-core","owner":{"login":"surajssd","id":5815795,"avatar_url":"https://avatars0.githubusercontent.com/u/5815795?v=4","gravatar_id":"","url":"https://api.github.com/users/surajssd","html_url":"https://github.com/surajssd","followers_url":"https://api.github.com/users/surajssd/followers","following_url":"https://api.github.com/users/surajssd/following{/other_user}","gists_url":"https://api.github.com/users/surajssd/gists{/gist_id}","starred_url":"https://api.github.com/users/surajssd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surajssd/subscriptions","organizations_url":"https://api.github.com/users/surajssd/orgs","repos_url":"https://api.github.com/users/surajssd/repos","events_url":"https://api.github.com/users/surajssd/events{/privacy}","received_events_url":"https://api.github.com/users/surajssd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/surajssd/almighty-core","description":null,"fork":true,"url":"https://api.github.com/repos/surajssd/almighty-core","forks_url":"https://api.github.com/repos/surajssd/almighty-core/forks","keys_url":"https://api.github.com/repos/surajssd/almighty-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/surajssd/almighty-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/surajssd/almighty-core/teams","hooks_url":"https://api.github.com/repos/surajssd/almighty-core/hooks","issue_events_url":"https://api.github.com/repos/surajssd/almighty-core/issues/events{/number}","events_url":"https://api.github.com/repos/surajssd/almighty-core/events","assignees_url":"https://api.github.com/repos/surajssd/almighty-core/assignees{/user}","branches_url":"https://api.github.com/repos/surajssd/almighty-core/branches{/branch}","tags_url":"https://api.github.com/repos/surajssd/almighty-core/tags","blobs_url":"https://api.github.com/repos/surajssd/almighty-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/surajssd/almighty-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/surajssd/almighty-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/surajssd/almighty-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/surajssd/almighty-core/statuses/{sha}","languages_url":"https://api.github.com/repos/surajssd/almighty-core/languages","stargazers_url":"https://api.github.com/repos/surajssd/almighty-core/stargazers","contributors_url":"https://api.github.com/repos/surajssd/almighty-core/contributors","subscribers_url":"https://api.github.com/repos/surajssd/almighty-core/subscribers","subscription_url":"https://api.github.com/repos/surajssd/almighty-core/subscription","commits_url":"https://api.github.com/repos/surajssd/almighty-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/surajssd/almighty-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/surajssd/almighty-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/surajssd/almighty-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/surajssd/almighty-core/contents/{+path}","compare_url":"https://api.github.com/repos/surajssd/almighty-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/surajssd/almighty-core/merges","archive_url":"https://api.github.com/repos/surajssd/almighty-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/surajssd/almighty-core/downloads","issues_url":"https://api.github.com/repos/surajssd/almighty-core/issues{/number}","pulls_url":"https://api.github.com/repos/surajssd/almighty-core/pulls{/number}","milestones_url":"https://api.github.com/repos/surajssd/almighty-core/milestones{/number}","notifications_url":"https://api.github.com/repos/surajssd/almighty-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/surajssd/almighty-core/labels{/name}","releases_url":"https://api.github.com/repos/surajssd/almighty-core/releases{/id}","deployments_url":"https://api.github.com/repos/surajssd/almighty-core/deployments","created_at":"2016-11-09T03:28:58Z","updated_at":"2016-11-09T03:28:59Z","pushed_at":"2018-03-22T05:39:03Z","git_url":"git://github.com/surajssd/almighty-core.git","ssh_url":"git@github.com:surajssd/almighty-core.git","clone_url":"https://github.com/surajssd/almighty-core.git","svn_url":"https://github.com/surajssd/almighty-core","homepage":"http://devdoc.almighty.io/","size":7645,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fabric8-services:master","ref":"master","sha":"9f667e5880b0941d054166a9d14fdff1887528a4","user":{"login":"fabric8-services","id":29751612,"avatar_url":"https://avatars1.githubusercontent.com/u/29751612?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric8-services","html_url":"https://github.com/fabric8-services","followers_url":"https://api.github.com/users/fabric8-services/followers","following_url":"https://api.github.com/users/fabric8-services/following{/other_user}","gists_url":"https://api.github.com/users/fabric8-services/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8-services/subscriptions","organizations_url":"https://api.github.com/users/fabric8-services/orgs","repos_url":"https://api.github.com/users/fabric8-services/repos","events_url":"https://api.github.com/users/fabric8-services/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8-services/received_events","type":"Organization","site_admin":false},"repo":{"id":54260706,"name":"fabric8-wit","full_name":"fabric8-services/fabric8-wit","owner":{"login":"fabric8-services","id":29751612,"avatar_url":"https://avatars1.githubusercontent.com/u/29751612?v=4","gravatar_id":"","url":"https://api.github.com/users/fabric8-services","html_url":"https://github.com/fabric8-services","followers_url":"https://api.github.com/users/fabric8-services/followers","following_url":"https://api.github.com/users/fabric8-services/following{/other_user}","gists_url":"https://api.github.com/users/fabric8-services/gists{/gist_id}","starred_url":"https://api.github.com/users/fabric8-services/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabric8-services/subscriptions","organizations_url":"https://api.github.com/users/fabric8-services/orgs","repos_url":"https://api.github.com/users/fabric8-services/repos","events_url":"https://api.github.com/users/fabric8-services/events{/privacy}","received_events_url":"https://api.github.com/users/fabric8-services/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fabric8-services/fabric8-wit","description":null,"fork":false,"url":"https://api.github.com/repos/fabric8-services/fabric8-wit","forks_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/forks","keys_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/teams","hooks_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/hooks","issue_events_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/events{/number}","events_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/events","assignees_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/assignees{/user}","branches_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/branches{/branch}","tags_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/tags","blobs_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/statuses/{sha}","languages_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/languages","stargazers_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/stargazers","contributors_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/contributors","subscribers_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/subscribers","subscription_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/subscription","commits_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/contents/{+path}","compare_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/merges","archive_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/downloads","issues_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues{/number}","pulls_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls{/number}","milestones_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/milestones{/number}","notifications_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/labels{/name}","releases_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/releases{/id}","deployments_url":"https://api.github.com/repos/fabric8-services/fabric8-wit/deployments","created_at":"2016-03-19T10:42:15Z","updated_at":"2018-03-20T22:27:39Z","pushed_at":"2018-03-22T08:04:24Z","git_url":"git://github.com/fabric8-services/fabric8-wit.git","ssh_url":"git@github.com:fabric8-services/fabric8-wit.git","clone_url":"https://github.com/fabric8-services/fabric8-wit.git","svn_url":"https://github.com/fabric8-services/fabric8-wit","homepage":"http://devdoc.almighty.io/","size":11856,"stargazers_count":35,"watchers_count":35,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":70,"mirror_url":null,"archived":false,"open_issues_count":160,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":70,"open_issues":160,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/1909"},"html":{"href":"https://github.com/fabric8-services/fabric8-wit/pull/1909"},"issue":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/1909"},"comments":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/issues/1909/comments"},"review_comments":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/1909/comments"},"review_comment":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/pulls/1909/commits"},"statuses":{"href":"https://api.github.com/repos/fabric8-services/fabric8-wit/statuses/885a94b6e51f9fe987bb6def8dd9680491120e34"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"xcoulon"}}