Skip to content

fix: relax opentelemetry version pins to allow >=1.34.0,<2#4519

Closed
ManasVardhan wants to merge 1 commit into
crewAIInc:mainfrom
ManasVardhan:fix/relax-opentelemetry-version-pin
Closed

fix: relax opentelemetry version pins to allow >=1.34.0,<2#4519
ManasVardhan wants to merge 1 commit into
crewAIInc:mainfrom
ManasVardhan:fix/relax-opentelemetry-version-pin

Conversation

@ManasVardhan
Copy link
Copy Markdown

@ManasVardhan ManasVardhan commented Feb 19, 2026

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, and opentelemetry-exporter-otlp-proto-http prevent 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:

Because crewai==1.9.3 depends on opentelemetry-exporter-otlp-proto-http>=1.34.0,<1.35.dev0
and your project depends on opentelemetry-exporter-otlp-proto-http>=1.38,<2.dev0,
your project's requirements are unsatisfiable.

Changes

  • opentelemetry-api: ~=1.34.0>=1.34.0,<2
  • opentelemetry-sdk: ~=1.34.0>=1.34.0,<2
  • opentelemetry-exporter-otlp-proto-http: ~=1.34.0>=1.34.0,<2

The OpenTelemetry libraries follow semantic versioning, so any 1.x release should be backward compatible. The <2 upper 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.toml to relax the version constraints for opentelemetry-api, opentelemetry-sdk, and opentelemetry-exporter-otlp-proto-http from ~=1.34.0 to >=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.

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 #4511

Signed-off-by: Manas Vardhan <manasvardhan.work@gmail.com>
@ManasVardhan
Copy link
Copy Markdown
Author

Friendly ping -- this has been open for a few weeks. The opentelemetry version pins are causing dependency conflicts for users who need newer versions. CI is green. Would appreciate a review when someone has a chance. Thanks!

@ManasVardhan ManasVardhan closed this by deleting the head repository Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Supporting opentelemetry-exporter-otlp-proto-http>=1.39.1

1 participant