Files
klz-cables.com/.pnpm-store/v10/files/f3/bde0f5b887db77693c18ebd6bdebd12c31f95d56dc6658aa0786b9dcd69f5aebbde6158717e8e4ac5c1a03782150a849cee936e0fcd1248c1a2e842e50123b
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

55 lines
1.7 KiB
Plaintext

import type { Span } from '@opentelemetry/api';
import type { InstrumentationConfig } from '@opentelemetry/instrumentation';
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
export interface HonoResponseHookFunction {
(span: Span): void;
}
export interface HonoInstrumentationConfig extends InstrumentationConfig {
/** Function for adding custom span attributes from the response */
responseHook?: HonoResponseHookFunction;
}
/**
* Hono instrumentation for OpenTelemetry
*/
export declare class HonoInstrumentation extends InstrumentationBase<HonoInstrumentationConfig> {
constructor(config?: HonoInstrumentationConfig);
/**
* Initialize the instrumentation.
*/
init(): InstrumentationNodeModuleDefinition[];
/**
* Patches the module exports to instrument Hono.
*/
private _patch;
/**
* Patches the route handler to instrument it.
*/
private _patchHandler;
/**
* Patches the 'on' handler to instrument it.
*/
private _patchOnHandler;
/**
* Patches the middleware handler to instrument it.
*/
private _patchMiddlewareHandler;
/**
* Wraps a handler or middleware handler to apply instrumentation.
*/
private _wrapHandler;
/**
* Safely executes a function and handles errors.
*/
private _safeExecute;
/**
* Determines the handler type based on the result.
* @param result
* @private
*/
private _determineHandlerType;
/**
* Handles errors by setting the span status and recording the exception.
*/
private _handleError;
}
//# sourceMappingURL=instrumentation.d.ts.map