{"action":"created","issue":{"url":"https://api.github.com/repos/olivere/elastic/issues/375","repository_url":"https://api.github.com/repos/olivere/elastic","labels_url":"https://api.github.com/repos/olivere/elastic/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/olivere/elastic/issues/375/comments","events_url":"https://api.github.com/repos/olivere/elastic/issues/375/events","html_url":"https://github.com/olivere/elastic/issues/375","id":181935700,"number":375,"title":"[Question]Can trace log only request log?","user":{"login":"jinleileiking","id":93968,"avatar_url":"https://avatars.githubusercontent.com/u/93968?v=3","gravatar_id":"","url":"https://api.github.com/users/jinleileiking","html_url":"https://github.com/jinleileiking","followers_url":"https://api.github.com/users/jinleileiking/followers","following_url":"https://api.github.com/users/jinleileiking/following{/other_user}","gists_url":"https://api.github.com/users/jinleileiking/gists{/gist_id}","starred_url":"https://api.github.com/users/jinleileiking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jinleileiking/subscriptions","organizations_url":"https://api.github.com/users/jinleileiking/orgs","repos_url":"https://api.github.com/users/jinleileiking/repos","events_url":"https://api.github.com/users/jinleileiking/events{/privacy}","received_events_url":"https://api.github.com/users/jinleileiking/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-10T04:28:19Z","updated_at":"2016-10-10T17:32:53Z","closed_at":"2016-10-10T17:32:53Z","body":" Can only trace request log ? the response log is too big. hard to debug."},"comment":{"url":"https://api.github.com/repos/olivere/elastic/issues/comments/252687246","html_url":"https://github.com/olivere/elastic/issues/375#issuecomment-252687246","issue_url":"https://api.github.com/repos/olivere/elastic/issues/375","id":252687246,"user":{"login":"olivere","id":134848,"avatar_url":"https://avatars.githubusercontent.com/u/134848?v=3","gravatar_id":"","url":"https://api.github.com/users/olivere","html_url":"https://github.com/olivere","followers_url":"https://api.github.com/users/olivere/followers","following_url":"https://api.github.com/users/olivere/following{/other_user}","gists_url":"https://api.github.com/users/olivere/gists{/gist_id}","starred_url":"https://api.github.com/users/olivere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivere/subscriptions","organizations_url":"https://api.github.com/users/olivere/orgs","repos_url":"https://api.github.com/users/olivere/repos","events_url":"https://api.github.com/users/olivere/events{/privacy}","received_events_url":"https://api.github.com/users/olivere/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T17:32:53Z","updated_at":"2016-10-10T17:32:53Z","body":"Unfortunately, that's not possible at the moment.\r\n\r\nAs a workaround, you could try to wrap `elastic.Logger` and [implement a kind of logger](https://github.com/olivere/elastic/wiki/Logging) so that it only writes the trace if it \"looks like\" a request, not a response. Not very nice, but e.g. responses should always have a prefix of something like `\"HTTP/1.1\"`.\r\n"}}
{"actor":{"display_login":"olivere"}}