import { ReadWriteLogRecord } from "./export/ReadWriteLogRecord.mjs"; import { ForceFlushOptions } from "./types.mjs"; import { Context, SeverityNumber } from "@opentelemetry/api"; import { InstrumentationScope } from "@opentelemetry/core"; //#region src/LogRecordProcessor.d.ts interface LogRecordProcessor { /** * Forces to export all finished log records */ forceFlush(options?: ForceFlushOptions): Promise; /** * Called when a {@link LogRecord} is emit * @param logRecord the ReadWriteLogRecord that just emitted. * @param context the current Context, or an empty Context if the Logger was obtained with include_trace_context=false */ onEmit(logRecord: ReadWriteLogRecord, context?: Context): void; /** * Shuts down the processor. Called when SDK is shut down. This is an * opportunity for processor to do any cleanup required. */ shutdown(): Promise; /** * Tells if the logger is enabled for the given context, severity number and event * name if provided. * @param options */ enabled?(options: { context: Context; instrumentationScope: InstrumentationScope; severityNumber?: SeverityNumber; eventName?: string; }): boolean; } //#endregion export { LogRecordProcessor }; //# sourceMappingURL=LogRecordProcessor.d.mts.map