Fix #4511: Widen opentelemetry version constraints to support >=1.34.0,<2#4512
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
Fix #4511: Widen opentelemetry version constraints to support >=1.34.0,<2#4512devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
Fixes #4511 The opentelemetry packages were pinned with ~=1.34.0 (>=1.34.0, <1.35.0) which prevented users from installing newer versions needed by tools like Langfuse. Widened to >=1.34.0,<2 since crewAI only uses stable trace APIs that have no breaking changes across 1.x versions. 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 #4511: Widen opentelemetry version constraints to >=1.34.0,<2
Summary
The three opentelemetry dependencies (
opentelemetry-api,opentelemetry-sdk,opentelemetry-exporter-otlp-proto-http) were pinned with~=1.34.0, which resolves to>=1.34.0, <1.35.0. This prevented users from installing newer OpenTelemetry versions (e.g.>=1.38or>=1.39.1) required by tools like Langfuse.This PR widens the constraint to
>=1.34.0,<2. crewAI only uses stable trace-related OpenTelemetry APIs (spans, tracer providers, baggage, context), and the only breaking change in recent releases (1.39.0) affects Log signal classes which crewAI does not use.Adds a regression test suite (
test_opentelemetry_version_compatibility.py) that verifies all OpenTelemetry imports used by crewAI resolve correctly and that the Telemetry singleton initializes successfully.Review & Testing Checklist for Human
telemetry/telemetry.py,telemetry/utils.py,crew.py, andflow/flow.pyremain stable across 1.34–1.39+ (the only known breaking change in 1.39.0 is Log-related, not trace-related)crewaialongsideopentelemetry-exporter-otlp-proto-http>=1.39.1(the version from the issue report) and verify dependency resolution succeeds and basic crew execution worksNotes
uv.lockdiff only updates specifier strings; the actual resolved versions may remain at 1.34.x until auv lock --upgradeis run.Link to Devin run: https://app.devin.ai/sessions/66fa037370db4cdca14e1cbc72abd12a
Requested by: João