Module: Datadog::OpenTelemetry::API::TraceOperation

Included in:
Tracing::TraceOperation
Defined in:
lib/datadog/opentelemetry/api/context.rb

Overview

OpenTelemetry-specific TraceOperation features.

These extensions providing matching between TraceOperation and OpenTelemetry Context.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#otel_contextObject

Returns the value of attribute otel_context.



170
171
172
# File 'lib/datadog/opentelemetry/api/context.rb', line 170

def otel_context
  @otel_context
end

Instance Method Details

#otel_value(key) ⇒ Object

Stores values from Context#entries



173
174
175
# File 'lib/datadog/opentelemetry/api/context.rb', line 173

def otel_value(key)
  otel_values[key]
end

#otel_valuesObject

Retrieves values for Context#entries



178
179
180
# File 'lib/datadog/opentelemetry/api/context.rb', line 178

def otel_values
  @otel_values ||= {}
end