Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OTEL_EXPORTER_OTLP_*PROTOCOL environment variables from otel spec #3478

Closed
johnbley opened this issue Oct 23, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@johnbley
Copy link
Member

johnbley commented Oct 23, 2023

Steps to reproduce
Set, e.g., OTEL_TRACES_EXPORTER to otlp and OTEL_EXPORTER_OTLP_TRACES_PROTOCOL to http/protobuf per the specification at https://opentelemetry.io/docs/specs/otel/protocol/exporter/#configuration-options.

What is the expected behavior?
http/protobuf in use.

What is the actual behavior?
grpc in use. (if otlp_proto_grpc is not installed, an error message and failure to initialize the sdk)

Additional context
A workaround is to set OTEL_TRACES_EXPORTER=otlp_proto_http - this works correctly, but is against specification.

@johnbley johnbley added the bug Something isn't working label Oct 23, 2023
@srikanthccv
Copy link
Member

These should be supported already if I am not wrong #2893

@johnbley
Copy link
Member Author

I apologize, you are correct. I had some custom code that was manipulating these environment variables and that appears to be the source of my problem. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants