@azure/monitor-opentelemetry
Version:
Azure Monitor OpenTelemetry (Node.js)
38 lines • 1.33 kB
TypeScript
import type { Sampler } from "@opentelemetry/sdk-trace-base";
import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-base";
import type { InternalConfig } from "../shared/config.js";
import type { MetricHandler } from "../metrics/handler.js";
import { AzureMonitorSpanProcessor } from "./spanProcessor.js";
import type { Instrumentation } from "@opentelemetry/instrumentation";
/**
* Azure Monitor OpenTelemetry Trace Handler
*/
export declare class TraceHandler {
private _batchSpanProcessor;
private _azureSpanProcessor;
private _azureExporter;
private _instrumentations;
private _config;
private _metricHandler;
private _azureFunctionsHook;
private _sampler;
/**
* Initializes a new instance of the TraceHandler class.
* @param _config - Configuration.
* @param _metricHandler - MetricHandler.
*/
constructor(config: InternalConfig, metricHandler: MetricHandler);
getSampler(): Sampler;
getBatchSpanProcessor(): BatchSpanProcessor;
getAzureMonitorSpanProcessor(): AzureMonitorSpanProcessor;
getInstrumentations(): Instrumentation[];
/**
* Shutdown handler
*/
shutdown(): Promise<void>;
/**
* Start auto collection of telemetry
*/
private _initializeInstrumentations;
}
//# sourceMappingURL=handler.d.ts.map