This commit is contained in:
Timothy Mothra 2022-09-27 12:56:10 -07:00 коммит произвёл GitHub
Родитель 0d81c12007
Коммит f4389840e4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -683,6 +683,9 @@
/// <summary>
/// Asynchronously Flushes the in-memory buffer and any metrics being pre-aggregated.
/// </summary>
/// <remarks>
/// <a href="https://go.microsoft.com/fwlink/?linkid=525722#flushing-data">Learn more</a>
/// </remarks>
/// <returns>
/// Returns true when telemetry data is transferred out of process (application insights server or local storage) and are emitted before the flush invocation.
/// Returns false when transfer of telemetry data to server has failed with non-retriable http status.

Просмотреть файл

@ -51,6 +51,11 @@ catch(Exception ex)
}
```
### Flushing
When your application is shutting down, we recommend Flushing the `TelemetryClient` to clear the buffer and prevent telemetry from being lost.
Please review our examples here: [Flushing data](https://learn.microsoft.com/azure/azure-monitor/app/api-custom-events-metrics#flushing-data).
## Telemetry Channels
Telemetry channels are responsible for sending the telemetry data to the designated place. Optional features can be provided by the telemetry channels, for example, buffering the data and sending in them in batches, persisting the data to a local storage in case of transmission failure (e.g. network outage), traffic shaping and retry mechanisms