UNPKG

applicationinsights

Version:

Microsoft Application Insights module for Node.js

29 lines (28 loc) 1.32 kB
import { AzureMonitorExporterOptions } from "@azure/monitor-opentelemetry-exporter"; import { OTLPExporterConfig, InstrumentationOptions } from "../../types"; export declare class JsonConfig { private static _instance; enableAutoCollectExceptions: boolean; /** OTLP Trace Exporter Configuration */ otlpTraceExporterConfig?: OTLPExporterConfig; /** OTLP Metric Exporter Configuration */ otlpMetricExporterConfig?: OTLPExporterConfig; /** OTLP Log Exporter Configuration */ otlpLogExporterConfig?: OTLPExporterConfig; /** * Sets the state of performance tracking (enabled by default) * if true performance counters will be collected every second and sent to Azure Monitor */ enableAutoCollectPerformance?: boolean; /** The rate of telemetry items tracked that should be transmitted (Default 1.0) */ samplingRatio?: 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; static getInstance(): JsonConfig; constructor(); private _loadJsonFile; }