Application Insights – Use case for TelemetryClient flush calls
Ideally, the right usage pattern for Flush method is when the application encountered something unexpected, shutting down and needs to upload exception before crashing.
Dev Blogs