Class: Datadog::OpenTracer::SpanContext
- Inherits:
-
OpenTracing::SpanContext
- Object
- OpenTracing::SpanContext
- Datadog::OpenTracer::SpanContext
- Defined in:
- lib/ddtrace/opentracer/span_context.rb
Overview
OpenTracing adapter for SpanContext
Instance Attribute Summary collapse
-
#datadog_context ⇒ Object
readonly
Returns the value of attribute datadog_context.
Instance Method Summary collapse
-
#initialize(datadog_context:, baggage: {}) ⇒ SpanContext
constructor
A new instance of SpanContext.
Constructor Details
#initialize(datadog_context:, baggage: {}) ⇒ SpanContext
Returns a new instance of SpanContext.
8 9 10 11 |
# File 'lib/ddtrace/opentracer/span_context.rb', line 8 def initialize(datadog_context:, baggage: {}) @datadog_context = datadog_context @baggage = baggage.freeze end |
Instance Attribute Details
#datadog_context ⇒ Object (readonly)
Returns the value of attribute datadog_context.
5 6 7 |
# File 'lib/ddtrace/opentracer/span_context.rb', line 5 def datadog_context @datadog_context end |