Skip to content

Commit a766b4f

Browse files
committed
https://github.com/MicrosoftDocs/azure-docs/issues/99092
1 parent 7bdced9 commit a766b4f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
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: 10/24/2022
5+
ms.date: 10/31/2022
66
ms.devlang: csharp, java, javascript, vb
77
ms.custom: "devx-track-js, devx-track-csharp"
88
ms.reviewer: mmcc
@@ -1141,6 +1141,14 @@ To determine how long data is kept, see [Data retention and privacy](./data-rete
11411141

11421142
## Frequently asked questions
11431143

1144+
### Why am I missing telemetry data?
1145+
1146+
Both [TelemetryChannels](telemetry-channels.md#what-are-telemetry-channels) will lose buffered telemetry if it isn't flushed before an application shuts down.
1147+
1148+
To avoid data loss, flush the TelemetryClient when an application is shutting down.
1149+
1150+
For more information, see [Flushing data](#flushing-data).
1151+
11441152
### What exceptions might `Track_()` calls throw?
11451153

11461154
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.

0 commit comments

Comments
 (0)