sentry-cloudflare-sdk

Configure Sentry Cloudflare SDK integration across Workers, Pages, and Durable Objects.

1|Updated Jun 8, 2026
One-click install
npx skills add https://github.com/getsentry/plugin-claude --skill sentry-cloudflare-sdk-getsentry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sentry-cloudflare-sdk
Source: https://github.com/getsentry/plugin-claude/tree/main/skills/sentry-cloudflare-sdk
Command: npx skills add https://github.com/getsentry/plugin-claude --skill sentry-cloudflare-sdk-getsentry

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare apps lack unified error monitoring and tracing across fetch, scheduled, queue, email, and Durable Object handlers. The Sentry Cloudflare SDK provides an opinionated, end-to-end setup that configures per-request initialization, auto-instrumentation, and easy integration with Cloudflare features (D1, DOs, workflows, and cron support).

Core Features & Use Cases

  • Automatic error monitoring and tracing across Workers, Pages, and Cloudflare runtimes.
  • Auto-instrumentation for Durable Objects, D1, Workflows, Queues, and cron-backed handlers.
  • Reference-guided configuration and cross-link guidance for companion frontends/backends.

Quick Start

Run the Cloudflare Sentry SDK wizard and follow the prompts to initialize Sentry in your project.

Frequently Asked Questions about sentry-cloudflare-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Sentry error monitoring to Cloudflare Workers?

Set up Sentry error monitoring in Cloudflare Workers by applying the Sentry Cloudflare SDK to configure per-request initialization and automatic error capture across fetch, scheduled, and queue handlers using withSentry.

Does Sentry SDK support tracing for Cloudflare Durable Objects and D1?

Yes, Sentry SDK supports tracing for Cloudflare Durable Objects and D1. It provides auto-instrumentation for DOs, D1, workflows, and cron triggers to ensure comprehensive tracing across all Cloudflare runtimes.

How do I configure Sentry for Cloudflare Pages?

Configure Sentry for Cloudflare Pages using the sentryPagesPlugin, which enables automatic error capture and HTTP tracing specifically for Pages runtimes as part of the unified Sentry Cloudflare SDK setup.

Can I capture queue and cron trigger errors in Sentry for my Cloudflare app?

Yes, you can capture queue and cron trigger errors in Sentry. The Sentry Cloudflare SDK provides auto-instrumentation across Cloudflare runtimes, including queue handlers and cron triggers, for centralized error monitoring.

Why do I need per-request initialization for Sentry in Cloudflare Workers?

Per-request initialization for Sentry in Cloudflare Workers is needed to isolate error monitoring and tracing context across concurrent executions, ensuring accurate HTTP tracing and automatic error capture without state leakage.

What is the best way to unify error monitoring across multiple Cloudflare runtimes?

The best way to unify error monitoring across multiple Cloudflare runtimes is using the Sentry Cloudflare SDK, which provides an opinionated end-to-end setup for auto-instrumenting Workers, Pages, D1, and Durable Objects in one configuration.