{"action":"created","issue":{"url":"https://api.github.com/repos/uber/tchannel/issues/90","labels_url":"https://api.github.com/repos/uber/tchannel/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/uber/tchannel/issues/90/comments","events_url":"https://api.github.com/repos/uber/tchannel/issues/90/events","html_url":"https://github.com/uber/tchannel/pull/90","id":59320193,"number":90,"title":"add NODE_DEBUG=tchannelhexer support","user":{"login":"Raynos","id":479538,"avatar_url":"https://avatars.githubusercontent.com/u/479538?v=3","gravatar_id":"","url":"https://api.github.com/users/Raynos","html_url":"https://github.com/Raynos","followers_url":"https://api.github.com/users/Raynos/followers","following_url":"https://api.github.com/users/Raynos/following{/other_user}","gists_url":"https://api.github.com/users/Raynos/gists{/gist_id}","starred_url":"https://api.github.com/users/Raynos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raynos/subscriptions","organizations_url":"https://api.github.com/users/Raynos/orgs","repos_url":"https://api.github.com/users/Raynos/repos","events_url":"https://api.github.com/users/Raynos/events{/privacy}","received_events_url":"https://api.github.com/users/Raynos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-28T02:13:55Z","updated_at":"2015-02-28T16:25:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/uber/tchannel/pulls/90","html_url":"https://github.com/uber/tchannel/pull/90","diff_url":"https://github.com/uber/tchannel/pull/90.diff","patch_url":"https://github.com/uber/tchannel/pull/90.patch"},"body":"This instruments `tchannel` itself with both hexer and `debuglog`.\r\n\r\nI've copied the `debuglog` to add an `enabled` true/false flag.\r\n\r\nThis means we will only call out to hexer when `enabled` is set to true.\r\nI wanted to write the frames, so i've instrumented the v2 parser as that was the nicest place to put it.\r\n\r\nThis allows us to run any program, like `tcurl` with `NODE_DEBUG=tchannelhexer` and it will pretty print all the frames coming in & out.\r\n\r\nreviewers: @jcorbin @kriskowal \r\n\r\ncc: @jsu1212 "},"comment":{"url":"https://api.github.com/repos/uber/tchannel/issues/comments/76532861","html_url":"https://github.com/uber/tchannel/pull/90#issuecomment-76532861","issue_url":"https://api.github.com/repos/uber/tchannel/issues/90","id":76532861,"user":{"login":"kriskowal","id":60294,"avatar_url":"https://avatars.githubusercontent.com/u/60294?v=3","gravatar_id":"","url":"https://api.github.com/users/kriskowal","html_url":"https://github.com/kriskowal","followers_url":"https://api.github.com/users/kriskowal/followers","following_url":"https://api.github.com/users/kriskowal/following{/other_user}","gists_url":"https://api.github.com/users/kriskowal/gists{/gist_id}","starred_url":"https://api.github.com/users/kriskowal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kriskowal/subscriptions","organizations_url":"https://api.github.com/users/kriskowal/orgs","repos_url":"https://api.github.com/users/kriskowal/repos","events_url":"https://api.github.com/users/kriskowal/events{/privacy}","received_events_url":"https://api.github.com/users/kriskowal/received_events","type":"User","site_admin":false},"created_at":"2015-02-28T16:25:35Z","updated_at":"2015-02-28T16:25:35Z","body":"Apart from advice, looks good to me."}}