I have an application landscape where we use Instana agents to monitor and trace the applications.
To be able to correlate an application log to a trace I'd like to add the traceId from Instana into our logs.
Now I've tried to add spring-cloud-sleuth and I see some traceId and spanIds in the logs, but these aren't the Instana ones.
The trace and span are included in the headers of the request with x-instana-t
and x-instana-s
. But I don't see a way to inject these headers into spring-cloud-sleuth.
I've read and tried as described in the docs, but apparently the headers can be empty, resulting in NPEs while trying to use the HexCodec
.
Question in short: How can I make sleuth use the instana trace headers?