diff --git a/dev-packages/cloudflare-integration-tests/suites/hono-sdk/test.ts b/dev-packages/cloudflare-integration-tests/suites/hono-sdk/test.ts index 4f8472ee8164..c1f17ddb6d19 100644 --- a/dev-packages/cloudflare-integration-tests/suites/hono-sdk/test.ts +++ b/dev-packages/cloudflare-integration-tests/suites/hono-sdk/test.ts @@ -17,7 +17,7 @@ it('Hono app captures parametrized errors (Hono SDK)', async ({ signal }) => { stacktrace: { frames: expect.any(Array), }, - mechanism: { type: 'auto.faas.hono.error_handler', handled: false }, + mechanism: { type: 'auto.http.hono.context_error', handled: false }, }, ], }, diff --git a/dev-packages/node-integration-tests/suites/hono-sdk/test.ts b/dev-packages/node-integration-tests/suites/hono-sdk/test.ts index df17e3af48aa..97c8b3481dc5 100644 --- a/dev-packages/node-integration-tests/suites/hono-sdk/test.ts +++ b/dev-packages/node-integration-tests/suites/hono-sdk/test.ts @@ -57,7 +57,7 @@ describe('hono-sdk (Node)', () => { type: 'Error', value: 'Test error from Hono app', mechanism: { - type: 'auto.faas.hono.error_handler', + type: 'auto.http.hono.context_error', handled: false, }, }, diff --git a/packages/hono/src/shared/middlewareHandlers.ts b/packages/hono/src/shared/middlewareHandlers.ts index d5c13b22bcec..a470733b47a8 100644 --- a/packages/hono/src/shared/middlewareHandlers.ts +++ b/packages/hono/src/shared/middlewareHandlers.ts @@ -44,7 +44,7 @@ export function responseHandler(context: Context): void { if (context.error) { getClient()?.captureException(context.error, { - mechanism: { handled: false, type: 'auto.faas.hono.error_handler' }, + mechanism: { handled: false, type: 'auto.http.hono.context_error' }, }); } }