Part of #998.
Context
Wire @sentry/cloudflare into the Worker, initialised from an optional SENTRY_DSN. No DSN ⇒ no init ⇒ zero overhead. Hosted uses gittensory's DSN; self-host uses the operator's.
Deliverables
Requirements / acceptance
- Unset DSN = Sentry fully inert (no network, no perf cost) — covered by a test.
tsc --noEmit + vitest run green.
Part of #998.
Context
Wire
@sentry/cloudflareinto the Worker, initialised from an optionalSENTRY_DSN. No DSN ⇒ no init ⇒ zero overhead. Hosted uses gittensory's DSN; self-host uses the operator's.Deliverables
@sentry/cloudflare; init Sentry in the Worker entry (fetch / queue / scheduled), guarded bySENTRY_DSN.SENTRY_DSN(+SENTRY_ENVIRONMENT,SENTRY_TRACES_SAMPLE_RATE,SENTRY_RELEASE), documented as optional.Requirements / acceptance
tsc --noEmit+vitest rungreen.