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

Ensure that OpenTelemetry's OTEL_ environment variables are no-op #4935

Open
AlekSi opened this issue Mar 17, 2025 · 0 comments
Open

Ensure that OpenTelemetry's OTEL_ environment variables are no-op #4935

AlekSi opened this issue Mar 17, 2025 · 0 comments
Assignees
Labels
area/observability Issues about metrics, logs, traces, pprof, etc code/chore Code maintenance improvements not ready Issues that are not ready to be worked on; PRs that should skip CI

Comments

@AlekSi
Copy link
Member

AlekSi commented Mar 17, 2025

What should be done?

We already have some code that explicitly passes all parameters to prevent the OTel SDK from reading default values from environment variables. We should check it and add the missing parameters.

Maybe we should os.Unsetenv all OTEL_ variables from the environment in some init function?

https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/

We should also document that configuring OpenTelemetry via OTEL_ variables is not supported.

Where?

TBD

Definition of Done

TBD

  • handler updated;
  • unit tests added/updated;
  • integration/compatibility tests added/updated;
  • spot refactorings done;
  • user documentation updated (or an issue to create documentation created);
  • something else?
@AlekSi AlekSi added code/chore Code maintenance improvements not ready Issues that are not ready to be worked on; PRs that should skip CI labels Mar 17, 2025
@AlekSi AlekSi added the area/observability Issues about metrics, logs, traces, pprof, etc label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/observability Issues about metrics, logs, traces, pprof, etc code/chore Code maintenance improvements not ready Issues that are not ready to be worked on; PRs that should skip CI
Projects
None yet
Development

No branches or pull requests

2 participants