Class: OpenTracing::SpanContext

Inherits:
Object
  • Object
show all
Defined in:
lib/opentracing/span_context.rb

Overview

SpanContext holds the data for a span that gets inherited to child spans

Constant Summary collapse

NOOP_INSTANCE =
SpanContext.new.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(baggage: {}) ⇒ SpanContext

Create a new SpanContext

Parameters:

  • id

    the ID of the Context

  • trace_id

    the ID of the current trace

  • baggage (defaults to: {})

    baggage



12
# File 'lib/opentracing/span_context.rb', line 12

def initialize(baggage: {}); end

Instance Attribute Details

#baggageObject (readonly)

Returns the value of attribute baggage.



6
7
8
# File 'lib/opentracing/span_context.rb', line 6

def baggage
  @baggage
end