lib/instana/tracing/span_context.rb in instana-1.9.7 vs lib/instana/tracing/span_context.rb in instana-1.10.0.slimfast
- old
+ new
@@ -6,14 +6,16 @@
# Create a new SpanContext
#
# @param tid [Integer] the trace ID
# @param sid [Integer] the span ID
+ # @param level [Integer] default 1
# @param baggage [Hash] baggage applied to this trace
#
- def initialize(tid, sid, baggage = nil)
+ def initialize(tid, sid, level = 1, baggage = nil)
@trace_id = tid
@span_id = sid
+ @level = level
@baggage = baggage
end
def trace_id_header
::Instana::Util.id_to_header(@trace_id)