Module: Datadog::Tracing::Contrib::ActiveSupport::Cache::Instrumentation::ReadMulti
- Includes:
- InstanceMethods
- Defined in:
- lib/datadog/tracing/contrib/active_support/cache/instrumentation.rb
Overview
Defines the the legacy monkey-patching instrumentation for ActiveSupport cache read_multi DEV-3.0: ActiveSupport::Notifications events were introduced in ActiveSupport 5.2.0 for this method. DEV-3.0: As long as we support ActiveSupport < 5.2.0, we have to keep this method.
Instance Method Summary collapse
Instance Method Details
#read_multi(*keys, **options, &block) ⇒ Object
144 145 146 147 148 |
# File 'lib/datadog/tracing/contrib/active_support/cache/instrumentation.rb', line 144 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 |