Skip to content

Support OTEL_EXPORTER_OTLP_*PROTOCOL environment variables from otel spec #3478

@johnbley

Description

@johnbley

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions