@jenova-marie/wonder-logger - v1.0.12
    Preparing search index...

    Interface OtelTransportOptions

    interface OtelTransportOptions {
        serviceName: string;
        serviceVersion?: string;
        serviceInstanceId?: string;
        environment?: string;
        endpoint?: string;
        resourceAttributes?: Record<string, string | number | boolean>;
        level?: Level;
        exportIntervalMillis?: number;
    }
    Index

    Properties

    serviceName: string

    Service name for OTEL resource attributes

    serviceVersion?: string

    Service version for OTEL resource attributes

    '1.0.0'
    
    serviceInstanceId?: string

    Service instance ID for OTEL resource attributes

    ${serviceName}-${process.pid}

    environment?: string

    Environment name (development, staging, production, etc.)

    process.env.NODE_ENV || 'development'
    
    endpoint?: string

    OTLP endpoint URL

    process.env.OTEL_EXPORTER_OTLP_LOGS_ENDPOINT || 'http://localhost:4318/v1/logs'
    
    resourceAttributes?: Record<string, string | number | boolean>

    Additional resource attributes

    level?: Level

    Log level for this transport

    'info'
    
    exportIntervalMillis?: number

    Export interval in milliseconds

    5000