Skip to content

azure-monitor-opentelemetry v1.6.13 sends dozens of http requests per second #42367

@bia-gacot

Description

@bia-gacot
  • 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:

  1. install the package with the problematic version
  2. Setup the environment variables: APPLICATIONINSIGHTS_CONNECTION_STRING= and OTEL_EXPERIMENTAL_RESOURCE_DETECTORS="azure_app_service"
  3. run configure_azure_monitor from azure.monitor.opentelemetry
  4. 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)
Image

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

Metadata

Metadata

Assignees

Labels

Monitor - DistroMonitor OpenTelemetry DistroService AttentionWorkflow: This issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackWorkflow: More information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions