getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.87k stars 1.55k forks source link

Track websocket state changes #8618

Open sobrinho opened 1 year ago

sobrinho commented 1 year ago

Problem Statement

I would like to see websocket connections and state changes (breadcrumbs) on errors reported to Sentry so I can understand the error better.

Solution Brainstorm

When a connection is open, add a breadcrumb. When a connection state changes, add a breadcrumb. When a connection is closed, add a breadcrumb.

AbhiPrasad commented 1 year ago

Hey @sobrinho, thanks for writing in! Backlogging this, but PRs are welcome for any contributions!