Libraries v5.2.0
    Preparing search index...

    Interface OtelLogSinkOptions

    Configuration for otelLogSink.

    interface OtelLogSinkOptions {
        exceptionPolicy?: ExceptionPolicy;
        loggerName?: string;
        loggerVersion?: string;
        sanitizeAttribute?: (key: string, value: unknown) => unknown;
        sanitizeBody?: (body: string) => string | undefined;
    }
    Index
    exceptionPolicy?: ExceptionPolicy

    Automatic exception details.

    'omit'
    
    loggerName?: string

    Logger name (InstrumentationScope) under which records are emitted via the OTel Logs API.

    '@cleverbrush/otel'
    
    loggerVersion?: string

    Optional logger version.

    sanitizeAttribute?: (key: string, value: unknown) => unknown

    Redact every attribute, including automatic template and exception fields. Return undefined to drop it. Templates are rendered again from redacted properties; sanitizeBody also covers literal message text.

    sanitizeBody?: (body: string) => string | undefined

    Redact the final rendered body; return undefined to omit it.