Currently, B3 TraceId extraction only supports fallback to 64 bit. Since other tracers by now also support 128 bit, the behavior was aligned with the regular TextMapCodec again.
The HexCodec class was removed since it's redundant now with the FromString implementations of SpanId and TraceId. B3TextMapCodec earlier returned null on problems. Due to using the ExceptionCatchingExtractorDecorator, it's better to throw an exception that gets logged and still gracefully returns null.
Which problem is this PR solving?
Fixes #143
Short description of the changes
Currently, B3 TraceId extraction only supports fallback to 64 bit. Since other tracers by now also support 128 bit, the behavior was aligned with the regular
TextMapCodec
again.The
HexCodec
class was removed since it's redundant now with theFromString
implementations ofSpanId
andTraceId
.B3TextMapCodec
earlier returnednull
on problems. Due to using theExceptionCatchingExtractorDecorator
, it's better to throw an exception that gets logged and still gracefully returnsnull
.