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