Skip to content

Commit

Permalink
Revert "Use shorthand configuration access"
Browse files Browse the repository at this point in the history
This reverts commit 1f31567.

This didn't work.
  • Loading branch information
bouwkast committed Oct 23, 2024
1 parent 1c823a0 commit 866c888
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 configuration[:cache_key_enabled]
set_cache_key(span, key, mapping[:multi_key]) if Datadog.configuration.tracing[:active_support][: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 configuration[:cache_key_enabled]
set_cache_key(span, key, multi_key) if Datadog.configuration.tracing[:active_support][:cache_key_enabled]

yield
end
Expand Down

0 comments on commit 866c888

Please sign in to comment.