import type { InstrumentationConfig } from '@opentelemetry/instrumentation'; import { InstrumentationBase, InstrumentationNodeModuleDefinition } from '@opentelemetry/instrumentation'; /** * Custom instrumentation for nestjs schedule module. * * This hooks into the `@Cron`, `@Interval`, and `@Timeout` decorators, which are applied on scheduled task handlers. * It forks the isolation scope for each handler invocation, preventing data leakage to subsequent HTTP requests. */ export declare class SentryNestScheduleInstrumentation extends InstrumentationBase { constructor(config?: InstrumentationConfig); /** * Initializes the instrumentation by defining the modules to be patched. */ init(): InstrumentationNodeModuleDefinition; /** * Wraps the @Cron decorator. */ private _getCronFileInstrumentation; /** * Wraps the @Interval decorator. */ private _getIntervalFileInstrumentation; /** * Wraps the @Timeout decorator. */ private _getTimeoutFileInstrumentation; /** * Creates a wrapper function for a schedule decorator (@Cron, @Interval, or @Timeout). */ private _createWrapDecorator; } //# sourceMappingURL=sentry-nest-schedule-instrumentation.d.ts.map