getsentry / getsentry/sentry-javascript

Cloudflare events have no runtime version and no server name

Offen
#24,040 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Cloudflare Workers Improvement javascript
Vorherrschende Sprache
TypeScript
Sterne
8.7k
Forks
1.8k
Ø Merge
1 T. 17 Std.
Gemergte PRs (30 T.)
523

Beschreibung

`packages/cloudflare/src/client.ts:55`:

```ts
// TODO: Grab version information
runtime: { name: 'cloudflare' },
// TODO: Add server name
```

Bun reports `{name:'bun', version:'1.3.14'}` and Deno reports the Deno version. Cloudflare reports neither a version nor a `server_name`, so events cannot be grouped or filtered by worker.

**Work item.** Set `server_name` from the script name where it is available (`env` binding metadata or the wrangler-injected name). For the version, either use the compatibility date if reachable at runtime or delete the TODO with a note saying workerd exposes nothing usable.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start at packages/cloudflare/src/client.ts:55 and review the existing runtime metadata alongside the Bun and Deno behavior mentioned in the issue. Trace which script-name metadata is available through env binding metadata or the wrangler-injected name, and determine whether the compatibility date is reachable at runtime. Done means Cloudflare events report server_name when available and either a usable version or a note explaining why workerd cannot provide one.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
cloud, observability
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Aktiv
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
70/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.