TextMapCodec implements Codec<TextMap> { public static Builder builder() { return new Builder(); } TextMapCodec(boolean urlEncoding); private  TextMapCodec(Builder builder); static String contextAsString(JaegerSpanContext context); @Override void inject(JaegerSpanContext spanContext, TextMap carrier); @Override JaegerSpanContext extract(TextMap carrier); @Override String toString(); static Builder builder();  }
@Test public void testBuilder() { TextMapCodec codec = TextMapCodec.builder() .withUrlEncoding(true) .withSpanContextKey("jaeger-trace-id") .withBaggagePrefix("jaeger-baggage-") .build(); assertNotNull(codec); String str = codec.toString(); assertTrue(str.contains("contextKey=jaeger-trace-id")); assertTrue(str.contains("baggagePrefix=jaeger-baggage-")); assertTrue(str.contains("urlEncoding=true")); }