Parse a W3C traceparent header strictly. Returns a frozen ParsedTraceparent; throws a TraceparentError naming the first rule the header breaks.
traceparent
parseTraceparent('00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01');// { traceId: '4bf92f3577b34da6a3ce929d0e0e4736', operationId: '00f067aa0ba902b7', sampled: true, flags: '01' } Copy
parseTraceparent('00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01');// { traceId: '4bf92f3577b34da6a3ce929d0e0e4736', operationId: '00f067aa0ba902b7', sampled: true, flags: '01' }
Parse a W3C
traceparentheader strictly. Returns a frozen ParsedTraceparent; throws a TraceparentError naming the first rule the header breaks.