import { Attributes } from "@opentelemetry/api"; import { InstrumentationConfig } from "@opentelemetry/instrumentation"; //#region src/errors/types.d.ts type ApplyCustomAttributesFunction = (error: Error | string) => Attributes; /** * ErrorsInstrumentation Configuration */ interface ErrorsInstrumentationConfig extends InstrumentationConfig { /** * Optional callback invoked for each captured error or unhandled rejection. * Returned attributes are merged onto the emitted log record (after the * standard `exception.*` attributes, so they may override them). */ applyCustomAttributes?: ApplyCustomAttributesFunction; } //#endregion export { ApplyCustomAttributesFunction, ErrorsInstrumentationConfig }; //# sourceMappingURL=types.d.ts.map