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

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

Overview

Defines instrumentation for ActiveSupport cache reading

Instance Method Summary collapse

Instance Method Details

#read(*args, &block) ⇒ Object



114
115
116
117
118
# File 'lib/datadog/tracing/contrib/active_support/cache/instrumentation.rb', line 114

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

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