Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unnecessary capture exception #218

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

panuhorsmalahti
Copy link
Contributor

@panuhorsmalahti panuhorsmalahti commented Jun 26, 2024

A stream created from a WebSocket can emit an error when the WebSocket is in readyState of CLOSING but data is tried to be written. Here BoredMplexClient was used to pipe data from the Duplex stream (created from the Websocket). bored already handles these errors, so sending them as captureException is unnecessary and confusing. We should only capture unhandled or unexpected errors and send them to Sentry.

@panuhorsmalahti panuhorsmalahti requested review from jakolehm and a team June 26, 2024 08:13
@panuhorsmalahti panuhorsmalahti merged commit af445af into main Jun 26, 2024
1 check passed
@panuhorsmalahti panuhorsmalahti deleted the chore/remove-unnecessary-capture branch June 26, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants