@azure/monitor-opentelemetry
Version:
Azure Monitor OpenTelemetry (Node.js)
51 lines • 2.16 kB
TypeScript
import type { Resource } from "@opentelemetry/resources";
import type { BrowserSdkLoaderOptions, AzureMonitorOpenTelemetryOptions, InstrumentationOptions } from "../types.js";
import type { AzureMonitorExporterOptions } from "@azure/monitor-opentelemetry-exporter";
/**
* Azure Monitor OpenTelemetry Client Configuration
*/
export declare class InternalConfig implements AzureMonitorOpenTelemetryOptions {
/** The rate of telemetry items tracked that should be transmitted (Default 1.0) */
samplingRatio: number;
/** The maximum number of spans to sample per second. */
tracesPerSecond?: number;
/** Azure Monitor Exporter Configuration */
azureMonitorExporterOptions: AzureMonitorExporterOptions;
/**
* OpenTelemetry Instrumentations configuration included as part of Azure Monitor (azureSdk, http, mongoDb, mySql, postgreSql, redis, redis4)
*/
instrumentationOptions: InstrumentationOptions;
/** Enable Live Metrics feature */
enableLiveMetrics?: boolean;
/** Enable Standard Metrics feature */
enableStandardMetrics?: boolean;
/** Enable log sampling based on trace (Default true) */
enableTraceBasedSamplingForLogs?: boolean;
/** Enable Performance Counter feature */
enablePerformanceCounters?: boolean;
/** Metric export interval in milliseconds */
metricExportIntervalMillis: number;
private _resource;
set resource(resource: Resource);
/**
*Get OpenTelemetry Resource
*/
get resource(): Resource;
browserSdkLoaderOptions: BrowserSdkLoaderOptions;
/**
* Initializes a new instance of the AzureMonitorOpenTelemetryOptions class.
*/
constructor(options?: AzureMonitorOpenTelemetryOptions);
private _mergeEnvConfig;
private _mergeJsonConfig;
private _setDefaultResource;
/**
* Initialize VM resource detection asynchronously to avoid warnings
* about accessing resource attributes before async attributes settle
*/
private _initializeVmResourceAsync;
calculateMetricExportInterval(options?: {
collectionInterval: number;
}): number;
}
//# sourceMappingURL=config.d.ts.map