Skip to content

docs(config): document OTEL_PYTHON_* bypass when OTEL_CONFIG_FILE is set#5353

Open
MikeGoldsmith wants to merge 3 commits into
open-telemetry:mainfrom
MikeGoldsmith:mike/document-otel-python-bypass
Open

docs(config): document OTEL_PYTHON_* bypass when OTEL_CONFIG_FILE is set#5353
MikeGoldsmith wants to merge 3 commits into
open-telemetry:mainfrom
MikeGoldsmith:mike/document-otel-python-bypass

Conversation

@MikeGoldsmith

Copy link
Copy Markdown
Member

Description

Documents the current behaviour of OTEL_PYTHON_* Python-implementation extensions when OTEL_CONFIG_FILE is set: they are bypassed entirely because the env-var initialisation path is skipped in favour of the declarative file.

Two surfaces touched:

  • OTEL_CONFIG_FILE docstring in opentelemetry-sdk/src/opentelemetry/sdk/environment_variables/__init__.py.
  • "Behavior notes" in docs/sdk/configuration.rst.

This closes #5335 (the current-behaviour decision). The future-state work, where OTEL_PYTHON_* extensions could continue to apply alongside a config file, is tracked separately in #5352.

Fixes #5335

Type of change

  • This change requires a documentation update

How Has This Been Tested?

  • tox -e docs builds clean.

Does This PR Require a Contrib Repo Change?

  • Yes.
  • No.

Checklist:

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@MikeGoldsmith MikeGoldsmith requested a review from a team as a code owner June 25, 2026 13:08
@MikeGoldsmith MikeGoldsmith moved this to Ready for review in Python PR digest Jun 25, 2026
@MikeGoldsmith MikeGoldsmith added the config Issues and PRs related to implementing Declarative Config label Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

config Issues and PRs related to implementing Declarative Config

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

feat(config): decide OTEL_PYTHON_* env-var behaviour when OTEL_CONFIG_FILE is set

2 participants