Class: Datadog::OpenTracer::SpanContext

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

Overview

OpenTracing adapter for SpanContext

Instance Attribute Summary collapse

Instance Method Summary collapse

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