@azure/monitor-opentelemetry
Version:
Azure Monitor OpenTelemetry (Node.js)
25 lines • 955 B
TypeScript
import type { AzureMonitorOpenTelemetryOptions } from "../types.js";
import type { Sampler } from "@opentelemetry/sdk-trace-base";
/**
* Azure Monitor OpenTelemetry Client Configuration through Env variables
* @internal
*/
export declare class EnvConfig 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. (Default undefined)*/
tracesPerSecond?: number;
/** Custom OpenTelemetry sampler derived from env configuration */
sampler?: Sampler;
private static instance;
/** Get Singleton instance */
static getInstance(): EnvConfig;
/**
* Initializes a new instance of the EnvConfig class.
*/
constructor();
private _applyMicrosoftSampler;
private _applyOtelSampler;
private _parseProbability;
}
//# sourceMappingURL=envConfig.d.ts.map