Skip to content

Commit 564791b

Browse files
authored
Merge pull request #190090 from AaronMaxwell/aaronmax-autoinstrument-tshoot-page
[AppInsights][AaronMax] auto instrumentation troubleshooting
2 parents c425700 + 0400da4 commit 564791b

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title: Troubleshoot Azure Application Insights auto-instrumentation
3+
description: Troubleshoot auto-instrumentation in Azure Application Insights
4+
ms.topic: conceptual
5+
ms.date: 02/28/2022
6+
---
7+
8+
# Troubleshooting Azure Application Insights auto-instrumentation
9+
10+
This article will help you troubleshoot problems with auto-instrumentation in Azure Application Insights.
11+
12+
> [!NOTE]
13+
> Auto-instrumentation used to be known as "codeless attach" before October 2021.
14+
15+
## Telemetry data isn't reported after enabling auto-instrumentation
16+
17+
Review these common scenarios if you've enabled Azure Application Insights auto-instrumentation for your app service but don't see telemetry data reported.
18+
19+
### The Application Insights SDK was previously installed
20+
21+
Auto-instrumentation will fail when .NET and .NET Core apps were already instrumented with the SDK.
22+
23+
Remove the Application Insights SDK if you would like to auto-instrument your app.
24+
25+
### An app was published using an unsupported version of .NET or .NET Core
26+
27+
Verify a supported version of .NET or .NET Core was used to build and publish applications.
28+
29+
Refer to the .NET or .NET core documentation to determine if your version is supported.
30+
31+
- [Application Monitoring for Azure App Service and ASP.NET](azure-web-apps-net.md#application-monitoring-for-azure-app-service-and-aspnet)
32+
- [Application Monitoring for Azure App Service and ASP.NET Core](azure-web-apps-net-core.md#application-monitoring-for-azure-app-service-and-aspnet-core)
33+
34+
### A diagnostics library was detected
35+
36+
Auto-instrumentation will fail if it detects the following libraries.
37+
38+
- System.Diagnostics.DiagnosticSource
39+
- Microsoft.AspNet.TelemetryCorrelation
40+
- Microsoft.ApplicationInsights
41+
42+
These libraries will need to be removed for auto-instrumentation to succeed.
43+
44+
## More help
45+
46+
If you have questions about Azure Application Insights auto-instrumentation, you can post a question in our [Microsoft Q&A question page](/answers/topics/azure-monitor.html).

articles/azure-monitor/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,8 @@ items:
798798
href: app/status-monitor-v2-api-reference.md
799799
- name: Java
800800
href: app/java-on-premises.md
801+
- name: Troubleshooting
802+
href: app/auto-instrumentation-troubleshoot.md
801803
- name: Application Insights SDKs
802804
items:
803805
- name: .NET

0 commit comments

Comments
 (0)