mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
chore(gateway): proactive close telemetry session (#7361)
This is important for the "Release Health" statistics of Sentry.
This commit is contained in:
@@ -55,8 +55,12 @@ async fn main() {
|
||||
// That looks like a "crash" but we "just" exit with a fatal error.
|
||||
if let Err(e) = try_main(cli, &mut telemetry).await {
|
||||
tracing::error!(error = anyhow_dyn_err(&e));
|
||||
telemetry.stop_on_crash().await;
|
||||
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
||||
telemetry.stop().await
|
||||
}
|
||||
|
||||
async fn try_main(cli: Cli, telemetry: &mut Telemetry) -> Result<()> {
|
||||
|
||||
Reference in New Issue
Block a user