Skip to content

Sentry shared worker integration similar to web worker #17422

@kalvenschraut

Description

@kalvenschraut

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions