Skip to content

Commit 3c89525

Browse files
committed
ref(node): Adjust ErrorHandler event mechanism
1 parent dbb1413 commit 3c89525

File tree

2 files changed

+5
-1
lines changed
  • dev-packages/node-integration-tests/suites/tracing/hono
  • packages/node/src/integrations/tracing/hono

2 files changed

+5
-1
lines changed

dev-packages/node-integration-tests/suites/tracing/hono/test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,10 @@ describe('hono tracing', () => {
213213
exception: {
214214
values: [
215215
{
216+
mechanism: {
217+
type: 'auto.middleware.hono',
218+
handled: false,
219+
},
216220
type: 'Error',
217221
value: 'response 500',
218222
},

packages/node/src/integrations/tracing/hono/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function honoErrorHandler(options?: Partial<HonoHandlerOptions>): MiddlewareHand
114114
if (shouldHandleError(context)) {
115115
(context.res as { sentry?: string }).sentry = captureException(context.error, {
116116
mechanism: {
117-
type: 'hono',
117+
type: 'auto.middleware.hono',
118118
handled: false,
119119
},
120120
});

0 commit comments

Comments
 (0)