Skip to content

Fix OpenTelemetry compatibility by upgrading to 0.57b0 versions #2636

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Jul 28, 2025

Fixes the CI failure in Dependabot PR #2603 by resolving OpenTelemetry package compatibility issues.

The original Dependabot upgrade to opentelemetry-instrumentation-wsgi==0.56b0 caused an ImportError:

ImportError: cannot import name 'get_dist_dependency_conflicts' from 'opentelemetry.instrumentation.dependencies'

This occurred because azure-monitor-opentelemetry==1.6.1 expected the get_dist_dependency_conflicts function that was removed in OpenTelemetry 0.56b0.

Solution:

  • Upgraded all OpenTelemetry packages to 0.57b0 for consistency
  • Upgraded azure-monitor-opentelemetry from 1.6.1 → 1.6.13
  • Upgraded azure-monitor-opentelemetry-exporter from 1.0.0b32 → 1.0.0b40

The dependency resolution was performed using uv pip compile to ensure all packages are compatible and work together correctly.

Fixes #2635.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@pamelafox
Copy link
Collaborator

@copilot CI is failing:

Run pytest -s -vv --cov --cov-fail-under=89
ImportError while loading conftest '/home/runner/work/azure-search-openai-demo/azure-search-openai-demo/tests/conftest.py'.
tests/conftest.py:30: in
import app
app/backend/app.py:25: in
from azure.monitor.opentelemetry import configure_azure_monitor
.venv/lib/python3.10/site-packages/azure/monitor/opentelemetry/init.py:7: in
from azure.monitor.opentelemetry._configure import configure_azure_monitor
.venv/lib/python3.10/site-packages/azure/monitor/opentelemetry/_configure.py:10: in
from opentelemetry.instrumentation.dependencies import (
E ImportError: cannot import name 'get_dist_dependency_conflicts' from 'opentelemetry.instrumentation.dependencies' (/home/runner/work/azure-search-openai-demo/azure-search-openai-demo/.venv/lib/python3.10/site-packages/opentelemetry/instrumentation/dependencies.py)

Copy link
Contributor Author

Copilot AI commented Jul 30, 2025

@copilot CI is failing:

Run pytest -s -vv --cov --cov-fail-under=89
...

Fixed the import error by upgrading all OpenTelemetry packages to compatible versions. The issue was that azure-monitor-opentelemetry 1.6.1 expected the old get_dist_dependency_conflicts function from opentelemetry-instrumentation 0.52b1, but this was removed in 0.56b0.

Updated to OpenTelemetry 0.57b0 and azure-monitor-opentelemetry 1.6.13 which are compatible. Commit: 4ebba17

@Copilot Copilot AI changed the title [WIP] Dependabot #2603 to upgrade opentelemetry-instrumentation-wsgi failed CI Fix OpenTelemetry compatibility by upgrading to 0.57b0 versions Jul 30, 2025
Copilot finished work on behalf of pamelafox July 30, 2025 14:28
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.

Dependabot #2603 to upgrade opentelemetry-instrumentation-wsgi failed CI
2 participants