Class: Datadog::OpenTracer::SpanContext

Inherits:
OpenTracing::SpanContext
  • Object
show all
Defined in:
lib/datadog/opentracer/span_context.rb

Overview

OpenTracing adapter for SpanContext

Instance Attribute Summary collapse

Instance Method Summary collapse

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_contextObject (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_digestObject (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