getsentry / getsentry/sentry-javascript

Sentry shared worker integration similar to web worker

Offen
#17,422 3 Kommentare 6 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Browser Feature
Vorherrschende Sprache
TypeScript
Sterne
8.7k
Forks
1.8k
Ø Merge
1 T. 17 Std.
Gemergte PRs (30 T.)
515

Beschreibung

### Problem Statement

My application uses a shared worker to better handle multiple tabs from having the same websocket connection open to our API server. I would like sentry to do similar integration it does for web workers for a shared worker as they are conceptionally pretty similar, outside of a few differences.
Because would want the docs here [https://docs.sentry.io/platforms/javascript/best-practices/web-workers/]() but for shared worker too

### Solution Brainstorm

Main thing being that there is a connect event to listen to which then gives you the port to listen for message events and errors. From there a shared worker should behave just like a web worker. I am actually about to try to web worker integration and connect it in the right spots but not positive this will work and not the most user friendly if it does

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.