Files
crewAI/lib
Devin AI 31033c9c00 fix: relax opentelemetry version constraints to avoid conflicts with openlit
The opentelemetry-api, opentelemetry-sdk, and opentelemetry-exporter-otlp-proto-http
packages were pinned to ~=1.34.0 (>=1.34.0, <1.35.0) in both crewai and crewai-core.
This caused dependency conflicts with packages like openlit (>=1.42.0) which require
opentelemetry-sdk >=1.38.0.

Relaxed the constraints to >=1.34.0,<2.0.0 in both pyproject.toml files.
The code only uses stable OpenTelemetry APIs so this broader range is safe.

Added regression tests that verify:
- OTel constraints allow versions >=1.38.0 (openlit compatibility)
- OTel constraints maintain lower bound >=1.34.0
- OTel constraints cap at <2.0.0
- All OTel imports used by crewai remain functional

Fixes #5845

Co-Authored-By: João <joao@crewai.com>
2026-05-18 08:23:39 +00:00
..