Module: Datadog::Tracing::Contrib::ActiveSupport::Cache::Instrumentation::ReadMulti

Includes:
InstanceMethods
Defined in:
lib/datadog/tracing/contrib/active_support/cache/instrumentation.rb

Overview

Defines instrumentation for ActiveSupport cache reading of multiple keys

Instance Method Summary collapse

Instance Method Details

#read_multi(*keys, &block) ⇒ Object



125
126
127
128
129
# File 'lib/datadog/tracing/contrib/active_support/cache/instrumentation.rb', line 125

def read_multi(*keys, &block)
  return super if Instrumentation.nested_multiread?

  Instrumentation.trace(Ext::RESOURCE_CACHE_MGET, dd_store_name, multi_key: keys) { super }
end