0

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.

JDev
  • 2,157
  • 3
  • 31
  • 57

1 Answers1

0

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

IvanR
  • 198
  • 1
  • 1
  • 12
  • Thanks for the answer, I probably decided a little "in the forehead." Just started 2 additional collectors. They do not require much memory and resources. Collectors write to different indexes. – JDev Jul 29 '22 at 18:32