Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

fix: add graceful shutdown for sentry to flush all pending messages#536

Merged
vinistevam merged 3 commits intomainfrom
fix/201-graceful-shutdown-sentry-flush-pending-messages
Feb 26, 2023
Merged

fix: add graceful shutdown for sentry to flush all pending messages#536
vinistevam merged 3 commits intomainfrom
fix/201-graceful-shutdown-sentry-flush-pending-messages

Conversation

@vinistevam
Copy link
Copy Markdown
Contributor

@vinistevam vinistevam commented Feb 17, 2023

Overview

This PR aims to add a graceful shutdown mechanism for Sentry to send any pending messages.

Changes

App

  • added a listener to the electron app for 'before-quit' and a timeout to send any pending messages to Sentry.
  • included metrics decision filter to the renderer process.

Issues

resolves #201

@vinistevam vinistevam force-pushed the fix/201-graceful-shutdown-sentry-flush-pending-messages branch from 97b852d to 4951e36 Compare February 21, 2023 17:40
@vinistevam vinistevam marked this pull request as ready for review February 21, 2023 17:42
@vinistevam vinistevam requested a review from a team February 21, 2023 17:42
@vinistevam vinistevam force-pushed the fix/201-graceful-shutdown-sentry-flush-pending-messages branch 5 times, most recently from a194d97 to bfd42cf Compare February 23, 2023 14:27
Copy link
Copy Markdown
Contributor

@bergarces bergarces left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both the graceful shutdown and adding filter for sentry FE look good to me.

@vinistevam vinistevam force-pushed the fix/201-graceful-shutdown-sentry-flush-pending-messages branch from bfd42cf to c9ea87a Compare February 24, 2023 15:45
@vinistevam vinistevam merged commit b44e26b into main Feb 26, 2023
@cryptotavares cryptotavares mentioned this pull request Mar 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add graceful shutdown mechanism for Sentry to flush any pending messages

3 participants