Skip to content

Commit d321851

Browse files
authored
Merge pull request #196829 from AaronMaxwell/aaronmax-aspnetcore-flush
[AppInsights][AaronMax] adding flush information
2 parents b87fee9 + 49b4c4d commit d321851

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/azure-monitor/app/asp-net-core.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ using Microsoft.ApplicationInsights.Channel;
387387
}
388388
```
389389

390+
> [!NOTE]
391+
> See [Flushing data](api-custom-events-metrics.md#flushing-data) if you want to flush the buffer--for example, if you are using the SDK in an application that shuts down.
392+
390393
### Disable telemetry dynamically
391394

392395
If you want to disable telemetry conditionally and dynamically, you can resolve the `TelemetryConfiguration` instance with an ASP.NET Core dependency injection container anywhere in your code and set the `DisableTelemetry` flag on it.

0 commit comments

Comments
 (0)