Skip to content

Commit 8049a04

Browse files
committed
Attempt to access the configuration key correctly
1 parent 90f4868 commit 8049a04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/datadog/tracing/contrib/active_support/cache/events/cache.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def on_start(span, event, _id, payload)
8181

8282
span.set_tag('EVENT', event)
8383

84-
set_cache_key(span, key, mapping[:multi_key]) if datadog_configuration[:cache_key_enabled]
84+
set_cache_key(span, key, mapping[:multi_key]) if datadog_configuration[:active_support][:cache_key_enabled]
8585
rescue StandardError => e
8686
Datadog.logger.error(e.message)
8787
Datadog::Core::Telemetry::Logger.report(e)

lib/datadog/tracing/contrib/active_support/cache/instrumentation.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def trace(action, store, key: nil, multi_key: nil)
5959

6060
span.set_tag(Ext::TAG_CACHE_BACKEND, store) if store
6161

62-
set_cache_key(span, key, multi_key) if datadog_configuration[:cache_key_enabled]
62+
set_cache_key(span, key, multi_key) if datadog_configuration[:active_support][:cache_key_enabled]
6363

6464
yield
6565
end

0 commit comments

Comments
 (0)