{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1213","repository_url":"https://api.github.com/repos/mozilla/fxa-auth-server","labels_url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1213/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1213/comments","events_url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1213/events","html_url":"https://github.com/mozilla/fxa-auth-server/pull/1213","id":139571913,"number":1213,"title":"feat(logging): add metrics context metadata to activity events","user":{"login":"philbooth","id":64367,"avatar_url":"https://avatars.githubusercontent.com/u/64367?v=3","gravatar_id":"","url":"https://api.github.com/users/philbooth","html_url":"https://github.com/philbooth","followers_url":"https://api.github.com/users/philbooth/followers","following_url":"https://api.github.com/users/philbooth/following{/other_user}","gists_url":"https://api.github.com/users/philbooth/gists{/gist_id}","starred_url":"https://api.github.com/users/philbooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philbooth/subscriptions","organizations_url":"https://api.github.com/users/philbooth/orgs","repos_url":"https://api.github.com/users/philbooth/repos","events_url":"https://api.github.com/users/philbooth/events{/privacy}","received_events_url":"https://api.github.com/users/philbooth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/fxa-auth-server/labels/waffle:progress","name":"waffle:progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-09T13:04:58Z","updated_at":"2016-03-16T21:24:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/fxa-auth-server/pulls/1213","html_url":"https://github.com/mozilla/fxa-auth-server/pull/1213","diff_url":"https://github.com/mozilla/fxa-auth-server/pull/1213.diff","patch_url":"https://github.com/mozilla/fxa-auth-server/pull/1213.patch"},"body":"Fixes #1200.\r\n\r\nTo reduce repetition of the validation boilerplate, I extracted the schema into the `metricsContext` module. I opted for there rather than the `validators` module so that the schema could live close to the `add` method; if any changes need to be made to this stuff down the line, they will only affect this one module. But I also realise I'm breaking with convention a bit so if you don't like it I'm happy to stick it in `validators`.\r\n\r\n@rfk, r?"},"comment":{"url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/comments/197555219","html_url":"https://github.com/mozilla/fxa-auth-server/pull/1213#issuecomment-197555219","issue_url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1213","id":197555219,"user":{"login":"rfk","id":34695,"avatar_url":"https://avatars.githubusercontent.com/u/34695?v=3","gravatar_id":"","url":"https://api.github.com/users/rfk","html_url":"https://github.com/rfk","followers_url":"https://api.github.com/users/rfk/followers","following_url":"https://api.github.com/users/rfk/following{/other_user}","gists_url":"https://api.github.com/users/rfk/gists{/gist_id}","starred_url":"https://api.github.com/users/rfk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rfk/subscriptions","organizations_url":"https://api.github.com/users/rfk/orgs","repos_url":"https://api.github.com/users/rfk/repos","events_url":"https://api.github.com/users/rfk/events{/privacy}","received_events_url":"https://api.github.com/users/rfk/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T21:24:03Z","updated_at":"2016-03-16T21:24:03Z","body":"Also :+1:, merge away if you feel this is ready to go"}}