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
Copy file name to clipboardExpand all lines: support/azure/azure-monitor/app-insights/telemetry/auto-instrumentation-troubleshoot.md
+102Lines changed: 102 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,108 @@ For autoinstrumentation to work successfully, these libraries must be removed.
45
45
46
46
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).
47
47
48
+
## Issues with Java app running on Azure Functions
49
+
50
+
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 left-hand side navigation menu. Then select **Application settings** and use the following steps to fix the issue.
51
+
52
+
### Windows
53
+
54
+
1. Check to see if the following settings exist and remove them:
55
+
56
+
```
57
+
XDT_MicrosoftApplicationInsights_Java -> 1
58
+
ApplicationInsightsAgent_EXTENSION_VERSION -> ~2
59
+
```
60
+
61
+
2. Enable the latest version by adding this setting:
62
+
63
+
```
64
+
APPLICATIONINSIGHTS_ENABLE_AGENT: true
65
+
```
66
+
67
+
### Linux Dedicated/Premium
68
+
69
+
1. Check to see if the following settings exist and remove them:
70
+
71
+
```
72
+
ApplicationInsightsAgent_EXTENSION_VERSION -> ~3
73
+
```
74
+
75
+
1. Enable the latest version by adding this setting:
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).
0 commit comments