Skip to content

Commit

Permalink
Use shorthand configuration access
Browse files Browse the repository at this point in the history
Co-authored-by: Marco Costa <[email protected]>
  • Loading branch information
bouwkast and marcotc authored Oct 23, 2024
1 parent e87ed63 commit 1f31567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def on_start(span, event, _id, payload)

span.set_tag('EVENT', event)

set_cache_key(span, key, mapping[:multi_key]) if Datadog.configuration.tracing[:active_support][:cache_key_enabled]
set_cache_key(span, key, mapping[:multi_key]) if configuration[:cache_key_enabled]
rescue StandardError => e
Datadog.logger.error(e.message)
Datadog::Core::Telemetry::Logger.report(e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def trace(action, store, key: nil, multi_key: nil)

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

set_cache_key(span, key, multi_key) if Datadog.configuration.tracing[:active_support][:cache_key_enabled]
set_cache_key(span, key, multi_key) if configuration[:cache_key_enabled]

yield
end
Expand Down

0 comments on commit 1f31567

Please sign in to comment.