lib/opentelemetry/trace/propagation/trace_context/trace_parent.rb in opentelemetry-api-1.1.0 vs lib/opentelemetry/trace/propagation/trace_context/trace_parent.rb in opentelemetry-api-1.2.0

- old
+ new

@@ -20,10 +20,10 @@ SUPPORTED_VERSION = 0 private_constant :SUPPORTED_VERSION MAX_VERSION = 254 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 + 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>-.*)?$/ private_constant :REGEXP 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