@microsoft/opentelemetry
    Preparing search index...

    Interface MicrosoftOpenTelemetryOptions

    Microsoft OpenTelemetry Options

    Top-level configuration for the Microsoft OpenTelemetry distribution. Global options (resource, sampling, instrumentations, processors) live here. Backend-specific options are scoped under their respective keys.

    interface MicrosoftOpenTelemetryOptions {
        a365?: A365Options;
        azureMonitor?: AzureMonitorOpenTelemetryOptions;
        enableConsoleExporters?: boolean;
        instrumentationOptions?: InstrumentationOptions;
        logRecordProcessors?: LogRecordProcessor[];
        metricReaders?: MetricReader[];
        resource?: Resource;
        samplingRatio?: number;
        spanProcessors?: SpanProcessor[];
        tracesPerSecond?: number;
        views?: ViewOptions[];
    }
    Index

    Properties

    A365 observability configuration. When provided with enabled: true, A365 export is enabled.

    Azure Monitor configuration. When provided, Azure Monitor export is enabled.

    enableConsoleExporters?: boolean

    Enable console exporters for traces, metrics, and logs. Auto-enabled when no other exporter is active.

    instrumentationOptions?: InstrumentationOptions

    OpenTelemetry Instrumentations configuration

    logRecordProcessors?: LogRecordProcessor[]

    An array of log record processors to register to the logger provider.

    metricReaders?: MetricReader[]

    An array of metric readers to register to the meter provider.

    resource?: Resource

    OpenTelemetry Resource

    samplingRatio?: number

    The rate of telemetry items tracked that should be transmitted (Default 1.0)

    spanProcessors?: SpanProcessor[]

    An array of span processors to register to the tracer provider.

    tracesPerSecond?: number

    The maximum number of traces to sample per second (Default 5). Set to 0 to use samplingRatio instead.

    views?: ViewOptions[]

    An array of metric views to register to the meter provider.