import { InstrumentationBase, InstrumentationConfig } from "@opentelemetry/instrumentation"; import { Attributes } from "@opentelemetry/api"; //#region src/instrumentation.d.ts export interface GlobalErrorsInstrumentationConfig extends InstrumentationConfig { /** * A callback function for adding custom attributes to the log event when an error is recorded. * * @param {Error} error - The error object that is being recorded. * @returns {Attributes} - The attributes to add to the span. */ applyCustomAttributes?: (error: Error | string) => Attributes; } export declare class ExceptionInstrumentation extends InstrumentationBase { private _onErrorHandler?; constructor(config?: GlobalErrorsInstrumentationConfig); init(): void; onError(event: ErrorEvent | PromiseRejectionEvent): void; disable(): void; enable(): void; } //#endregion //# sourceMappingURL=instrumentation.d.cts.map