Files
klz-cables.com/.pnpm-store/v10/files/3c/f3cd272c289f8d2d07189a5da21a45f552618aa584d744ccabdb2cd6ae355f479535b940dd788bd7e44c7d02e0cbb2e1ee23fca9b883897aacc958160644f1
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

52 lines
1.5 KiB
Plaintext

import { HonoInstrumentation } from './instrumentation';
import type { 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