You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This article helps you troubleshoot problems that affect autoinstrumentation in Application Insights.
14
14
15
15
> [!NOTE]
16
-
> Autoinstrumentation was known as "codeless attach" before October 2021.
16
+
> Autoinstrumentation was known as *codeless attach* before October 2021.
17
17
18
18
## Telemetry data isn't reported after you enable autoinstrumentation
19
19
@@ -48,8 +48,112 @@ For autoinstrumentation to work successfully, these libraries must be removed.
48
48
49
49
If you encounter problems that are caused by the Application Insights SDK itself after you enable autoinstrumentation, collect self-diagnostic logs to diagnose the problems. For more information, see [How to collect self-diagnostic logs for Application Insights SDKs](enable-self-diagnostics.md).
50
50
51
+
## Issues with Java app running on Azure Functions
52
+
53
+
### Slow startup times
54
+
55
+
Your Java functions might have slow startup times if you adopted this feature before February 2023. From the function app **Overview** pane, go to **Configuration** in the navigation menu. Then, select **Application settings** and use the following steps to fix the issue.
56
+
57
+
### [Windows](#tab/windows)
58
+
59
+
1. Check to see if the following settings exist and remove them:
60
+
61
+
```
62
+
XDT_MicrosoftApplicationInsights_Java -> 1
63
+
ApplicationInsightsAgent_EXTENSION_VERSION -> ~2
64
+
```
65
+
66
+
2. Enable the latest version by adding this setting:
67
+
68
+
```
69
+
APPLICATIONINSIGHTS_ENABLE_AGENT: true
70
+
```
71
+
72
+
### [Linux Dedicated/Premium](#tab/linux)
73
+
74
+
1. Check to see if the following settings exist and remove them:
75
+
76
+
```
77
+
ApplicationInsightsAgent_EXTENSION_VERSION -> ~3
78
+
```
79
+
80
+
1. Enable the latest version by adding this setting:
81
+
82
+
```
83
+
APPLICATIONINSIGHTS_ENABLE_AGENT: true
84
+
```
85
+
86
+
---
87
+
88
+
### Duplicate logs
89
+
90
+
If you're using `log4j` or `logback` for console logging, distributed tracing for Java Functions creates duplicate logs. These duplicate logs are then sent to Application Insights. To avoid this behavior, use the following workarounds.
If you have additional questions about Application Insights autoinstrumentation, you can post them on our [Microsoft Q&A question page](/answers/topics/azure-monitor.html).
54
156
55
157
[!INCLUDE [Azure Help Support](../../../../includes/azure-help-support.md)]
0 commit comments