Commit bfd6fd3
authored
Fix OpenTelemetry dependency conflicts with autogen-core (#638)
## Problem
Users attempting to use `agentops` alongside `autogen-core==0.4.0` encounter dependency resolution errors due to conflicting OpenTelemetry version requirements. This occurs because:
- `agentops` supports Python ≥3.9 and uses OpenTelemetry 1.22.0
- `autogen-core==0.4.0` requires Python ≥3.10 and needs OpenTelemetry ≥1.27.0
## Solution
Added version-specific OpenTelemetry constraints in `pyproject.toml` to handle both scenarios:
- For Python 3.9: Pin OpenTelemetry packages to 1.22.0 (maintaining original behavior)
- For Python ≥3.10: Allow OpenTelemetry ≥1.27.0 (compatible with autogen-core)
This ensures:
1. Python 3.9 users get our tested OpenTelemetry versions
2. Python ≥3.10 users can use `agentops` alongside `autogen-core` without conflicts
## Testing
Verified dependency resolution works in both scenarios:
- Python 3.9: Successfully installs with OpenTelemetry 1.22.0
- Python 3.10 + autogen-core: Successfully upgrades to OpenTelemetry 1.27.0
No changes to core functionality or API.1 parent a80d68c commit bfd6fd3
1 file changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
81 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
82 | 93 | | |
83 | 94 | | |
84 | 95 | | |
| |||
0 commit comments