import { InstrumentationConfig } from "@opentelemetry/instrumentation"; import { Span } from "@opentelemetry/api"; //#region src/types.d.ts export type LogHookFunction = (span: Span, record: Record, level?: number) => void; export interface PinoInstrumentationConfig extends InstrumentationConfig { /** * Whether to disable the automatic sending of log records to the * OpenTelemetry Logs SDK. * @default false */ disableLogSending?: boolean; /** * Whether to disable the injection trace-context fields, and possibly other * fields from `logHook()`, into log records for log correlation. * @default false */ disableLogCorrelation?: boolean; /** * A function that allows injecting additional fields in log records. It is * called, as `logHook(span, record)`, for each log record emitted in a valid * span context. It requires `disableLogCorrelation` to be false. */ logHook?: LogHookFunction; /** * Configure the names of field injected into logs when there is span context * available. */ logKeys?: { traceId: string; spanId: string; traceFlags: string; }; } //#endregion //# sourceMappingURL=types.d.cts.map