{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/express/issues/2437","labels_url":"https://api.github.com/repos/strongloop/express/issues/2437/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/express/issues/2437/comments","events_url":"https://api.github.com/repos/strongloop/express/issues/2437/events","html_url":"https://github.com/strongloop/express/pull/2437","id":48378330,"number":2437,"title":"Add tracing capabilities to Express","user":{"login":"frankrousseau","id":1336623,"avatar_url":"https://avatars.githubusercontent.com/u/1336623?v=3","gravatar_id":"","url":"https://api.github.com/users/frankrousseau","html_url":"https://github.com/frankrousseau","followers_url":"https://api.github.com/users/frankrousseau/followers","following_url":"https://api.github.com/users/frankrousseau/following{/other_user}","gists_url":"https://api.github.com/users/frankrousseau/gists{/gist_id}","starred_url":"https://api.github.com/users/frankrousseau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frankrousseau/subscriptions","organizations_url":"https://api.github.com/users/frankrousseau/orgs","repos_url":"https://api.github.com/users/frankrousseau/repos","events_url":"https://api.github.com/users/frankrousseau/events{/privacy}","received_events_url":"https://api.github.com/users/frankrousseau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/express/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/strongloop/express/labels/pr","name":"pr","color":"006b75"}],"state":"closed","locked":false,"assignee":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2014-11-11T12:17:34Z","updated_at":"2015-01-14T02:28:21Z","closed_at":"2015-01-14T02:28:21Z","pull_request":{"url":"https://api.github.com/repos/strongloop/express/pulls/2437","html_url":"https://github.com/strongloop/express/pull/2437","diff_url":"https://github.com/strongloop/express/pull/2437.diff","patch_url":"https://github.com/strongloop/express/pull/2437.patch"},"body":"Hi Express team,\r\n\r\nTo follow the discussion posted in the #2191 issue, I send you a proposal to implement tracing support in Express. Let me know if it matches your requirements. It is inspired by Koa Trace.\r\n\r\n**Goal**\r\n\r\nWe want to allow to trace the response life-cycle. The tracing should support any tracing technology. \r\n\r\n**Implementation**\r\n\r\n* Add a `tracers` array at the application level.\r\n* Add an `instrument` function on the application prototype to add a tracer to the tracer list.\r\n* Add a `dispatch` function on the application prototype to activate all set tracers.\r\n* Add a `trace` on the response prototype to run tracers with current context and given event as arguments. \r\n* Add tracing tests.\r\n* Add tracing example."},"comment":{"url":"https://api.github.com/repos/strongloop/express/issues/comments/69859818","html_url":"https://github.com/strongloop/express/pull/2437#issuecomment-69859818","issue_url":"https://api.github.com/repos/strongloop/express/issues/2437","id":69859818,"user":{"login":"dougwilson","id":67512,"avatar_url":"https://avatars.githubusercontent.com/u/67512?v=3","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T02:28:21Z","updated_at":"2015-01-14T02:28:21Z","body":"Cool. Great feedback :)!"}}