{"action":"created","issue":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-rails/issues/305","labels_url":"https://api.github.com/repos/elasticsearch/elasticsearch-rails/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/elasticsearch/elasticsearch-rails/issues/305/comments","events_url":"https://api.github.com/repos/elasticsearch/elasticsearch-rails/issues/305/events","html_url":"https://github.com/elasticsearch/elasticsearch-rails/issues/305","id":52347875,"number":305,"title":"Rails instrumentation does not work with Elasticsearch::Persistence::Repository","user":{"login":"adamniedzielski","id":2426386,"avatar_url":"https://avatars.githubusercontent.com/u/2426386?v=3","gravatar_id":"","url":"https://api.github.com/users/adamniedzielski","html_url":"https://github.com/adamniedzielski","followers_url":"https://api.github.com/users/adamniedzielski/followers","following_url":"https://api.github.com/users/adamniedzielski/following{/other_user}","gists_url":"https://api.github.com/users/adamniedzielski/gists{/gist_id}","starred_url":"https://api.github.com/users/adamniedzielski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamniedzielski/subscriptions","organizations_url":"https://api.github.com/users/adamniedzielski/orgs","repos_url":"https://api.github.com/users/adamniedzielski/repos","events_url":"https://api.github.com/users/adamniedzielski/events{/privacy}","received_events_url":"https://api.github.com/users/adamniedzielski/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-rails/labels/waiting","name":"waiting","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-18T10:34:38Z","updated_at":"2015-01-12T17:10:11Z","closed_at":"2015-01-12T17:10:11Z","body":"This issue is related to https://github.com/elasticsearch/elasticsearch-rails/issues/238\r\n\r\nI'm using Elasticsearch::Persistence::Repository and no Elasticsearch queries are logged and the timer always says: \"Elasticsearch: 0.0ms\"\r\n\r\nLooking at the implementation (https://github.com/elasticsearch/elasticsearch-rails/blob/master/elasticsearch-rails/lib/elasticsearch/rails/instrumentation/railtie.rb) this is not supposed to work.\r\n\r\nCan you estimate the complexity of implementation? If it's not hard I can give it a try with PR."},"comment":{"url":"https://api.github.com/repos/elasticsearch/elasticsearch-rails/issues/comments/69605523","html_url":"https://github.com/elasticsearch/elasticsearch-rails/issues/305#issuecomment-69605523","issue_url":"https://api.github.com/repos/elasticsearch/elasticsearch-rails/issues/305","id":69605523,"user":{"login":"karmi","id":4790,"avatar_url":"https://avatars.githubusercontent.com/u/4790?v=3","gravatar_id":"","url":"https://api.github.com/users/karmi","html_url":"https://github.com/karmi","followers_url":"https://api.github.com/users/karmi/followers","following_url":"https://api.github.com/users/karmi/following{/other_user}","gists_url":"https://api.github.com/users/karmi/gists{/gist_id}","starred_url":"https://api.github.com/users/karmi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karmi/subscriptions","organizations_url":"https://api.github.com/users/karmi/orgs","repos_url":"https://api.github.com/users/karmi/repos","events_url":"https://api.github.com/users/karmi/events{/privacy}","received_events_url":"https://api.github.com/users/karmi/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T17:10:11Z","updated_at":"2015-01-12T17:10:11Z","body":"@adamniedzielski Great! I think it makes sense -- I consider the `Repository` object to be really lightweight, so your solution is exactly what I would do. Closing this, if it's OK?"}}