{"action":"opened","number":322,"pull_request":{"url":"https://api.github.com/repos/alphagov/stagecraft/pulls/322","id":30864548,"html_url":"https://github.com/alphagov/stagecraft/pull/322","diff_url":"https://github.com/alphagov/stagecraft/pull/322.diff","patch_url":"https://github.com/alphagov/stagecraft/pull/322.patch","issue_url":"https://api.github.com/repos/alphagov/stagecraft/issues/322","number":322,"state":"open","locked":false,"title":"Log timing info for db queries","user":{"login":"timmow","id":10064,"avatar_url":"https://avatars.githubusercontent.com/u/10064?v=3","gravatar_id":"","url":"https://api.github.com/users/timmow","html_url":"https://github.com/timmow","followers_url":"https://api.github.com/users/timmow/followers","following_url":"https://api.github.com/users/timmow/following{/other_user}","gists_url":"https://api.github.com/users/timmow/gists{/gist_id}","starred_url":"https://api.github.com/users/timmow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timmow/subscriptions","organizations_url":"https://api.github.com/users/timmow/orgs","repos_url":"https://api.github.com/users/timmow/repos","events_url":"https://api.github.com/users/timmow/events{/privacy}","received_events_url":"https://api.github.com/users/timmow/received_events","type":"User","site_admin":false},"body":"This is based on\nhttps://github.com/andymckay/django-statsd/blob/master/django_statsd/patches/db.py\nbut instead of sending to statsd, send info to the log. Also capture the\nquery so we can see if certain queries are timing out.","created_at":"2015-03-10T16:02:19Z","updated_at":"2015-03-10T16:02:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/stagecraft/pulls/322/commits","review_comments_url":"https://api.github.com/repos/alphagov/stagecraft/pulls/322/comments","review_comment_url":"https://api.github.com/repos/alphagov/stagecraft/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/stagecraft/issues/322/comments","statuses_url":"https://api.github.com/repos/alphagov/stagecraft/statuses/447e40e968090776f6b0e39810f3d6f99dfe13a5","head":{"label":"alphagov:log-timing-info-for-queries","ref":"log-timing-info-for-queries","sha":"447e40e968090776f6b0e39810f3d6f99dfe13a5","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":13295877,"name":"stagecraft","full_name":"alphagov/stagecraft","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/stagecraft","description":"A configuration service for the Performance Platform","fork":false,"url":"https://api.github.com/repos/alphagov/stagecraft","forks_url":"https://api.github.com/repos/alphagov/stagecraft/forks","keys_url":"https://api.github.com/repos/alphagov/stagecraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/stagecraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/stagecraft/teams","hooks_url":"https://api.github.com/repos/alphagov/stagecraft/hooks","issue_events_url":"https://api.github.com/repos/alphagov/stagecraft/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/stagecraft/events","assignees_url":"https://api.github.com/repos/alphagov/stagecraft/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/stagecraft/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/stagecraft/tags","blobs_url":"https://api.github.com/repos/alphagov/stagecraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/stagecraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/stagecraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/stagecraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/stagecraft/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/stagecraft/languages","stargazers_url":"https://api.github.com/repos/alphagov/stagecraft/stargazers","contributors_url":"https://api.github.com/repos/alphagov/stagecraft/contributors","subscribers_url":"https://api.github.com/repos/alphagov/stagecraft/subscribers","subscription_url":"https://api.github.com/repos/alphagov/stagecraft/subscription","commits_url":"https://api.github.com/repos/alphagov/stagecraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/stagecraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/stagecraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/stagecraft/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/stagecraft/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/stagecraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/stagecraft/merges","archive_url":"https://api.github.com/repos/alphagov/stagecraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/stagecraft/downloads","issues_url":"https://api.github.com/repos/alphagov/stagecraft/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/stagecraft/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/stagecraft/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/stagecraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/stagecraft/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/stagecraft/releases{/id}","created_at":"2013-10-03T11:08:32Z","updated_at":"2015-03-09T15:05:59Z","pushed_at":"2015-03-10T16:02:15Z","git_url":"git://github.com/alphagov/stagecraft.git","ssh_url":"git@github.com:alphagov/stagecraft.git","clone_url":"https://github.com/alphagov/stagecraft.git","svn_url":"https://github.com/alphagov/stagecraft","homepage":"","size":6959,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"ef4ba83ddd3fd23f89b7c348cc3e5ea0678b56e7","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":13295877,"name":"stagecraft","full_name":"alphagov/stagecraft","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/stagecraft","description":"A configuration service for the Performance Platform","fork":false,"url":"https://api.github.com/repos/alphagov/stagecraft","forks_url":"https://api.github.com/repos/alphagov/stagecraft/forks","keys_url":"https://api.github.com/repos/alphagov/stagecraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/stagecraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/stagecraft/teams","hooks_url":"https://api.github.com/repos/alphagov/stagecraft/hooks","issue_events_url":"https://api.github.com/repos/alphagov/stagecraft/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/stagecraft/events","assignees_url":"https://api.github.com/repos/alphagov/stagecraft/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/stagecraft/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/stagecraft/tags","blobs_url":"https://api.github.com/repos/alphagov/stagecraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/stagecraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/stagecraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/stagecraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/stagecraft/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/stagecraft/languages","stargazers_url":"https://api.github.com/repos/alphagov/stagecraft/stargazers","contributors_url":"https://api.github.com/repos/alphagov/stagecraft/contributors","subscribers_url":"https://api.github.com/repos/alphagov/stagecraft/subscribers","subscription_url":"https://api.github.com/repos/alphagov/stagecraft/subscription","commits_url":"https://api.github.com/repos/alphagov/stagecraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/stagecraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/stagecraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/stagecraft/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/stagecraft/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/stagecraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/stagecraft/merges","archive_url":"https://api.github.com/repos/alphagov/stagecraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/stagecraft/downloads","issues_url":"https://api.github.com/repos/alphagov/stagecraft/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/stagecraft/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/stagecraft/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/stagecraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/stagecraft/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/stagecraft/releases{/id}","created_at":"2013-10-03T11:08:32Z","updated_at":"2015-03-09T15:05:59Z","pushed_at":"2015-03-10T16:02:15Z","git_url":"git://github.com/alphagov/stagecraft.git","ssh_url":"git@github.com:alphagov/stagecraft.git","clone_url":"https://github.com/alphagov/stagecraft.git","svn_url":"https://github.com/alphagov/stagecraft","homepage":"","size":6959,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/stagecraft/pulls/322"},"html":{"href":"https://github.com/alphagov/stagecraft/pull/322"},"issue":{"href":"https://api.github.com/repos/alphagov/stagecraft/issues/322"},"comments":{"href":"https://api.github.com/repos/alphagov/stagecraft/issues/322/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/stagecraft/pulls/322/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/stagecraft/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/stagecraft/pulls/322/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/stagecraft/statuses/447e40e968090776f6b0e39810f3d6f99dfe13a5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":78,"deletions":3,"changed_files":4}}