{"action":"created","comment":{"url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/comments/224296049","pull_request_review_id":163627333,"id":224296049,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDI5NjA0OQ==","diff_hunk":"@@ -0,0 +1,213 @@\n+package ocgorm\n+\n+import (\n+\t\"context\"\n+\t\"fmt\"\n+\n+\t\"github.com/jinzhu/gorm\"\n+\t\"go.opencensus.io/stats\"\n+\t\"go.opencensus.io/tag\"\n+\t\"go.opencensus.io/trace\"\n+)\n+\n+// Gorm scope keys\n+var (\n+\tcontextScopeKey = \"_opencensusContext\"\n+\tspanScopeKey    = \"_opencensusSpan\"\n+)\n+\n+// Option allows for managing ocgorm configuration using functional options.\n+type Option interface {\n+\tapply(c *callbacks)\n+}\n+\n+// OptionFunc converts a regular function to an Option if it's definition is compatible.\n+type OptionFunc func(c *callbacks)\n+\n+func (fn OptionFunc) apply(c *callbacks) {\n+\tfn(c)\n+}\n+\n+// AllowRoot allows creating root spans in the absence of existing spans.\n+type AllowRoot bool\n+\n+func (a AllowRoot) apply(c *callbacks) {\n+\tc.allowRoot = bool(a)\n+}\n+\n+// Query allows recording the sql queries in spans.\n+type Query bool\n+\n+func (q Query) apply(c *callbacks) {\n+\tc.query = bool(q)\n+}\n+\n+// StartOptions configures the initial options applied to a span.\n+func StartOptions(o trace.StartOptions) Option {\n+\treturn OptionFunc(func(c *callbacks) {\n+\t\tc.startOptions = o\n+\t})\n+}\n+\n+// DefaultAttributes sets attributes to each span.\n+type DefaultAttributes []trace.Attribute\n+\n+func (d DefaultAttributes) apply(c *callbacks) {\n+\tc.defaultAttributes = []trace.Attribute(d)\n+}\n+\n+type callbacks struct {\n+\t// Allow ocgorm to create root spans absence of existing spans or even context.\n+\t// Default is to not trace ocgorm calls if no existing parent span is found\n+\t// in context.\n+\tallowRoot bool\n+\n+\t// Allow recording of sql queries in spans.\n+\t// Only allow this if it is safe to have queries recorded with respect to\n+\t// security.\n+\tquery bool\n+\n+\t// startOptions are applied to the span started around each request.\n+\t//\n+\t// StartOptions.SpanKind will always be set to trace.SpanKindClient.\n+\tstartOptions trace.StartOptions\n+\n+\t// DefaultAttributes will be set to each span as default.\n+\tdefaultAttributes []trace.Attribute\n+}\n+\n+// RegisterCallbacks registers the necessary callbacks in Gorm's hook system for instrumentation.\n+func RegisterCallbacks(db *gorm.DB, opts ...Option) {\n+\tc := &callbacks{\n+\t\tdefaultAttributes: []trace.Attribute{},\n+\t}\n+\n+\tfor _, opt := range opts {\n+\t\topt.apply(c)\n+\t}\n+\n+\tdb.Callback().Create().Before(\"gorm:create\").Register(\"instrumentation:before_create\", c.beforeCreate)\n+\tdb.Callback().Create().After(\"gorm:create\").Register(\"instrumentation:after_create\", c.afterCreate)\n+\tdb.Callback().Query().Before(\"gorm:query\").Register(\"instrumentation:before_query\", c.beforeQuery)\n+\tdb.Callback().Query().After(\"gorm:query\").Register(\"instrumentation:after_query\", c.afterQuery)\n+\tdb.Callback().Update().Before(\"gorm:update\").Register(\"instrumentation:before_update\", c.beforeUpdate)\n+\tdb.Callback().Update().After(\"gorm:update\").Register(\"instrumentation:after_update\", c.afterUpdate)\n+\tdb.Callback().Delete().Before(\"gorm:delete\").Register(\"instrumentation:before_delete\", c.beforeDelete)\n+\tdb.Callback().Delete().After(\"gorm:delete\").Register(\"instrumentation:after_delete\", c.afterDelete)\n+}\n+\n+func (c *callbacks) before(scope *gorm.Scope, operation string) {\n+\trctx, ok := scope.Get(contextScopeKey)","path":"pkg/ocgorm/callbacks.go","position":100,"original_position":100,"commit_id":"4f610b9fb25c30549e1a3deb25eb0596f13aeb07","original_commit_id":"4f610b9fb25c30549e1a3deb25eb0596f13aeb07","user":{"login":"golangcibot","id":42910462,"node_id":"MDQ6VXNlcjQyOTEwNDYy","avatar_url":"https://avatars1.githubusercontent.com/u/42910462?v=4","gravatar_id":"","url":"https://api.github.com/users/golangcibot","html_url":"https://github.com/golangcibot","followers_url":"https://api.github.com/users/golangcibot/followers","following_url":"https://api.github.com/users/golangcibot/following{/other_user}","gists_url":"https://api.github.com/users/golangcibot/gists{/gist_id}","starred_url":"https://api.github.com/users/golangcibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golangcibot/subscriptions","organizations_url":"https://api.github.com/users/golangcibot/orgs","repos_url":"https://api.github.com/users/golangcibot/repos","events_url":"https://api.github.com/users/golangcibot/events{/privacy}","received_events_url":"https://api.github.com/users/golangcibot/received_events","type":"User","site_admin":false},"body":"ineffectual assignment to `ok`","created_at":"2018-10-11T02:15:35Z","updated_at":"2018-10-11T02:15:35Z","html_url":"https://github.com/sagikazarmark/go-gin-gorm-opencensus/pull/4#discussion_r224296049","pull_request_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/comments/224296049"},"html":{"href":"https://github.com/sagikazarmark/go-gin-gorm-opencensus/pull/4#discussion_r224296049"},"pull_request":{"href":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/4","id":221985783,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxOTg1Nzgz","html_url":"https://github.com/sagikazarmark/go-gin-gorm-opencensus/pull/4","diff_url":"https://github.com/sagikazarmark/go-gin-gorm-opencensus/pull/4.diff","patch_url":"https://github.com/sagikazarmark/go-gin-gorm-opencensus/pull/4.patch","issue_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/issues/4","number":4,"state":"open","locked":false,"title":"Add OpenCensus instrumentation for Gorm","user":{"login":"sagikazarmark","id":1226384,"node_id":"MDQ6VXNlcjEyMjYzODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1226384?v=4","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-11T02:15:04Z","updated_at":"2018-10-11T02:15:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"00a7b39afa4c83b49a466c9d3ad61e2dac7cf312","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/4/commits","review_comments_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/4/comments","review_comment_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/issues/4/comments","statuses_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/statuses/4f610b9fb25c30549e1a3deb25eb0596f13aeb07","head":{"label":"sagikazarmark:gorm-instrumentation","ref":"gorm-instrumentation","sha":"4f610b9fb25c30549e1a3deb25eb0596f13aeb07","user":{"login":"sagikazarmark","id":1226384,"node_id":"MDQ6VXNlcjEyMjYzODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1226384?v=4","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"repo":{"id":152398689,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzOTg2ODk=","name":"go-gin-gorm-opencensus","full_name":"sagikazarmark/go-gin-gorm-opencensus","private":false,"owner":{"login":"sagikazarmark","id":1226384,"node_id":"MDQ6VXNlcjEyMjYzODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1226384?v=4","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sagikazarmark/go-gin-gorm-opencensus","description":"OpenCensus instrumentation for Gin and Gorm","fork":false,"url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus","forks_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/forks","keys_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/teams","hooks_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/hooks","issue_events_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/issues/events{/number}","events_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/events","assignees_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/assignees{/user}","branches_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/branches{/branch}","tags_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/tags","blobs_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/statuses/{sha}","languages_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/languages","stargazers_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/stargazers","contributors_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/contributors","subscribers_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/subscribers","subscription_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/subscription","commits_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/contents/{+path}","compare_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/merges","archive_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/downloads","issues_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/issues{/number}","pulls_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls{/number}","milestones_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/milestones{/number}","notifications_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/labels{/name}","releases_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/releases{/id}","deployments_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/deployments","created_at":"2018-10-10T09:36:10Z","updated_at":"2018-10-11T00:09:10Z","pushed_at":"2018-10-11T02:15:05Z","git_url":"git://github.com/sagikazarmark/go-gin-gorm-opencensus.git","ssh_url":"git@github.com:sagikazarmark/go-gin-gorm-opencensus.git","clone_url":"https://github.com/sagikazarmark/go-gin-gorm-opencensus.git","svn_url":"https://github.com/sagikazarmark/go-gin-gorm-opencensus","homepage":"","size":41,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sagikazarmark:master","ref":"master","sha":"436cd0d1845e61fb8c026d427fce734b4f95f755","user":{"login":"sagikazarmark","id":1226384,"node_id":"MDQ6VXNlcjEyMjYzODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1226384?v=4","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"repo":{"id":152398689,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzOTg2ODk=","name":"go-gin-gorm-opencensus","full_name":"sagikazarmark/go-gin-gorm-opencensus","private":false,"owner":{"login":"sagikazarmark","id":1226384,"node_id":"MDQ6VXNlcjEyMjYzODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1226384?v=4","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sagikazarmark/go-gin-gorm-opencensus","description":"OpenCensus instrumentation for Gin and Gorm","fork":false,"url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus","forks_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/forks","keys_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/teams","hooks_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/hooks","issue_events_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/issues/events{/number}","events_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/events","assignees_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/assignees{/user}","branches_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/branches{/branch}","tags_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/tags","blobs_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/statuses/{sha}","languages_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/languages","stargazers_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/stargazers","contributors_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/contributors","subscribers_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/subscribers","subscription_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/subscription","commits_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/contents/{+path}","compare_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/merges","archive_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/downloads","issues_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/issues{/number}","pulls_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls{/number}","milestones_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/milestones{/number}","notifications_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/labels{/name}","releases_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/releases{/id}","deployments_url":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/deployments","created_at":"2018-10-10T09:36:10Z","updated_at":"2018-10-11T00:09:10Z","pushed_at":"2018-10-11T02:15:05Z","git_url":"git://github.com/sagikazarmark/go-gin-gorm-opencensus.git","ssh_url":"git@github.com:sagikazarmark/go-gin-gorm-opencensus.git","clone_url":"https://github.com/sagikazarmark/go-gin-gorm-opencensus.git","svn_url":"https://github.com/sagikazarmark/go-gin-gorm-opencensus","homepage":"","size":41,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/4"},"html":{"href":"https://github.com/sagikazarmark/go-gin-gorm-opencensus/pull/4"},"issue":{"href":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/issues/4"},"comments":{"href":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/sagikazarmark/go-gin-gorm-opencensus/statuses/4f610b9fb25c30549e1a3deb25eb0596f13aeb07"}},"author_association":"OWNER"}}
{"actor":{"display_login":"golangcibot"}}