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.



191
192
193
# File 'lib/datadog/opentelemetry/api/context.rb', line 191

def otel_context
  @otel_context
end

Instance Method Details

#otel_value(key) ⇒ Object

Stores values from Context#entries



194
195
196
# File 'lib/datadog/opentelemetry/api/context.rb', line 194

def otel_value(key)
  otel_values[key]
end

#otel_valuesObject

Retrieves values for Context#entries



199
200
201
# File 'lib/datadog/opentelemetry/api/context.rb', line 199

def otel_values
  @otel_values ||= {}
end