{"action":"created","comment":{"url":"https://api.github.com/repos/scitran/api/pulls/comments/37889280","id":37889280,"diff_hunk":"@@ -115,6 +115,10 @@ def dispatcher(router, request, response):\n         response.write(json.dumps(rv, default=bson.json_util.default))\n         response.headers['Content-Type'] = 'application/json; charset=utf-8'\n \n+try:\n+    from newrelic import agent","path":"api.py","position":5,"original_position":5,"commit_id":"556e6a899a0e1d873ad103dd5d94b3b3869e0eb9","original_commit_id":"556e6a899a0e1d873ad103dd5d94b3b3869e0eb9","user":{"login":"gsfr","id":712594,"avatar_url":"https://avatars.githubusercontent.com/u/712594?v=3","gravatar_id":"","url":"https://api.github.com/users/gsfr","html_url":"https://github.com/gsfr","followers_url":"https://api.github.com/users/gsfr/followers","following_url":"https://api.github.com/users/gsfr/following{/other_user}","gists_url":"https://api.github.com/users/gsfr/gists{/gist_id}","starred_url":"https://api.github.com/users/gsfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsfr/subscriptions","organizations_url":"https://api.github.com/users/gsfr/orgs","repos_url":"https://api.github.com/users/gsfr/repos","events_url":"https://api.github.com/users/gsfr/events{/privacy}","received_events_url":"https://api.github.com/users/gsfr/received_events","type":"User","site_admin":false},"body":"The ```import newrelic.agent``` style is generally preferable over the ```from newrelic import agent``` style for code readability and traceability reasons.","created_at":"2015-08-25T16:50:41Z","updated_at":"2015-08-25T16:50:41Z","html_url":"https://github.com/scitran/api/pull/35#discussion_r37889280","pull_request_url":"https://api.github.com/repos/scitran/api/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/scitran/api/pulls/comments/37889280"},"html":{"href":"https://github.com/scitran/api/pull/35#discussion_r37889280"},"pull_request":{"href":"https://api.github.com/repos/scitran/api/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/scitran/api/pulls/35","id":43308053,"html_url":"https://github.com/scitran/api/pull/35","diff_url":"https://github.com/scitran/api/pull/35.diff","patch_url":"https://github.com/scitran/api/pull/35.patch","issue_url":"https://api.github.com/repos/scitran/api/issues/35","number":35,"state":"open","locked":false,"title":"Optional NewRelic support","user":{"login":"josschne","id":2896022,"avatar_url":"https://avatars.githubusercontent.com/u/2896022?v=3","gravatar_id":"","url":"https://api.github.com/users/josschne","html_url":"https://github.com/josschne","followers_url":"https://api.github.com/users/josschne/followers","following_url":"https://api.github.com/users/josschne/following{/other_user}","gists_url":"https://api.github.com/users/josschne/gists{/gist_id}","starred_url":"https://api.github.com/users/josschne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josschne/subscriptions","organizations_url":"https://api.github.com/users/josschne/orgs","repos_url":"https://api.github.com/users/josschne/repos","events_url":"https://api.github.com/users/josschne/events{/privacy}","received_events_url":"https://api.github.com/users/josschne/received_events","type":"User","site_admin":false},"body":"New Relic is conditionally brought in based on whether it is found in import, and fails quietly if not found.\r\n","created_at":"2015-08-25T16:36:56Z","updated_at":"2015-08-25T16:50:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da9a65f6fc29948f80c4b235ff0519f2c9b85682","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scitran/api/pulls/35/commits","review_comments_url":"https://api.github.com/repos/scitran/api/pulls/35/comments","review_comment_url":"https://api.github.com/repos/scitran/api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scitran/api/issues/35/comments","statuses_url":"https://api.github.com/repos/scitran/api/statuses/556e6a899a0e1d873ad103dd5d94b3b3869e0eb9","head":{"label":"scitran:newrelic","ref":"newrelic","sha":"556e6a899a0e1d873ad103dd5d94b3b3869e0eb9","user":{"login":"scitran","id":7379762,"avatar_url":"https://avatars.githubusercontent.com/u/7379762?v=3","gravatar_id":"","url":"https://api.github.com/users/scitran","html_url":"https://github.com/scitran","followers_url":"https://api.github.com/users/scitran/followers","following_url":"https://api.github.com/users/scitran/following{/other_user}","gists_url":"https://api.github.com/users/scitran/gists{/gist_id}","starred_url":"https://api.github.com/users/scitran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scitran/subscriptions","organizations_url":"https://api.github.com/users/scitran/orgs","repos_url":"https://api.github.com/users/scitran/repos","events_url":"https://api.github.com/users/scitran/events{/privacy}","received_events_url":"https://api.github.com/users/scitran/received_events","type":"Organization","site_admin":false},"repo":{"id":16557832,"name":"api","full_name":"scitran/api","owner":{"login":"scitran","id":7379762,"avatar_url":"https://avatars.githubusercontent.com/u/7379762?v=3","gravatar_id":"","url":"https://api.github.com/users/scitran","html_url":"https://github.com/scitran","followers_url":"https://api.github.com/users/scitran/followers","following_url":"https://api.github.com/users/scitran/following{/other_user}","gists_url":"https://api.github.com/users/scitran/gists{/gist_id}","starred_url":"https://api.github.com/users/scitran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scitran/subscriptions","organizations_url":"https://api.github.com/users/scitran/orgs","repos_url":"https://api.github.com/users/scitran/repos","events_url":"https://api.github.com/users/scitran/events{/privacy}","received_events_url":"https://api.github.com/users/scitran/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scitran/api","description":"RESTful API","fork":false,"url":"https://api.github.com/repos/scitran/api","forks_url":"https://api.github.com/repos/scitran/api/forks","keys_url":"https://api.github.com/repos/scitran/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scitran/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scitran/api/teams","hooks_url":"https://api.github.com/repos/scitran/api/hooks","issue_events_url":"https://api.github.com/repos/scitran/api/issues/events{/number}","events_url":"https://api.github.com/repos/scitran/api/events","assignees_url":"https://api.github.com/repos/scitran/api/assignees{/user}","branches_url":"https://api.github.com/repos/scitran/api/branches{/branch}","tags_url":"https://api.github.com/repos/scitran/api/tags","blobs_url":"https://api.github.com/repos/scitran/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scitran/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scitran/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/scitran/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scitran/api/statuses/{sha}","languages_url":"https://api.github.com/repos/scitran/api/languages","stargazers_url":"https://api.github.com/repos/scitran/api/stargazers","contributors_url":"https://api.github.com/repos/scitran/api/contributors","subscribers_url":"https://api.github.com/repos/scitran/api/subscribers","subscription_url":"https://api.github.com/repos/scitran/api/subscription","commits_url":"https://api.github.com/repos/scitran/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/scitran/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/scitran/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/scitran/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/scitran/api/contents/{+path}","compare_url":"https://api.github.com/repos/scitran/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scitran/api/merges","archive_url":"https://api.github.com/repos/scitran/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scitran/api/downloads","issues_url":"https://api.github.com/repos/scitran/api/issues{/number}","pulls_url":"https://api.github.com/repos/scitran/api/pulls{/number}","milestones_url":"https://api.github.com/repos/scitran/api/milestones{/number}","notifications_url":"https://api.github.com/repos/scitran/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scitran/api/labels{/name}","releases_url":"https://api.github.com/repos/scitran/api/releases{/id}","created_at":"2014-02-05T20:48:50Z","updated_at":"2015-07-25T01:00:37Z","pushed_at":"2015-08-25T16:36:56Z","git_url":"git://github.com/scitran/api.git","ssh_url":"git@github.com:scitran/api.git","clone_url":"https://github.com/scitran/api.git","svn_url":"https://github.com/scitran/api","homepage":"","size":1640,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":3,"default_branch":"master"}},"base":{"label":"scitran:master","ref":"master","sha":"30edad1a0cb62b73eb68f301c58df286abc1fa11","user":{"login":"scitran","id":7379762,"avatar_url":"https://avatars.githubusercontent.com/u/7379762?v=3","gravatar_id":"","url":"https://api.github.com/users/scitran","html_url":"https://github.com/scitran","followers_url":"https://api.github.com/users/scitran/followers","following_url":"https://api.github.com/users/scitran/following{/other_user}","gists_url":"https://api.github.com/users/scitran/gists{/gist_id}","starred_url":"https://api.github.com/users/scitran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scitran/subscriptions","organizations_url":"https://api.github.com/users/scitran/orgs","repos_url":"https://api.github.com/users/scitran/repos","events_url":"https://api.github.com/users/scitran/events{/privacy}","received_events_url":"https://api.github.com/users/scitran/received_events","type":"Organization","site_admin":false},"repo":{"id":16557832,"name":"api","full_name":"scitran/api","owner":{"login":"scitran","id":7379762,"avatar_url":"https://avatars.githubusercontent.com/u/7379762?v=3","gravatar_id":"","url":"https://api.github.com/users/scitran","html_url":"https://github.com/scitran","followers_url":"https://api.github.com/users/scitran/followers","following_url":"https://api.github.com/users/scitran/following{/other_user}","gists_url":"https://api.github.com/users/scitran/gists{/gist_id}","starred_url":"https://api.github.com/users/scitran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scitran/subscriptions","organizations_url":"https://api.github.com/users/scitran/orgs","repos_url":"https://api.github.com/users/scitran/repos","events_url":"https://api.github.com/users/scitran/events{/privacy}","received_events_url":"https://api.github.com/users/scitran/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scitran/api","description":"RESTful API","fork":false,"url":"https://api.github.com/repos/scitran/api","forks_url":"https://api.github.com/repos/scitran/api/forks","keys_url":"https://api.github.com/repos/scitran/api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scitran/api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scitran/api/teams","hooks_url":"https://api.github.com/repos/scitran/api/hooks","issue_events_url":"https://api.github.com/repos/scitran/api/issues/events{/number}","events_url":"https://api.github.com/repos/scitran/api/events","assignees_url":"https://api.github.com/repos/scitran/api/assignees{/user}","branches_url":"https://api.github.com/repos/scitran/api/branches{/branch}","tags_url":"https://api.github.com/repos/scitran/api/tags","blobs_url":"https://api.github.com/repos/scitran/api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scitran/api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scitran/api/git/refs{/sha}","trees_url":"https://api.github.com/repos/scitran/api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scitran/api/statuses/{sha}","languages_url":"https://api.github.com/repos/scitran/api/languages","stargazers_url":"https://api.github.com/repos/scitran/api/stargazers","contributors_url":"https://api.github.com/repos/scitran/api/contributors","subscribers_url":"https://api.github.com/repos/scitran/api/subscribers","subscription_url":"https://api.github.com/repos/scitran/api/subscription","commits_url":"https://api.github.com/repos/scitran/api/commits{/sha}","git_commits_url":"https://api.github.com/repos/scitran/api/git/commits{/sha}","comments_url":"https://api.github.com/repos/scitran/api/comments{/number}","issue_comment_url":"https://api.github.com/repos/scitran/api/issues/comments{/number}","contents_url":"https://api.github.com/repos/scitran/api/contents/{+path}","compare_url":"https://api.github.com/repos/scitran/api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scitran/api/merges","archive_url":"https://api.github.com/repos/scitran/api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scitran/api/downloads","issues_url":"https://api.github.com/repos/scitran/api/issues{/number}","pulls_url":"https://api.github.com/repos/scitran/api/pulls{/number}","milestones_url":"https://api.github.com/repos/scitran/api/milestones{/number}","notifications_url":"https://api.github.com/repos/scitran/api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scitran/api/labels{/name}","releases_url":"https://api.github.com/repos/scitran/api/releases{/id}","created_at":"2014-02-05T20:48:50Z","updated_at":"2015-07-25T01:00:37Z","pushed_at":"2015-08-25T16:36:56Z","git_url":"git://github.com/scitran/api.git","ssh_url":"git@github.com:scitran/api.git","clone_url":"https://github.com/scitran/api.git","svn_url":"https://github.com/scitran/api","homepage":"","size":1640,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":5,"forks":3,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scitran/api/pulls/35"},"html":{"href":"https://github.com/scitran/api/pull/35"},"issue":{"href":"https://api.github.com/repos/scitran/api/issues/35"},"comments":{"href":"https://api.github.com/repos/scitran/api/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/scitran/api/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/scitran/api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scitran/api/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/scitran/api/statuses/556e6a899a0e1d873ad103dd5d94b3b3869e0eb9"}}}}