chore(deps): drop otel optional extra (YAGNI)#24
Merged
Conversation
The `otel` extra declared `opentelemetry-api>=1.20` + `opentelemetry-sdk>=1.20` but zero httpware code imported them. It existed as a placeholder for Epic 5 (Observability) which hasn't started. Three downsides as currently declared: 1. Misleads users: `pip install httpware[otel]` advertises OTel integration that doesn't exist. 2. `httpware[all]` pulled ~30MB of OTel deps that no code used. 3. Pre-committed version bounds may not match what Epic 5 eventually needs (might want opentelemetry-instrumentation rather than the SDK). Drop now; add back at the same time as the code that uses it lands. This is the same pattern pydantic/msgspec extras follow. - pyproject.toml: remove `otel = [...]` block; drop otel from `all` extra. - planning/engineering.md: update §3 Seam C contract (drop preemptive otel example), §7 optional-extras pattern (note the lesson), §8 Epic 5-4 description. - README.md: drop "(pydantic, msgspec, otel)" parenthetical from the [all] description and the "otel extra is declared but unshipped" line. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes the `otel` optional extra from `pyproject.toml`. It declared `opentelemetry-api>=1.20` + `opentelemetry-sdk>=1.20` but zero httpware code imported them — it existed as a placeholder for Epic 5 (Observability) which hasn't started.
As declared, the extra had three concrete downsides:
Add it back at the same time as the code that uses it lands — same pattern `pydantic` and `msgspec` follow.
Changes
Test Plan
Breaking?
No. `pip install httpware[otel]` was never documented as a stable interface (pre-1.0). The extra was declared but advertised nothing. The `all` extra now installs strictly less, which is the desirable change.
🤖 Generated with Claude Code