-
Notifications
You must be signed in to change notification settings - Fork 4.7k
opentelemetry-instrument 0.53b0 release breaks azure-monitor-opentelemetry #2487
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
Comments
Its a rabbit whole. I guess i have got over the initial issue by pinning versions in
... but now i have a different error message..
Microsoft bundles Django, Flask, FastAPI, etc. instrumentation into azure-monitor-opentelemetry, even if you're not using them. I try below and deploy again to azure aca (only on azure execution it fails, not locally)
https://opentelemetry.io/docs/zero-code/python/configuration/#disabling-specific-instrumentations |
Solved (added it even as even env var for the container in the bicep Next rabbit 🐰 😭
|
They say its fixed in the latest ? open-telemetry/opentelemetry-python-contrib#3415 (comment) Have you tried azure-monitor-opentelemetry==1.6.7 ? |
2025-04-12T10:04:15.99111 Connecting to the container 'main'...
2025-04-12T10:04:16.03838 Successfully Connected to container: 'main' [Revision: 'capps-backend-jfnrv5kcsyxqa--azd-1744450658-dbdb5c7d7-r5q9v', Replica: 'capps-backend-jfnrv5kcsyxqa--azd-1744450658']
2025-04-12T09:57:07.4151555Z stderr F 2025-04-12 09:57:07,364 - WARNING - Exception occurred when instrumenting: flask.
2025-04-12T09:57:07.4151567Z stderr F Traceback (most recent call last):
2025-04-12T09:57:07.4151589Z stderr F File "/usr/local/lib/python3.11/site-packages/azure/monitor/opentelemetry/_configure.py", line 200, in _setup_instrumentations
2025-04-12T09:57:07.4151601Z stderr F conflict = get_dist_dependency_conflicts(entry_point.dist) # type: ignore
2025-04-12T09:57:07.4151613Z stderr F ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-04-12T09:57:07.4151625Z stderr F File "/usr/local/lib/python3.11/site-packages/opentelemetry/instrumentation/dependencies.py", line 51, in get_dist_dependency_conflicts
2025-04-12T09:57:07.4151638Z stderr F for dep in dist.requires: TypeError: 'method' object is not iterable TypeError: 'method' object is not iterable
2025-04-12T09:57:07.4151650Z stderr F TypeError: 'method' object is not iterable
2025-04-12T09:57:07.4151662Z stderr F 2025-04-12 09:57:07,372 - WARNING - This is a warning message
2025-04-12T09:57:07.4151674Z stderr F 2025-04-12 09:57:07,375 - INFO - Started server process [13]
2025-04-12T09:57:07.4151686Z stderr F 2025-04-12 09:57:07,375 - INFO - Waiting for application startup.
2025-04-12T09:57:08.3320300Z stderr F 2025-04-12 09:57:08,331 - INFO - Application startup complete.
2025-04-12T09:57:08.3627583Z stderr F 2025-04-12 09:57:08,362 - INFO - Application startup complete.
2025-04-12T09:57:08.3641281Z stderr F 2025-04-12 09:57:08,363 - INFO - Application startup complete.
2025-04-12T09:57:08.3847667Z stderr F 2025-04-12 09:57:08,384 - INFO - Application startup complete.
2025-04-12T09:57:08.4119500Z stderr F 2025-04-12 09:57:08,411 - INFO - Application startup complete.
2025-04-12T09:57:08.4410831Z stderr F 2025-04-12 09:57:08,440 - INFO - Application startup complete.
2025-04-12T09:57:08.4437162Z stderr F 2025-04-12 09:57:08,443 - INFO - Application startup complete.
2025-04-12T09:57:08.4463553Z stderr F 2025-04-12 09:57:08,446 - INFO - Application startup complete.
2025-04-12T09:57:08.4470302Z stderr F 2025-04-12 09:57:08,446 - INFO - Application startup complete.
There is a known issue i found
open-telemetry/opentelemetry-python-contrib#3415
The text was updated successfully, but these errors were encountered: