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

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

Overview

Defines instrumentation for ActiveSupport cache writing of multiple keys

Instance Method Summary collapse

Instance Method Details

#write_multi(hash, options = nil) ⇒ Object



168
169
170
# File 'lib/datadog/tracing/contrib/active_support/cache/instrumentation.rb', line 168

def write_multi(hash, options = nil)
  Instrumentation.trace(Ext::RESOURCE_CACHE_MSET, dd_store_name, multi_key: hash.keys) { super }
end