Closed pavolloffay closed 5 years ago
cc @dreaderxxx @geoand @gytis.
Could somebody try to run a simple app with Jaeger tracer?
@dreaderxxx could you share a reproducer to your issue?
It might be tedious to reproduce it from scratch because you need to put all stuff (kafka, spring integration, opentracing, jaeger, ..) together.
As I understand traceId coming in kafka header as byte[] and then converted to String using valueOf in MessageTextMap. I'm not sure how it is supposed to work. -Maybe headers should be converted to String before with help of KafkaHeaderMapper from spring-kafka -Or maybe to use something like HeadersMapExtractAdapter in opentracing-kafka-client instead of MessageTextMap
I'm not familiar with the Jaeger implementation. @pavolloffay do you have a suggestion how to work around an issue when tracerId comes as byte[] and another component expects it as string? Is that a normal scenario?
The tracer should have registered encodings for different types - text_map, binary for byte array.
From https://github.com/opentracing-contrib/java-spring-messaging/issues/18#issuecomment-451171922
"[B@6ef3781d" in this case is byte[] which is converted by String.valueOf(..) in MessageTextMap