@sentry/node
Version:
Sentry Node SDK using OpenTelemetry for performance instrumentation
17 lines • 1.12 kB
TypeScript
import type { InstrumentationConfig } from '@opentelemetry/instrumentation';
import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation';
import { type ExpressIntegrationOptions, type ExpressHandlerOptions } from '@sentry/core';
export { expressErrorHandler } from '@sentry/core';
export declare function setupExpressErrorHandler(app: {
use: (middleware: any) => unknown;
}, options?: ExpressHandlerOptions): void;
export type ExpressInstrumentationConfig = InstrumentationConfig & Omit<ExpressIntegrationOptions, 'express' | 'onRouteResolved'>;
export declare const instrumentExpress: ((options?: ExpressInstrumentationConfig | undefined) => ExpressInstrumentation) & {
id: string;
};
export declare class ExpressInstrumentation extends InstrumentationBase<ExpressInstrumentationConfig> {
constructor(config?: ExpressInstrumentationConfig);
init(): InstrumentationNodeModuleDefinition;
}
export declare const expressIntegration: (options?: ExpressInstrumentationConfig | undefined) => import("@sentry/core").Integration;
//# sourceMappingURL=express.d.ts.map