Skip to content

Commit

Permalink
Reapply "Use shorthand configuration access"
Browse files Browse the repository at this point in the history
This reverts commit 866c888.

It's missing a require_relative
  • Loading branch information
bouwkast committed Oct 23, 2024
1 parent 866c888 commit 45ef5e6
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -3,6 +3,7 @@
require_relative '../../../../core/utils'
require_relative '../../../metadata/ext'
require_relative '../ext'
require_relative 'event'

module Datadog
module Tracing
Expand Down Expand Up @@ -59,7 +60,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 45ef5e6

Please sign in to comment.