{"action":"created","issue":{"url":"https://api.github.com/repos/stagemonitor/stagemonitor/issues/73","labels_url":"https://api.github.com/repos/stagemonitor/stagemonitor/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/stagemonitor/stagemonitor/issues/73/comments","events_url":"https://api.github.com/repos/stagemonitor/stagemonitor/issues/73/events","html_url":"https://github.com/stagemonitor/stagemonitor/pull/73","id":75206907,"number":73,"title":"Include Elasticsearch search queries in call tree","user":{"login":"felixbarny","id":2163464,"avatar_url":"https://avatars.githubusercontent.com/u/2163464?v=3","gravatar_id":"","url":"https://api.github.com/users/felixbarny","html_url":"https://github.com/felixbarny","followers_url":"https://api.github.com/users/felixbarny/followers","following_url":"https://api.github.com/users/felixbarny/following{/other_user}","gists_url":"https://api.github.com/users/felixbarny/gists{/gist_id}","starred_url":"https://api.github.com/users/felixbarny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixbarny/subscriptions","organizations_url":"https://api.github.com/users/felixbarny/orgs","repos_url":"https://api.github.com/users/felixbarny/repos","events_url":"https://api.github.com/users/felixbarny/events{/privacy}","received_events_url":"https://api.github.com/users/felixbarny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-11T12:35:50Z","updated_at":"2015-05-11T12:51:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stagemonitor/stagemonitor/pulls/73","html_url":"https://github.com/stagemonitor/stagemonitor/pull/73","diff_url":"https://github.com/stagemonitor/stagemonitor/pull/73.diff","patch_url":"https://github.com/stagemonitor/stagemonitor/pull/73.patch"},"body":"When issuing `SearchRequest`s against Elasticsearch with the Elasticsearch Java API, the search queries are now included in the call tree. However, other requests like CountRequest or BulkRequest are not included, because they don't offer a simple way to get the request as JSON.\r\n![es-query](https://cloud.githubusercontent.com/assets/2163464/7564651/429d61b0-f7e9-11e4-8148-e7b06fea2a41.png)\r\n\r\nBecause all Elasticsearch SearchRequests are executed inside a thread pool, it is not really possible to get the time it took to process the search. That's why the call tree does not show the total or self time of the query.\r\n\r\nThis feature is included in stagemonitor-requestmonitor which now has a `optional` dependency on Elasticsearch. There is nothing to configure. Stagemonitor detects whether you have Elasticsearch on the classpath. Only if you do, it instruments the `SearchRequestBuilder`. If you are not using Elasticsearch, it won't be added to your classpath and the new Elasticsearch specific instrumenter will be bypassed."},"comment":{"url":"https://api.github.com/repos/stagemonitor/stagemonitor/issues/comments/100896466","html_url":"https://github.com/stagemonitor/stagemonitor/pull/73#issuecomment-100896466","issue_url":"https://api.github.com/repos/stagemonitor/stagemonitor/issues/73","id":100896466,"user":{"login":"coveralls","id":2354108,"avatar_url":"https://avatars.githubusercontent.com/u/2354108?v=3","gravatar_id":"","url":"https://api.github.com/users/coveralls","html_url":"https://github.com/coveralls","followers_url":"https://api.github.com/users/coveralls/followers","following_url":"https://api.github.com/users/coveralls/following{/other_user}","gists_url":"https://api.github.com/users/coveralls/gists{/gist_id}","starred_url":"https://api.github.com/users/coveralls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coveralls/subscriptions","organizations_url":"https://api.github.com/users/coveralls/orgs","repos_url":"https://api.github.com/users/coveralls/repos","events_url":"https://api.github.com/users/coveralls/events{/privacy}","received_events_url":"https://api.github.com/users/coveralls/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T12:51:35Z","updated_at":"2015-05-11T12:51:35Z","body":"\n[![Coverage Status](https://coveralls.io/builds/2534466/badge)](https://coveralls.io/builds/2534466)\n\nCoverage decreased (-0.01%) to 73.27% when pulling **fd9805698e4068af180c6821b8b2e8554fa15229 on elasticsearch-queries** into **94c06c0c962bdb94520bd5107cdebe4d0a5d3606 on master**.\n"}}