Skip to content

Simplify OpenTelemetry enablement switch#8

Merged
anth-volk merged 1 commit into
mainfrom
codex/simplify-otel-switch
Jun 23, 2026
Merged

Simplify OpenTelemetry enablement switch#8
anth-volk merged 1 commit into
mainfrom
codex/simplify-otel-switch

Conversation

@anth-volk

Copy link
Copy Markdown
Contributor

Fixes #7

Summary

  • Make OTEL_ENABLED the only environment variable that controls OpenTelemetry enablement in ObservabilityConfig.from_env().
  • Remove the otel_enabled_default keyword from from_env() so the dataclass default is the only code-level default.
  • Update README guidance and add a regression test proving OBSERVABILITY_OTEL_ENABLED is no longer honored.
  • Add a breaking-change Towncrier fragment.

Validation

  • uv run --extra dev --extra all pytest -q
  • uv run --extra dev ruff check .
  • uv run --extra dev ruff format --check .
  • uv run --extra dev --extra all coverage report
  • git diff --check

@anth-volk anth-volk marked this pull request as ready for review June 23, 2026 20:48
@anth-volk anth-volk merged commit 8a7a050 into main Jun 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify OpenTelemetry enablement configuration

1 participant