getsentry / getsentry/sentry-javascript

Sentry shared worker integration similar to web worker

Ouverte
#17,422 3 commentaires 6 réactions 0 personnes assignées Voir sur GitHub
Browser Feature
Langage dominant
TypeScript
Étoiles
8.7k
Forks
1.8k
Merge moyen
1 j 17 h
PR mergées (30 j)
515

Description

### 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

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.