-
Notifications
You must be signed in to change notification settings - Fork 3.3k
azure-monitor-opentelemetry broken with the recent v1.32.0 release of opentelemetry-api and opentelemetry-sdk #40465
Copy link
Copy link
Closed
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.Monitor - ExporterMonitor OpenTelemetry ExporterMonitor OpenTelemetry ExporterService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.Workflow: The Azure SDK team believes it to be addressed and ready to close.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.Monitor - ExporterMonitor OpenTelemetry ExporterMonitor OpenTelemetry ExporterService AttentionWorkflow: This issue is responsible by Azure service team.Workflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.Workflow: The Azure SDK team believes it to be addressed and ready to close.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
The new 1.32.0 version of opentelemetry-api and opentelemetry-sdk brings a breaking change that removes the
get_dist_dependency_conflicts()function used by azure-monitor-opentelemetry.To Reproduce
Steps to reproduce the behavior:
pip install azure-monitor-opentelemetryfrom azure.monitor.opentelemetry import configure_azure_monitorExpected behavior
The import of 'configure_azure_monitor' shouldn't fail.
Screenshots
Workaround
Explicitly installing opentelemetry-sdk at a previous version, ie 1.31.1, fixes the issue.
Additional context
The setup.py file specifies dependency versions for opentelemetry-api and opentelemetry-sdk as ~=1.26. This allows any version within the range >=1.26.0 and <2.0.0 to be installed, as the ~= specifier ensures compatibility within the same major version. As a result, pip installs version 1.32.0, which falls within this range.