OpenTelemetry SDK
    Preparing search index...

    Interface LogRecordProcessor

    interface LogRecordProcessor {
        enabled?(
            options: {
                context: Context;
                eventName?: string;
                instrumentationScope: core.InstrumentationScope;
                severityNumber?: SeverityNumber;
            },
        ): boolean;
        forceFlush(options?: ForceFlushOptions): Promise<void>;
        onEmit(logRecord: ReadWriteLogRecord, context?: Context): void;
        shutdown(): Promise<void>;
    }

    Implemented by

    Index
    • Shuts down the processor. Called when SDK is shut down. This is an opportunity for processor to do any cleanup required.

      Returns Promise<void>