Module: NewRelic::Instrumentation::ActsAsSolrInstrumentation::ParserMethodsInstrumentation
- Included in:
- ActsAsSolr::ParserMethods
- Defined in:
- lib/new_relic/agent/instrumentation/acts_as_solr.rb
Instance Method Summary collapse
Instance Method Details
#parse_query_with_newrelic(*args) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/new_relic/agent/instrumentation/acts_as_solr.rb', line 7 def parse_query_with_newrelic(*args) self.class.trace_execution_scoped(["SolrClient/ActsAsSolr/query"]) do t0 = Time.now begin parse_query_without_newrelic(*args) ensure NewRelic::Agent.instance.transaction_sampler.notice_nosql(args.first.inspect, (Time.now - t0).to_f) rescue nil end end end |