getsentry / getsentry/sentry-javascript
Sentry shared worker integration similar to web worker
- 主要语言
- TypeScript
- 星标
- 8.7k
- 派生
- 1.8k
- 平均合并
- 1 天 17 小时
- 30 天内合并 PR
- 515
描述
### 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
贡献指南
评估
这个 Issue 还没有评估数据。