Skip to content

onError handler always captures unhandled error events (adding honoInstrumentation) #17717

@cobyeastwood183

Description

@cobyeastwood183

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/cloudflare - hono

SDK Version

10.12.0

Framework Version

4.9.7

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://github.com/cobyeastwood183/cloudflare-hono-test

Steps to Reproduce

Expected Result

Expecting onError handler allows me to choose which errors to capture? Here are our set up docs.

Actual Result

The onError handler always captures unhandled error events in Sentry, even when Sentry.captureException is never called, instead it gets captured by errorHandler.

Additional Context

https://sentry.zendesk.com/agent/tickets/162001

Metadata

Metadata

Assignees

Labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions