This is the primary entry point for the distro. It sets up OpenTelemetry
providers and instrumentations, then attaches the configured exporters:
Azure Monitor (when options.azureMonitor is provided or the
APPLICATIONINSIGHTS_CONNECTION_STRING env var is set; explicitly disable
with options.azureMonitor.enabled = false)
OTLP HTTP (when OTEL_EXPORTER_OTLP_ENDPOINT is set)
A365 (when the resolved A365 config has enabled=true; the
ENABLE_A365_OBSERVABILITY_EXPORTER env var is only considered when
options.a365 is provided)
Initialize Microsoft OpenTelemetry distribution.
This is the primary entry point for the distro. It sets up OpenTelemetry providers and instrumentations, then attaches the configured exporters:
options.azureMonitoris provided or theAPPLICATIONINSIGHTS_CONNECTION_STRINGenv var is set; explicitly disable withoptions.azureMonitor.enabled = false)OTEL_EXPORTER_OTLP_ENDPOINTis set)enabled=true; theENABLE_A365_OBSERVABILITY_EXPORTERenv var is only considered whenoptions.a365is provided)