lib/opentelemetry/trace/propagation/trace_context/trace_parent.rb in opentelemetry-api-0.5.1 vs lib/opentelemetry/trace/propagation/trace_context/trace_parent.rb in opentelemetry-api-0.6.0

- old
+ new

@@ -23,11 +23,11 @@ private_constant :MAX_VERSION REGEXP = /^(?<version>[A-Fa-f0-9]{2})-(?<trace_id>[A-Fa-f0-9]{32})-(?<span_id>[A-Fa-f0-9]{16})-(?<flags>[A-Fa-f0-9]{2})(?<ignored>-.*)?$/.freeze private_constant :REGEXP - INVALID_TRACE_ID = OpenTelemetry::Trace::INVALID_TRACE_ID.unpack1('H*') - INVALID_SPAN_ID = OpenTelemetry::Trace::INVALID_SPAN_ID.unpack1('H*') + INVALID_TRACE_ID = OpenTelemetry::Trace::SpanContext::INVALID.hex_trace_id + INVALID_SPAN_ID = OpenTelemetry::Trace::SpanContext::INVALID.hex_span_id private_constant :INVALID_TRACE_ID, :INVALID_SPAN_ID class << self # Creates a new {TraceParent} from a supplied {Trace::SpanContext} # @param [SpanContext] ctx The context