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.
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_values ⇒ Object
Retrieves values for Context#entries
185 186 187 |
# File 'lib/datadog/opentelemetry/api/context.rb', line 185 def otel_values @otel_values ||= {} end |