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.



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

def otel_context
  @otel_context
end

Instance Method Details

#otel_value(key) ⇒ Object

Stores values from Context#entries



180
181
182
# File 'lib/datadog/opentelemetry/api/context.rb', line 180

def otel_value(key)
  otel_values[key]
end

#otel_valuesObject

Retrieves values for Context#entries



185
186
187
# File 'lib/datadog/opentelemetry/api/context.rb', line 185

def otel_values
  @otel_values ||= {}
end