-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
- Package Name: azure-monitor-opentelemetry
- Package Version: 1.6.13
- Operating System: Windows
- Python Version: 3.13
Describe the bug
When using the function configure_azure_monitor from the library, our app sends multiple http requests per seconds to the azure app insights. With the library set to version 1.6.12 and prior instead, we send these http requests each 5 seconds instead.
To Reproduce
Steps to reproduce the behavior:
- install the package with the problematic version
- Setup the environment variables: APPLICATIONINSIGHTS_CONNECTION_STRING= and OTEL_EXPERIMENTAL_RESOURCE_DETECTORS="azure_app_service"
- run configure_azure_monitor from azure.monitor.opentelemetry
- Setup FastAPI to listen and instrument_app
Expected behavior
The http requests should happen every 5 seconds as default, not multiple times per seconds
Screenshots
If applicable, add screenshots to help explain your problem.
Here is a screenshot of our logs (some logs were disable to help with saturation)
Additional context
This bug led us to go from 13 million logs saved in the last month to 1.4 billion in the following 4 days on azure log analytics, costing significant amount of money in our subscription