lib/instana/tracing/span_context.rb in instana-1.200.0.pre1 vs lib/instana/tracing/span_context.rb in instana-1.200.0
- old
+ new
@@ -45,10 +45,10 @@
if @level == 1
state = state.reject { |s| s.start_with?('in=') }
state.unshift("in=#{trace_id_header};#{span_id_header}")
end
- state.compact.join(',')
+ state.reject { |v| v.nil? }.join(',')
end
def to_hash
{ :trace_id => @trace_id, :span_id => @span_id }
end