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
-
#otel_context ⇒ Object
Returns the value of attribute otel_context.
Instance Method Summary collapse
-
#otel_value(key) ⇒ Object
Stores values from Context#entries.
-
#otel_values ⇒ Object
Retrieves values for Context#entries.
Instance Attribute Details
#otel_context ⇒ Object
Returns the value of attribute otel_context.
192 193 194 |
# File 'lib/datadog/opentelemetry/api/context.rb', line 192 def otel_context @otel_context end |
Instance Method Details
#otel_value(key) ⇒ Object
Stores values from Context#entries
195 196 197 |
# File 'lib/datadog/opentelemetry/api/context.rb', line 195 def otel_value(key) otel_values[key] end |
#otel_values ⇒ Object
Retrieves values for Context#entries
200 201 202 |
# File 'lib/datadog/opentelemetry/api/context.rb', line 200 def otel_values @otel_values ||= {} end |