Skip to content

configFromEnv

configFromEnv(env): TelemetryConfig

Defined in: packages/core/src/telemetry.ts:355

Reads OTLP configuration from environment variables.

Telemetry is enabled when OTEL_EXPORTER_OTLP_ENDPOINT (or a per-signal endpoint) is present, or when console tracing is enabled. OTEL_SDK_DISABLED=true and ARONA_TELEMETRY=0 disable every exporter.

Set ARONA_TELEMETRY_CONSOLE=true (or OTEL_TRACES_EXPORTER=console) to print finished spans to the console instead of exporting them over OTLP.

Readonly<Record<string, string | undefined>>

TelemetryConfig