Skip to content

Commit b40e409

Browse files
authored
Merge pull request #190817 from pizzaz93/sdk-flush-guidance-pcohen
Update api-custom-events-metrics.md
2 parents e133219 + b304eaf commit b40e409

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -654,16 +654,7 @@ telemetry.flush();
654654

655655
The function is asynchronous for the [server telemetry channel](https://www.nuget.org/packages/Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel/).
656656

657-
We recommend using the flush() or flushAsync() methods in the shutdown activity of the Application when using the .NET or JS SDK.
658-
659-
For Example:
660-
661-
*JS*
662-
663-
```javascript
664-
// Immediately send all queued telemetry. By default, it is sent async.
665-
flush(async?: boolean = true)
666-
```
657+
We recommend using the flush() or flushAsync() methods in the shutdown activity of the Application when using the .NET SDK.
667658

668659
## Authenticated users
669660

0 commit comments

Comments
 (0)