Class: Datadog::Tracing::Configuration::Dynamic::TracingHeaderTags
- Inherits:
-
SimpleOption
- Object
- Option
- SimpleOption
- Datadog::Tracing::Configuration::Dynamic::TracingHeaderTags
- Defined in:
- lib/datadog/tracing/configuration/dynamic.rb
Overview
Dynamic configuration for DD_TRACE_HEADER_TAGS.
Instance Attribute Summary
Attributes inherited from Option
Instance Method Summary collapse
- #call(tracing_header_tags) ⇒ Object
-
#initialize ⇒ TracingHeaderTags
constructor
A new instance of TracingHeaderTags.
Constructor Details
#initialize ⇒ TracingHeaderTags
Returns a new instance of TracingHeaderTags.
20 21 22 |
# File 'lib/datadog/tracing/configuration/dynamic.rb', line 20 def initialize super('tracing_header_tags', 'DD_TRACE_HEADER_TAGS', :header_tags) end |
Instance Method Details
#call(tracing_header_tags) ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/datadog/tracing/configuration/dynamic.rb', line 24 def call() # Modify the remote configuration value that it matches the # environment variable it configures. &.map! do |hash| "#{hash["header"]}:#{hash["tag_name"]}" end super end |