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

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

Overview

Defines instrumentation for ActiveSupport cache writing

Instance Method Summary collapse

Instance Method Details

#write(*args, &block) ⇒ Object



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

def write(*args, &block)
  Instrumentation.trace(Ext::RESOURCE_CACHE_SET, dd_store_name, key: args[0]) { super }
end