Skip to content

Handling "none" value in OTEL_PROPAGATORS, OTEL_TRACES_EXPORTER, OTEL_METRICS_EXPORTER and OTEL_LOGS_EXPORTER #4682

@robsunday

Description

@robsunday

What are you trying to achieve?
I need to understand how SDK is supposed to behave if value "none" is specified together with other value(s) in any of the following environment variables:

  • OTEL_PROPAGATORS
  • OTEL_TRACES_EXPORTER
  • OTEL_METRICS_EXPORTER
  • OTEL_LOGS_EXPORTER

Additional context.

sdk-environment-variables.md file metions that value "none" indicates that no propagator or appropriate exporter should be configured.
The issue is that these environment variables can hold a list of values.
In current specification I did not find any information what should happen if for example OTEL_PROPAGATORS has value "baggage, none". I think such a specification would be worth adding.

In this case Java SDK throws an exception (see PropagatorConfiguration.java), but is it the right approach?

Tip: React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configurationRelated to configuring the SDKclarificationclarify ambiguity in specificationspec:miscellaneousFor issues that don't match any other spec labeltriage:deciding:community-feedbackOpen to community discussion. If the community can provide sufficient reasoning, it may be accepted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions