lib/instana/tracing/span_context.rb in instana-1.195.1 vs lib/instana/tracing/span_context.rb in instana-1.195.2
- old
+ new
@@ -4,10 +4,11 @@
module Instana
class SpanContext
attr_accessor :trace_id
attr_accessor :span_id
attr_accessor :baggage
+ attr_reader :level
# Create a new SpanContext
#
# @param tid [Integer] the trace ID
# @param sid [Integer] the span ID
@@ -40,10 +41,10 @@
end
def trace_state_header
return '' unless valid?
- state = ["in=#{@trace_id};#{@span_id}", @baggage[:external_state]]
+ state = ["in=#{trace_id_header};#{span_id_header}", @baggage[:external_state]]
state.compact.join(',')
end
def to_hash
{ :trace_id => @trace_id, :span_id => @span_id }