chore(python): upgrade OpenTelemetry to 1.40.0 / 0.61b0#466
Open
chore(python): upgrade OpenTelemetry to 1.40.0 / 0.61b0#466
Conversation
Bumps all OTel packages to the latest stable release: - opentelemetry-api/sdk/proto/exporter: 1.29.0 → 1.40.0 - all instrumentation packages: 0.50b0 → 0.61b0 Side effect: deprecated package removed (no longer a transitive dependency), wrapt downgraded 2.0.1 → 1.17.3 to satisfy new instrumentation constraints. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Upgrades the Python service’s OpenTelemetry core + instrumentation dependencies and refreshes the generated requirements.txt used by the Cloud Run Buildpack.
Changes:
- Bump OpenTelemetry core packages (
opentelemetry-api/sdk/proto/exporter) from 1.29.0 to 1.40.0. - Bump OpenTelemetry instrumentation packages from 0.50b0 to 0.61b0.
- Remove
deprecated(no longer pulled transitively) and reflect dependency-resolution changes (e.g.,wraptconstraint) in lock/requirements.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/python/requirements.txt | Updates pinned OpenTelemetry (+ related transitive) versions for Buildpack installs; removes deprecated. |
| src/python/pyproject.toml | Updates Poetry dependency constraints for OpenTelemetry core + instrumentation packages. |
| src/python/poetry.lock | Refreshes the lockfile to reflect the upgraded OpenTelemetry graph and transitive dependency changes. |
Adds the opentelemetry-distro meta-package which bundles the core OTel packages and provides the opentelemetry-bootstrap CLI for auto-discovering instrumentation dependencies. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…trypoint Adds a Procfile that wraps uvicorn with opentelemetry-instrument for Cloud Run deployments, delegating SDK initialisation and auto-instrumentation to the CLI wrapper via OTEL_* env vars. Local development via `poetry run start` continues to use the programmatic configure_telemetry() + FastAPIInstrumentor path unchanged. Co-Authored-By: Claude Sonnet 4.6 <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
opentelemetry-api,opentelemetry-sdk,opentelemetry-proto, andopentelemetry-exporter-otlp-proto-grpcfrom 1.29.0 → 1.40.0fastapi,sqlalchemy,httpx,logging,asgi) from 0.50b0 → 0.61b0requirements.txtfor Cloud Run BuildpackSide effects from dependency resolution:
deprecatedpackage removed — no longer a transitive dependency ofopentelemetry-apioropentelemetry-semantic-conventionsin 1.40.0wraptdowngraded2.0.1 → 1.17.3to satisfy the<2.0.0constraint from the new instrumentation packagesTest plan
requirements.txt🤖 Generated with Claude Code