Skip to content

Commit

Permalink
Register shuting down in sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Gołębiowski committed Feb 3, 2025
1 parent 5227a64 commit 9534475
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Cody.VisualStudio/CodyPackage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ private void ReportSentryVsVersion()
scope.SetTag("agent", VersionService.Agent);
SentrySdk.CaptureMessage("Initialized");
});

VsShellUtilities.ShutdownToken.Register(() => SentrySdk.ConfigureScope(s => s.SetTag("isShuttingDown", "true")));
}

private static void InitializeTrace()
Expand Down

0 comments on commit 9534475

Please sign in to comment.