fix: relax opentelemetry version pins to allow >=1.34.0,<2#4519
Open
ManasVardhan wants to merge 1 commit intocrewAIInc:mainfrom
Open
fix: relax opentelemetry version pins to allow >=1.34.0,<2#4519ManasVardhan wants to merge 1 commit intocrewAIInc:mainfrom
ManasVardhan wants to merge 1 commit intocrewAIInc:mainfrom
Conversation
The opentelemetry dependencies were pinned to ~=1.34.0 (>=1.34.0,<1.35.0), which prevented users from using newer versions (e.g., 1.39.x) needed by other packages like Langfuse. This relaxes the pins to >=1.34.0,<2 to allow compatibility with newer OpenTelemetry releases while still maintaining a reasonable upper bound. Fixes crewAIInc#4511 Signed-off-by: Manas Vardhan <manasvardhan.work@gmail.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
Relaxes the OpenTelemetry dependency version pins from
~=1.34.0(which resolves to>=1.34.0,<1.35.0) to>=1.34.0,<2.Problem
The current tight pins on
opentelemetry-api,opentelemetry-sdk, andopentelemetry-exporter-otlp-proto-httpprevent users from installing newer OpenTelemetry versions (e.g.,1.38.x,1.39.x) alongside crewAI. This causes dependency resolution failures when users need newer OTel versions for other packages like Langfuse.Example error:
Changes
opentelemetry-api:~=1.34.0→>=1.34.0,<2opentelemetry-sdk:~=1.34.0→>=1.34.0,<2opentelemetry-exporter-otlp-proto-http:~=1.34.0→>=1.34.0,<2The OpenTelemetry libraries follow semantic versioning, so any 1.x release should be backward compatible. The
<2upper bound protects against breaking changes in a future 2.0 release.Fixes #4511
Note
Low Risk
Dependency constraint-only change with no runtime logic modifications; risk is limited to potential incompatibilities if newer OpenTelemetry 1.x introduces unexpected behavior.
Overview
Updates
lib/crewai/pyproject.tomlto relax the version constraints foropentelemetry-api,opentelemetry-sdk, andopentelemetry-exporter-otlp-proto-httpfrom~=1.34.0to>=1.34.0,<2, improving compatibility with other packages that require newer OpenTelemetry 1.x versions.Written by Cursor Bugbot for commit dd1dcaa. This will update automatically on new commits. Configure here.