Module: Datadog::OpenTelemetry::SDK::Configurator

Defined in:
lib/datadog/opentelemetry/sdk/configurator.rb

Overview

The Configurator is responsible for setting wiring up different OpenTelemetry requirements together. Some of the requirements will be changed to Datadog versions.

Instance Method Summary collapse

Instance Method Details

#configure_propagationObject

Ensure Datadog-configure propagation styles have are applied when configured.

DEV: Support configuring propagation through the environment variable DEV: ‘OTEL_PROPAGATORS`, similar to `DD_TRACE_PROPAGATION*`?



23
24
25
26
# File 'lib/datadog/opentelemetry/sdk/configurator.rb', line 23

def configure_propagation
  @propagators = [Propagator.new(Tracing::Contrib::HTTP)]
  super
end

#initializeObject



14
15
16
17
# File 'lib/datadog/opentelemetry/sdk/configurator.rb', line 14

def initialize
  super
  @id_generator = IdGenerator
end

#wrapped_exporters_from_envObject

Ensure Datadog-configure trace writer is configured.



29
30
31
# File 'lib/datadog/opentelemetry/sdk/configurator.rb', line 29

def wrapped_exporters_from_env
  [SpanProcessor.new]
end