getsentry / getsentry/sentry-javascript

Support Dynamic Workers

Open
#19,962 1 comment 0 reactions 0 assignees View on GitHub
Cloudflare Workers Feature
Dominant language
TypeScript
Stars
8.7k
Forks
1.8k
Avg merge
1d 17h
Merged PRs (30d)
515

Description

### Problem Statement

Dynamic Workers were added to sandbox code you can't trust.

Some more info for Dynamic Workers:
Blog post: https://blog.cloudflare.com/dynamic-workers/
Dev docs: https://developers.cloudflare.com/dynamic-workers/
Examples you can get started with: https://developers.cloudflare.com/dynamic-workers/getting-started/#try-it-out
Worker-bundler: https://www.npmjs.com/package/@cloudflare/worker-bundler

Currently I assume that nothing would happen once this spins up and they won't get instrumented.

### Solution Brainstorm

We would need at least a new span around the newly spawned worker, to see how long this worker runs.

We could also add an additional option to instrument the dynamic worker as well.

### Additional Context

_No response_

### Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.