Skip to content

Commit d384170

Browse files
committed
Called out incompatibility with agent
1 parent f6ca238 commit d384170

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

articles/azure-monitor/app/api-custom-events-metrics.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Application Insights API for custom events and metrics | Microsoft Docs
33
description: Insert a few lines of code in your device or desktop app, webpage, or service to track usage and diagnose issues.
44
ms.topic: conceptual
5-
ms.date: 05/11/2020
5+
ms.date: 09/07/2022
66
ms.devlang: csharp, java, javascript, vb
77
ms.custom: "devx-track-js, devx-track-csharp"
88
ms.reviewer: mmcc
@@ -1139,14 +1139,21 @@ To determine how long data is kept, see [Data retention and privacy](./data-rete
11391139
* [Node.js SDK](https://github.com/Microsoft/ApplicationInsights-Node.js)
11401140
* [JavaScript SDK](https://github.com/Microsoft/ApplicationInsights-JS)
11411141

1142-
## Questions
1142+
## Frequently asked questions
11431143

1144-
* What exceptions might `Track_()` calls throw?
1144+
### What exceptions might `Track_()` calls throw?
11451145

1146-
None. You don't need to wrap them in try-catch clauses. If the SDK encounters problems, it will log messages in the debug console output and, if the messages get through, in Diagnostic Search.
1147-
* Is there a REST API to get data from the portal?
1146+
None. You don't need to wrap them in try-catch clauses. If the SDK encounters problems, it will log messages in the debug console output and, if the messages get through, in Diagnostic Search.
11481147

1149-
Yes, the [data access API](https://dev.applicationinsights.io/). Other ways to extract data include [export from Log Analytics to Power BI](./export-power-bi.md) and [continuous export](./export-telemetry.md).
1148+
### Is there a REST API to get data from the portal?
1149+
1150+
Yes, the [data access API](https://dev.applicationinsights.io/). Other ways to extract data include [export from Log Analytics to Power BI](./export-power-bi.md) and [continuous export](./export-telemetry.md).
1151+
1152+
### Why are my calls to custom events and metrics APIs ignored?
1153+
1154+
The Application Insights SDK isn't compatible with auto-instrumentation. If auto-instrumentation is enabled, calls to <code class="notranslate">Track()</code> and other custom events and metrics APIs will be ignored.
1155+
1156+
Turn off auto-instrumentation in the Azure Portal on the Application Insights tab of the App Service page or set <code class="notranslate">ApplicationInsightsAgent_EXTENSION_VERSION</code> to <code class="notranslate">disabled</code>.
11501157

11511158
## <a name="next"></a>Next steps
11521159

0 commit comments

Comments
 (0)