import type { Context } from '@opentelemetry/api'; import type { InstrumentationScope } from '@opentelemetry/core'; import type { SdkLogRecord } from './export/SdkLogRecord'; import type { SeverityNumber } from '@opentelemetry/api-logs'; export interface LogRecordProcessor { /** * Forces to export all finished log records */ forceFlush(): 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: SdkLogRecord, 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; } //# sourceMappingURL=LogRecordProcessor.d.ts.map