Method: Datadog::Tracing::Contrib::ActiveSupport::Cache::Instrumentation::Fetch#fetch

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

#fetch(*args, &block) ⇒ Object



157
158
159
160
161
# File 'lib/datadog/tracing/contrib/active_support/cache/instrumentation.rb', line 157

def fetch(*args, &block)
  return super if Instrumentation.nested_read?

  Instrumentation.trace(Ext::RESOURCE_CACHE_GET, dd_store_name, key: args[0]) { super }
end