Iskra API Reference
    Preparing search index...

    Interface OtelConfig

    interface OtelConfig {
        enabled?: boolean;
        endpoint?: string;
        environment?: string;
        instrumentations?: Record<
            string,
            { enabled?: boolean; [option: string]: unknown },
        >;
        metricIntervalMs?: number;
        resourceAttributes?: Record<string, string>;
        serviceName?: string;
        serviceVersion?: string;
    }
    Index
    enabled?: boolean

    Defaults to true when otel config is present

    endpoint?: string

    OTLP endpoint URL. Defaults to http://localhost:4318; use https:// for a collector on another host.

    environment?: string

    Deployment environment resource attribute. Defaults to NODE_ENV

    instrumentations?: Record<
        string,
        { enabled?: boolean; [option: string]: unknown },
    >

    Options of each auto-instrumentation, by package name, passed to getNodeAutoInstrumentations(): { enabled: false }, or its own options ('@opentelemetry/instrumentation-http': { ignoreIncomingRequestHook, redactedQueryParams }). The HTTP one redacts SECRET_QUERY_PARAMS in exported URLs unless redactedQueryParams says otherwise.

    metricIntervalMs?: number

    Metric export interval in ms. Defaults to 60000

    resourceAttributes?: Record<string, string>

    Additional resource attributes

    serviceName?: string

    Overrides app name for the service.name resource attribute

    serviceVersion?: string

    Service version resource attribute