I have a problem with jaeger exporter, I have been looking for a solution for a long time and I understand that the solution is either not there or it has not been done yet.
Is this at all possible to solve somehow? How to add header to jaeger exporter?
I am using javaagent and jaeger exporter. I want to add a header to the grpc request.
The documentation states that I can only configure 3 environment variables for the jaeger exporter. https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk-extensions/autoconfigure/README.md#jaeger-exporter
I can insert headers only if I use OTEL exporter(OTEL_EXPORTER_OTLP_HEADERS).
Accordingly, jaeger exporter ignores this variable. -> OTEL_EXPORTER_OTLP_HEADERS
Thanks.
What about using Opentelemetry Collector to do this?
You can use the javaagent to forward to Opentelemetry Collector, which allows you to use OTEL_EXPORTER_OTLP_HEADERS.
Then, in turn, the collector can forward traces to your Jaeger instance
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.