TODO
TODO
const { AzureMonitorOpenTelemetryClient, AzureMonitorOpenTelemetryOptions } = require("@azure/monitor-opentelemetry");
const options: AzureMonitorOpenTelemetryOptions = {
azureMonitorExporterConfig: {
connectionString:
process.env["APPLICATIONINSIGHTS_CONNECTION_STRING"] || "<your connection string>",
},
}
const azureMonitorClient = new AzureMonitorOpenTelemetryClient(options);Configuration options for the client include:
- Storage Direcotry
- Offline Storage
- Connnection String
- OTLP Trace Exporter Config
- OTLP Metric Exporter Config
- OTLP Log Exporter Config
- Sampling Ratio
- Auto Collect Standard Metrics
- Auto Collect Performance
- Instrumentation Options
- OpenTelemetry Resource
See the full set of configuration options.
See the disto repository's samples.