Skip to main content

@latimer-woods-tech/monitoring

Sentry integration scoped to Cloudflare Workers. Depends on @latimer-woods-tech/errors.

Installation

Bindings required

API

initSentry(opts)

Initializes the Sentry client for the current request lifecycle.

captureException(client, error, context?)

Reports a FactoryError or unknown error to Sentry.

withSentry(handler, opts)

Wraps a Hono handler to automatically catch and report unhandled errors.

Example