getsentry / getsentry/sentry-javascript

cloudflare: No `tail_stream` or `trace` handler support

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

Description

`withSentry` covers `fetch`, `scheduled`, `email`, `queue` and `tail`. `ExportedHandler` also allows `trace` (the older tail alias) and `tailStream` (streaming tail workers).

**Work item.** Confirm which of the two are still current in workerd, then add the missing wrapper(s) alongside `instrumentTail`.

**Prior art **getsentry/sentry-javascript#16233 added the `email`, `queue` and `tail` handlers and is the pattern to follow.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Cloudflare implementation of withSentry and the existing instrumentTail wrapper, then compare ExportedHandler with current workerd support for trace and tailStream. Follow the pattern from getsentry/sentry-javascript#16233 and verify that the supported missing handlers are wrapped alongside instrumentTail.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.