question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Passing header from jaeger exporter

See original GitHub issue

I am currently sending data using

OTEL_SERVICE_NAME='<service name>' OTEL_EXPORTER_JAEGER_ENDPOINT="http://<IP of  Backend>:14268/api/traces" opentelemetry-instrument -e jaeger python program.py

Is there a way to pass headers in the above command?

I am using HTTP to send data to otel-collector and want to pass a header with every request. OTLP has the option to pass headers but right now the OTLP exporter allows only GRPC communication. The Jaeger exporter supports HTTP but couldn’t find a way to pass headers.

Is there a way to achieve this using Jaeger, OTLP, or any other exporters?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
codebotencommented, Feb 18, 2021

@ankitnayan is the request here to be able to pass custom headers to be exported to jaeger? if so I think the right place to suggest this would be in the specification repo so that all implementations are consistent.

1reaction
srikanthccvcommented, Feb 10, 2021

thanks for the clarification…the only possible way to do this right now seems to be via Otel-Collector, which can transmit in OTLP HTTP with headers right?

Yes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Opentelemetry: javaagent jaeger exporter - add header
I want to add a header to the grpc request. The documentation states that I can only configure 3 environment variables for the...
Read more >
OpenTelemetry-Go Jaeger Exporter - Go Packages
WithPassword sets the password to be used in the authorization header sent for all requests to the collector. This option overrides any value...
Read more >
Exporting traces to Jaeger - KrakenD API Gateway
The Opencensus exporter allows you export data to Jaeger. Enabling it only requires you to add the jaeger exporter in the opencensus module....
Read more >
Tracing with Spring Boot, OpenTelemetry, and Jaeger
Each service is expected to pass the trace ID to the next service ... This propagation of the trace ID is usually done...
Read more >
OpenTelemetry Collector: A Friendly Guide for Devs - Aspecto
You can export directly to Elasticsearch, Jaeger, Zipkin, and other ... that inserts a new attribute on each span that passed through it....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found