Files
klz-cables.com/.pnpm-store/v10/files/24/9698d504d24caedbca51acb5cfdabb20d3fcf0396a576e43dbefb886627818e4bdce515a9b80122a5b6659e8f0dd250e8856dc172b18ad37ba1ab24f4d4230
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

53 lines
1.6 KiB
Plaintext

import { HonoInstrumentation } from './instrumentation';
import { Context, MiddlewareHandlerInterface } from './types';
export declare const instrumentHono: ((options?: unknown) => HonoInstrumentation) & {
id: string;
};
/**
* Adds Sentry tracing instrumentation for [Hono](https://hono.dev/).
*
* If you also want to capture errors, you need to call `setupHonoErrorHandler(app)` after you set up your Hono server.
*
* For more information, see the [hono documentation](https://docs.sentry.io/platforms/javascript/guides/hono/).
*
* @example
* ```javascript
* const Sentry = require('@sentry/node');
*
* Sentry.init({
* integrations: [Sentry.honoIntegration()],
* })
* ```
*/
export declare const honoIntegration: () => import("@sentry/core").Integration;
interface HonoHandlerOptions {
/**
* Callback method deciding whether error should be captured and sent to Sentry
* @param error Captured Hono error
*/
shouldHandleError: (context: Context) => boolean;
}
/**
* Add a Hono error handler to capture errors to Sentry.
*
* @param app The Hono instances
* @param options Configuration options for the handler
*
* @example
* ```javascript
* const Sentry = require('@sentry/node');
* const { Hono } = require("hono");
*
* const app = new Hono();
*
* Sentry.setupHonoErrorHandler(app);
*
* // Add your routes, etc.
* ```
*/
export declare function setupHonoErrorHandler(app: {
use: MiddlewareHandlerInterface;
}, options?: Partial<HonoHandlerOptions>): void;
export {};
//# sourceMappingURL=index.d.ts.map