Upgrade OpenTelemetry and Azure packages to latest compatible versions #2634
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.
This PR addresses the failed Dependabot PR #2619 by upgrading OpenTelemetry and Azure packages to their latest compatible versions.
Problem
The original Dependabot PR attempted to upgrade
opentelemetry-sdk
from 1.31.1 to 1.35.0, but failed CI due to dependency conflicts. Investigation revealed that Azure Monitor packages constrainopentelemetry-sdk
to<1.32,>=1.28.0
, making version 1.35.0 incompatible.Root Cause
The dependency conflict stems from:
azure-monitor-opentelemetry
requiringopentelemetry-sdk<1.32,>=1.28.0
microsoft-kiota-*
packages requiringopentelemetry-sdk>=1.27.0
opentelemetry-sdk==1.35.0
which exceeds the Azure constraintSolution
Instead of forcing an incompatible upgrade, this PR:
uv pip compile
opentelemetry-sdk==1.31.1
(the latest version supported by Azure packages)azure-monitor-opentelemetry
: 1.6.1 → 1.6.12azure-monitor-opentelemetry-exporter
: 1.0.0b32 → 1.0.0b40azure-core
: 1.30.2 → 1.35.0azure-identity
: 1.17.1 → 1.23.1Verification
uv pip install -r requirements-dev.txt
ruff check .
)black . --check
)mypy
)Installation Command
To verify the upgrade works in a fresh environment:
This provides a substantial dependency refresh while maintaining compatibility. Future upgrades to
opentelemetry-sdk
1.35.0+ will be possible once Azure Monitor packages release versions with relaxed constraints.Fixes #2633.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
openaipublic.blob.core.windows.net
python -m pytest tests/ -k not test_app --maxfail=3 -v
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.