{"action":"created","issue":{"url":"https://api.github.com/repos/musicglue/mg-express/issues/7","repository_url":"https://api.github.com/repos/musicglue/mg-express","labels_url":"https://api.github.com/repos/musicglue/mg-express/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/musicglue/mg-express/issues/7/comments","events_url":"https://api.github.com/repos/musicglue/mg-express/issues/7/events","html_url":"https://github.com/musicglue/mg-express/issues/7","id":151088843,"number":7,"title":"investigate dynamic switching of log levels per viewer","user":{"login":"leemhenson","id":515,"avatar_url":"https://avatars.githubusercontent.com/u/515?v=3","gravatar_id":"","url":"https://api.github.com/users/leemhenson","html_url":"https://github.com/leemhenson","followers_url":"https://api.github.com/users/leemhenson/followers","following_url":"https://api.github.com/users/leemhenson/following{/other_user}","gists_url":"https://api.github.com/users/leemhenson/gists{/gist_id}","starred_url":"https://api.github.com/users/leemhenson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leemhenson/subscriptions","organizations_url":"https://api.github.com/users/leemhenson/orgs","repos_url":"https://api.github.com/users/leemhenson/repos","events_url":"https://api.github.com/users/leemhenson/events{/privacy}","received_events_url":"https://api.github.com/users/leemhenson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/musicglue/mg-express/labels/rfc","name":"rfc","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-26T09:41:56Z","updated_at":"2016-04-26T09:51:19Z","closed_at":null,"body":"It would be pretty awesome if we could, at any time, flick a switch somehow to enable debug-level logging in production for a particular viewer id. Then, when a customer has a difficult-to-replicate issue, we can simply ask them to tell us their viewer id (this would need to be easily obtainable via the ui somehow) and we could switch debug logging on for them. Then, as they reproduce the issue on their machine, we could see a debug-level cross-service dialogue. \r\n"},"comment":{"url":"https://api.github.com/repos/musicglue/mg-express/issues/comments/214687827","html_url":"https://github.com/musicglue/mg-express/issues/7#issuecomment-214687827","issue_url":"https://api.github.com/repos/musicglue/mg-express/issues/7","id":214687827,"user":{"login":"SomeHats","id":1489520,"avatar_url":"https://avatars.githubusercontent.com/u/1489520?v=3","gravatar_id":"","url":"https://api.github.com/users/SomeHats","html_url":"https://github.com/SomeHats","followers_url":"https://api.github.com/users/SomeHats/followers","following_url":"https://api.github.com/users/SomeHats/following{/other_user}","gists_url":"https://api.github.com/users/SomeHats/gists{/gist_id}","starred_url":"https://api.github.com/users/SomeHats/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SomeHats/subscriptions","organizations_url":"https://api.github.com/users/SomeHats/orgs","repos_url":"https://api.github.com/users/SomeHats/repos","events_url":"https://api.github.com/users/SomeHats/events{/privacy}","received_events_url":"https://api.github.com/users/SomeHats/received_events","type":"User","site_admin":false},"created_at":"2016-04-26T09:51:19Z","updated_at":"2016-04-26T09:51:19Z","body":"#### per-viewer log config.\r\nBiggest issue with that is making loggers reliably resource-aware. We already have the request id getting logged, but for some reason it's not present all of the time. I'm not sure if it's an issue with `wrap-async-context`, or a library we use doing something interesting under the hood.\r\n\r\nWe could maybe make `serviceFetch` pass a `x-log-level` header that services use to configure their log level? Or even just within the graph let `serviceFetch` dial up the log level for reporting requests and responses.\r\n\r\n#### configuration changes at runtime\r\nhttps://www.consul.io/ or something similar, perhaps?"}}