getsentry / getsentry/sentry-javascript
Sentry shared worker integration similar to web worker
- Ngôn ngữ chính
- TypeScript
- Star
- 8.7k
- Fork
- 1.8k
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 515
Mô tả
### 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
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.