[QUERY] App Service Application Insights Integration and OTEL UseAzureMonitor() create duplicated telemetry #48543
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Monitor - Distro
Monitor OpenTelemetry Distro
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
Library name and version
Azure.Monitor.OpenTelemetry.AspNetCore 1.2.0
Query/Question
Hello,
We're migrating our ASP.NET Core applications from the Application Insights SDK to OTEL with
UseAzureMonitor()
.The apps are hosted in Azure App Service and AppInsights instrumentation is enabled on them.
One issue we are facing is that the App Service integration itself pushes all the telemetry items. This leads to all telemetry items being duplicated, with slight differences. Moreover, some requests that we filtered using
AspNetCoreTraceInstrumentationOptions.Filter
are actually not filtered on Application Insights since being sent by the App Service AppInsights.Here's an example:
We removed the duplication by disabling the App Service AppInsights integration, but we then lost all the CPU/Memory metrics, and probably other things too.
Is there a way to keep the metrics, but disable other things, like the AppInsights SDK used to do?
Thanks!
Environment
Azure AppService
dotnet --info:
The text was updated successfully, but these errors were encountered: