module NewRelic::Instrumentation::ActsAsSolrInstrumentation::ParserMethodsInstrumentation
Public Instance Methods
parse_query_with_newrelic(*args)
click to toggle source
# File lib/new_relic/agent/instrumentation/acts_as_solr.rb, line 8 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