Fix #4474: Widen OpenTelemetry version constraints to resolve dependency conflicts#4475
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
Conversation
) The opentelemetry-api, opentelemetry-sdk, and opentelemetry-exporter-otlp-proto-http dependencies were pinned to ~=1.34.0 (>=1.34.0,<1.35.0), which conflicts with google-adk and other libraries requiring >=1.36.0. Widened to >=1.34.0,<2 to allow compatible newer versions while staying within the stable 1.x API. Co-Authored-By: João <joao@crewai.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
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.
Fix #4474: Widen OpenTelemetry version constraints to
>=1.34.0,<2Summary
The
opentelemetry-api,opentelemetry-sdk, andopentelemetry-exporter-otlp-proto-httpdependencies were pinned to~=1.34.0(i.e.>=1.34.0, <1.35.0). This prevented coinstallation with libraries likegoogle-adkwhich requireopentelemetry-api>=1.36.0.This PR widens the constraints to
>=1.34.0,<2, matching the pattern used by other crewAI dependencies (e.g.openai>=1.83.0,<3). The OpenTelemetry APIs used by crewAI (trace, baggage, context, SDK resources, TracerProvider, BatchSpanProcessor, OTLPSpanExporter) are stable public APIs within the 1.x line.A new test file
test_opentelemetry_compatibility.pyis added with 6 tests covering import functionality, version floor checks, and Telemetry singleton initialization.Review & Testing Checklist for Human
<2is acceptable — the previous pin~=1.34.0was very conservative. Consider whether a tighter bound like<1.40would be more appropriate to reduce risk of future breakage from an unknown OTel 1.x release.pip install opentelemetry-api==1.38.0 opentelemetry-sdk==1.38.0 opentelemetry-exporter-otlp-proto-http==1.38.0and run the telemetry test suite.uv.lockdiff is clean — only the three specifier lines should change inuv.lock; no unintended version bumps of resolved packages.Notes