Module: NewRelic::Instrumentation::ActsAsSolrInstrumentation::ParserMethodsInstrumentation
- Defined in:
- lib/new_relic/agent/instrumentation/acts_as_solr.rb
Instance Method Summary collapse
Instance Method Details
#parse_query_with_newrelic(*args) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/new_relic/agent/instrumentation/acts_as_solr.rb', line 5 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 |