---
title: "Cloudflare Workers"
description: "Learn how to use Sentry to monitor errors and performance in your Cloudflare Workers and Pages applications."
url: https://docs.sentry.io/integrations/cloud-monitoring/cloudflare-workers/
---

# Cloudflare Workers

Sentry's Cloudflare Workers SDK (`@sentry/cloudflare`) provides error monitoring, performance tracing, and logging for applications running on Cloudflare Workers and Cloudflare Pages. The SDK wraps your Worker or Pages handler to automatically capture errors and trace requests.

## [Key Features](https://docs.sentry.io/integrations/cloud-monitoring/cloudflare-workers.md#key-features)

* Automatic error and performance monitoring for Workers and Pages

* First-class instrumentation for Cloudflare-specific features:

  * **D1** (serverless SQL database)
  * **Durable Objects** (stateful actors with RPC trace propagation)
  * **Workflows** (multi-step workflows with hibernation-safe tracing)

* Framework support for Astro, Hono, Hydrogen, Next.js, Nuxt, Remix, SvelteKit, and TanStack Start on Cloudflare

## [Get Started](https://docs.sentry.io/integrations/cloud-monitoring/cloudflare-workers.md#get-started)

Install the `@sentry/cloudflare` package and configure the SDK by wrapping your Worker or Pages handler with `Sentry.withSentry()` or `Sentry.sentryPagesPlugin()`.

For full installation and configuration instructions, see the [Cloudflare Workers SDK documentation](https://docs.sentry.io/platforms/javascript/guides/cloudflare.md).
