Package version:

Interface AzureMonitorOpenTelemetryOptions

Azure Monitor OpenTelemetry Options

interface AzureMonitorOpenTelemetryOptions {
    azureMonitorExporterOptions?: any;
    browserSdkLoaderOptions?: BrowserSdkLoaderOptions;
    enableLiveMetrics?: boolean;
    enablePerformanceCounters?: boolean;
    enableStandardMetrics?: boolean;
    enableTraceBasedSamplingForLogs?: boolean;
    instrumentationOptions?: InstrumentationOptions;
    logRecordProcessors?: {};
    resource?: any;
    samplingRatio?: number;
    spanProcessors?: {};
}

Properties

azureMonitorExporterOptions?: any

Azure Monitor Exporter Configuration

browserSdkLoaderOptions?: BrowserSdkLoaderOptions

Application Insights Web Instrumentation options (enabled, connectionString, src, config)

enableLiveMetrics?: boolean

Enable Live Metrics feature (Default false)

enablePerformanceCounters?: boolean

Enable Performance Counter feature

enableStandardMetrics?: boolean

Enable Standard Metrics feature (Default true)

enableTraceBasedSamplingForLogs?: boolean

Enable log sampling based on trace (Default true)

instrumentationOptions?: InstrumentationOptions

OpenTelemetry Instrumentations options included as part of Azure Monitor (azureSdk, http, mongoDb, mySql, postgreSql, redis, redis4)

logRecordProcessors?: {}

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

resource?: any

OpenTelemetry Resource

samplingRatio?: number

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

spanProcessors?: {}

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