|
2 | 2 | title: Application Insights API for custom events and metrics | Microsoft Docs
|
3 | 3 | description: Insert a few lines of code in your device or desktop app, webpage, or service to track usage and diagnose issues.
|
4 | 4 | ms.topic: conceptual
|
5 |
| -ms.date: 05/11/2020 |
| 5 | +ms.date: 09/07/2022 |
6 | 6 | ms.devlang: csharp, java, javascript, vb
|
7 | 7 | ms.custom: "devx-track-js, devx-track-csharp"
|
8 | 8 | ms.reviewer: mmcc
|
@@ -1139,14 +1139,21 @@ To determine how long data is kept, see [Data retention and privacy](./data-rete
|
1139 | 1139 | * [Node.js SDK](https://github.com/Microsoft/ApplicationInsights-Node.js)
|
1140 | 1140 | * [JavaScript SDK](https://github.com/Microsoft/ApplicationInsights-JS)
|
1141 | 1141 |
|
1142 |
| -## Questions |
| 1142 | +## Frequently asked questions |
1143 | 1143 |
|
1144 |
| -* What exceptions might `Track_()` calls throw? |
| 1144 | +### What exceptions might `Track_()` calls throw? |
1145 | 1145 |
|
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. |
1148 | 1147 |
|
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>. |
1150 | 1157 |
|
1151 | 1158 | ## <a name="next"></a>Next steps
|
1152 | 1159 |
|
|
0 commit comments