Closed
Description
- Package Name: azure-monitor-opentelemetry-exporter
- Package Version: 1.0.0.b17
- Operating System: windows 11
- Python Version: python 3.11
Describe the bug
Using Azure Monitor Opentelemetry exporter triggers a deprecation warning
C:\Users\jenielse\Miniconda3\envs\myenv\Lib\site-packages\azure\monitor\opentelemetry\exporter_utils.py:57: DeprecationWarning: Use setlocale(), getencoding() and getlocale() instead
"ai.device.locale": locale.getdefaultlocale()[0],
To Reproduce
Steps to reproduce the behavior:
- Configure export with azure monitor opentelemetry exporter.
Or any other opteration that triggers an import of _utils.py from the package
Expected behavior
No deprecation warning.
Additional context
Afaik this only became deprecated in python 3.11
Note however that on windows the replacement has some issues python/cpython#82986
Metadata
Metadata
Assignees
Labels
This issue points to a problem in the data-plane of the library.Monitor OpenTelemetry ExporterIssues that are reported by GitHub users external to the Azure organization.Workflow: This issue needs attention from Azure service team or SDK teamThe issue doesn't require a change to the product in order to be resolved. Most issues start as that