{"action":"created","comment":{"url":"https://api.github.com/repos/graphql-java/graphql-java/pulls/comments/92915630","pull_request_review_id":13441115,"id":92915630,"diff_hunk":"@@ -0,0 +1,77 @@\n+package graphql.execution.instrumentation;","path":"src/main/java/graphql/execution/instrumentation/Instrumentation.java","position":1,"original_position":1,"commit_id":"b79a9146f76249895277696325f58a050da40c48","original_commit_id":"b79a9146f76249895277696325f58a050da40c48","user":{"login":"bbakerman","id":1661769,"avatar_url":"https://avatars.githubusercontent.com/u/1661769?v=3","gravatar_id":"","url":"https://api.github.com/users/bbakerman","html_url":"https://github.com/bbakerman","followers_url":"https://api.github.com/users/bbakerman/followers","following_url":"https://api.github.com/users/bbakerman/following{/other_user}","gists_url":"https://api.github.com/users/bbakerman/gists{/gist_id}","starred_url":"https://api.github.com/users/bbakerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbakerman/subscriptions","organizations_url":"https://api.github.com/users/bbakerman/orgs","repos_url":"https://api.github.com/users/bbakerman/repos","events_url":"https://api.github.com/users/bbakerman/events{/privacy}","received_events_url":"https://api.github.com/users/bbakerman/received_events","type":"User","site_admin":false},"body":"InstrumentationContext<T> allows for callback that are site specific and not casting of Object is needed.  eg  the parse call back gets the parsed document","created_at":"2016-12-17T05:03:39Z","updated_at":"2016-12-17T05:03:39Z","html_url":"https://github.com/graphql-java/graphql-java/pull/270#discussion_r92915630","pull_request_url":"https://api.github.com/repos/graphql-java/graphql-java/pulls/270","_links":{"self":{"href":"https://api.github.com/repos/graphql-java/graphql-java/pulls/comments/92915630"},"html":{"href":"https://github.com/graphql-java/graphql-java/pull/270#discussion_r92915630"},"pull_request":{"href":"https://api.github.com/repos/graphql-java/graphql-java/pulls/270"}}},"pull_request":{"url":"https://api.github.com/repos/graphql-java/graphql-java/pulls/270","id":98433367,"html_url":"https://github.com/graphql-java/graphql-java/pull/270","diff_url":"https://github.com/graphql-java/graphql-java/pull/270.diff","patch_url":"https://github.com/graphql-java/graphql-java/pull/270.patch","issue_url":"https://api.github.com/repos/graphql-java/graphql-java/issues/270","number":270,"state":"open","locked":false,"title":"#269 - this adds instrumentation to the execution of the graphql query","user":{"login":"bbakerman","id":1661769,"avatar_url":"https://avatars.githubusercontent.com/u/1661769?v=3","gravatar_id":"","url":"https://api.github.com/users/bbakerman","html_url":"https://github.com/bbakerman","followers_url":"https://api.github.com/users/bbakerman/followers","following_url":"https://api.github.com/users/bbakerman/following{/other_user}","gists_url":"https://api.github.com/users/bbakerman/gists{/gist_id}","starred_url":"https://api.github.com/users/bbakerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbakerman/subscriptions","organizations_url":"https://api.github.com/users/bbakerman/orgs","repos_url":"https://api.github.com/users/bbakerman/repos","events_url":"https://api.github.com/users/bbakerman/events{/privacy}","received_events_url":"https://api.github.com/users/bbakerman/received_events","type":"User","site_admin":false},"body":"as per #269 the desire here is to be able to measure how long a graphql query is taken\r\n\r\nThis approach of \"return call back \" allows for a fairly stateless system if we have multi threaded execution.\r\n\r\nSo you can \"create a timer and then have the end time - start time  be calculated via this created object.","created_at":"2016-12-17T04:53:19Z","updated_at":"2016-12-17T05:03:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e99fe1777495a6a538aae8b8fd81a5d48d273cd0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/graphql-java/graphql-java/pulls/270/commits","review_comments_url":"https://api.github.com/repos/graphql-java/graphql-java/pulls/270/comments","review_comment_url":"https://api.github.com/repos/graphql-java/graphql-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graphql-java/graphql-java/issues/270/comments","statuses_url":"https://api.github.com/repos/graphql-java/graphql-java/statuses/b79a9146f76249895277696325f58a050da40c48","head":{"label":"bbakerman:269-add-instrumentation-to-execution","ref":"269-add-instrumentation-to-execution","sha":"b79a9146f76249895277696325f58a050da40c48","user":{"login":"bbakerman","id":1661769,"avatar_url":"https://avatars.githubusercontent.com/u/1661769?v=3","gravatar_id":"","url":"https://api.github.com/users/bbakerman","html_url":"https://github.com/bbakerman","followers_url":"https://api.github.com/users/bbakerman/followers","following_url":"https://api.github.com/users/bbakerman/following{/other_user}","gists_url":"https://api.github.com/users/bbakerman/gists{/gist_id}","starred_url":"https://api.github.com/users/bbakerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbakerman/subscriptions","organizations_url":"https://api.github.com/users/bbakerman/orgs","repos_url":"https://api.github.com/users/bbakerman/repos","events_url":"https://api.github.com/users/bbakerman/events{/privacy}","received_events_url":"https://api.github.com/users/bbakerman/received_events","type":"User","site_admin":false},"repo":{"id":76249849,"name":"graphql-java","full_name":"bbakerman/graphql-java","owner":{"login":"bbakerman","id":1661769,"avatar_url":"https://avatars.githubusercontent.com/u/1661769?v=3","gravatar_id":"","url":"https://api.github.com/users/bbakerman","html_url":"https://github.com/bbakerman","followers_url":"https://api.github.com/users/bbakerman/followers","following_url":"https://api.github.com/users/bbakerman/following{/other_user}","gists_url":"https://api.github.com/users/bbakerman/gists{/gist_id}","starred_url":"https://api.github.com/users/bbakerman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbakerman/subscriptions","organizations_url":"https://api.github.com/users/bbakerman/orgs","repos_url":"https://api.github.com/users/bbakerman/repos","events_url":"https://api.github.com/users/bbakerman/events{/privacy}","received_events_url":"https://api.github.com/users/bbakerman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bbakerman/graphql-java","description":"GraphQL Java implementation","fork":true,"url":"https://api.github.com/repos/bbakerman/graphql-java","forks_url":"https://api.github.com/repos/bbakerman/graphql-java/forks","keys_url":"https://api.github.com/repos/bbakerman/graphql-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbakerman/graphql-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbakerman/graphql-java/teams","hooks_url":"https://api.github.com/repos/bbakerman/graphql-java/hooks","issue_events_url":"https://api.github.com/repos/bbakerman/graphql-java/issues/events{/number}","events_url":"https://api.github.com/repos/bbakerman/graphql-java/events","assignees_url":"https://api.github.com/repos/bbakerman/graphql-java/assignees{/user}","branches_url":"https://api.github.com/repos/bbakerman/graphql-java/branches{/branch}","tags_url":"https://api.github.com/repos/bbakerman/graphql-java/tags","blobs_url":"https://api.github.com/repos/bbakerman/graphql-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbakerman/graphql-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbakerman/graphql-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbakerman/graphql-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbakerman/graphql-java/statuses/{sha}","languages_url":"https://api.github.com/repos/bbakerman/graphql-java/languages","stargazers_url":"https://api.github.com/repos/bbakerman/graphql-java/stargazers","contributors_url":"https://api.github.com/repos/bbakerman/graphql-java/contributors","subscribers_url":"https://api.github.com/repos/bbakerman/graphql-java/subscribers","subscription_url":"https://api.github.com/repos/bbakerman/graphql-java/subscription","commits_url":"https://api.github.com/repos/bbakerman/graphql-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbakerman/graphql-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbakerman/graphql-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbakerman/graphql-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbakerman/graphql-java/contents/{+path}","compare_url":"https://api.github.com/repos/bbakerman/graphql-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbakerman/graphql-java/merges","archive_url":"https://api.github.com/repos/bbakerman/graphql-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbakerman/graphql-java/downloads","issues_url":"https://api.github.com/repos/bbakerman/graphql-java/issues{/number}","pulls_url":"https://api.github.com/repos/bbakerman/graphql-java/pulls{/number}","milestones_url":"https://api.github.com/repos/bbakerman/graphql-java/milestones{/number}","notifications_url":"https://api.github.com/repos/bbakerman/graphql-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbakerman/graphql-java/labels{/name}","releases_url":"https://api.github.com/repos/bbakerman/graphql-java/releases{/id}","deployments_url":"https://api.github.com/repos/bbakerman/graphql-java/deployments","created_at":"2016-12-12T11:20:32Z","updated_at":"2016-12-12T11:20:34Z","pushed_at":"2016-12-17T04:25:11Z","git_url":"git://github.com/bbakerman/graphql-java.git","ssh_url":"git@github.com:bbakerman/graphql-java.git","clone_url":"https://github.com/bbakerman/graphql-java.git","svn_url":"https://github.com/bbakerman/graphql-java","homepage":"","size":1154,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"graphql-java:master","ref":"master","sha":"b549805b278a4768b165726b9b73137ccbd72f8c","user":{"login":"graphql-java","id":14289921,"avatar_url":"https://avatars.githubusercontent.com/u/14289921?v=3","gravatar_id":"","url":"https://api.github.com/users/graphql-java","html_url":"https://github.com/graphql-java","followers_url":"https://api.github.com/users/graphql-java/followers","following_url":"https://api.github.com/users/graphql-java/following{/other_user}","gists_url":"https://api.github.com/users/graphql-java/gists{/gist_id}","starred_url":"https://api.github.com/users/graphql-java/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphql-java/subscriptions","organizations_url":"https://api.github.com/users/graphql-java/orgs","repos_url":"https://api.github.com/users/graphql-java/repos","events_url":"https://api.github.com/users/graphql-java/events{/privacy}","received_events_url":"https://api.github.com/users/graphql-java/received_events","type":"Organization","site_admin":false},"repo":{"id":38602457,"name":"graphql-java","full_name":"graphql-java/graphql-java","owner":{"login":"graphql-java","id":14289921,"avatar_url":"https://avatars.githubusercontent.com/u/14289921?v=3","gravatar_id":"","url":"https://api.github.com/users/graphql-java","html_url":"https://github.com/graphql-java","followers_url":"https://api.github.com/users/graphql-java/followers","following_url":"https://api.github.com/users/graphql-java/following{/other_user}","gists_url":"https://api.github.com/users/graphql-java/gists{/gist_id}","starred_url":"https://api.github.com/users/graphql-java/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphql-java/subscriptions","organizations_url":"https://api.github.com/users/graphql-java/orgs","repos_url":"https://api.github.com/users/graphql-java/repos","events_url":"https://api.github.com/users/graphql-java/events{/privacy}","received_events_url":"https://api.github.com/users/graphql-java/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/graphql-java/graphql-java","description":"GraphQL Java implementation","fork":false,"url":"https://api.github.com/repos/graphql-java/graphql-java","forks_url":"https://api.github.com/repos/graphql-java/graphql-java/forks","keys_url":"https://api.github.com/repos/graphql-java/graphql-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graphql-java/graphql-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graphql-java/graphql-java/teams","hooks_url":"https://api.github.com/repos/graphql-java/graphql-java/hooks","issue_events_url":"https://api.github.com/repos/graphql-java/graphql-java/issues/events{/number}","events_url":"https://api.github.com/repos/graphql-java/graphql-java/events","assignees_url":"https://api.github.com/repos/graphql-java/graphql-java/assignees{/user}","branches_url":"https://api.github.com/repos/graphql-java/graphql-java/branches{/branch}","tags_url":"https://api.github.com/repos/graphql-java/graphql-java/tags","blobs_url":"https://api.github.com/repos/graphql-java/graphql-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graphql-java/graphql-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graphql-java/graphql-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/graphql-java/graphql-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graphql-java/graphql-java/statuses/{sha}","languages_url":"https://api.github.com/repos/graphql-java/graphql-java/languages","stargazers_url":"https://api.github.com/repos/graphql-java/graphql-java/stargazers","contributors_url":"https://api.github.com/repos/graphql-java/graphql-java/contributors","subscribers_url":"https://api.github.com/repos/graphql-java/graphql-java/subscribers","subscription_url":"https://api.github.com/repos/graphql-java/graphql-java/subscription","commits_url":"https://api.github.com/repos/graphql-java/graphql-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/graphql-java/graphql-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/graphql-java/graphql-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/graphql-java/graphql-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/graphql-java/graphql-java/contents/{+path}","compare_url":"https://api.github.com/repos/graphql-java/graphql-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graphql-java/graphql-java/merges","archive_url":"https://api.github.com/repos/graphql-java/graphql-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graphql-java/graphql-java/downloads","issues_url":"https://api.github.com/repos/graphql-java/graphql-java/issues{/number}","pulls_url":"https://api.github.com/repos/graphql-java/graphql-java/pulls{/number}","milestones_url":"https://api.github.com/repos/graphql-java/graphql-java/milestones{/number}","notifications_url":"https://api.github.com/repos/graphql-java/graphql-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graphql-java/graphql-java/labels{/name}","releases_url":"https://api.github.com/repos/graphql-java/graphql-java/releases{/id}","deployments_url":"https://api.github.com/repos/graphql-java/graphql-java/deployments","created_at":"2015-07-06T06:52:20Z","updated_at":"2016-12-17T03:53:56Z","pushed_at":"2016-12-17T04:53:20Z","git_url":"git://github.com/graphql-java/graphql-java.git","ssh_url":"git@github.com:graphql-java/graphql-java.git","clone_url":"https://github.com/graphql-java/graphql-java.git","svn_url":"https://github.com/graphql-java/graphql-java","homepage":"","size":1615,"stargazers_count":765,"watchers_count":765,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":152,"mirror_url":null,"open_issues_count":83,"forks":152,"open_issues":83,"watchers":765,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graphql-java/graphql-java/pulls/270"},"html":{"href":"https://github.com/graphql-java/graphql-java/pull/270"},"issue":{"href":"https://api.github.com/repos/graphql-java/graphql-java/issues/270"},"comments":{"href":"https://api.github.com/repos/graphql-java/graphql-java/issues/270/comments"},"review_comments":{"href":"https://api.github.com/repos/graphql-java/graphql-java/pulls/270/comments"},"review_comment":{"href":"https://api.github.com/repos/graphql-java/graphql-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graphql-java/graphql-java/pulls/270/commits"},"statuses":{"href":"https://api.github.com/repos/graphql-java/graphql-java/statuses/b79a9146f76249895277696325f58a050da40c48"}}}}
{"actor":{"display_login":"bbakerman"}}