Skip to main content

from_config

Function from_config 

Source
pub fn from_config(
    cfg: &TelemetryConfig,
) -> Option<Arc<dyn TelemetryQueryProvider>>
Expand description

Build a TelemetryQueryProvider for the configured query authority, or None when pull is off. Resolves credentials from the matching [[telemetry.exporters]] row first, then env. This way kaizen telemetry configure --type=datadog is enough to drive pull — users do not have to also export DD_API_KEY in their shell.