Crate datadog_agent_config

Crate datadog_agent_config 

Source

Re-exports§

pub use env_decode::EnvDecode;
pub use env_provider::DatadogEnvProvider;
pub use env_reader::apply_datadog_env;
pub use env_reader::apply_datadog_env_vars;
pub use env_reader::apply_env_at_path;
pub use env_reader::datadog_leaf_paths;
pub use env_reader::EnvKey;

Modules§

classifier
Configuration key classifier.
env_decode
Decoders that turn a raw environment-variable string into the JSON shape a schema leaf declares. Decode a raw environment-variable string into the JSON shape the schema declares for a leaf.
env_provider
A Figment provider that reads the schema’s environment variables into their canonical shape. A Figment provider that reads the Datadog schema’s environment variables into their canonical shape.
env_reader
Builds the typed configuration base by reading environment variables directly and decoding them into the nested configuration shape. Builds the typed configuration base from environment variables.

Structs§

DatadogConfiguration
TranslateError
An error produced while translating a witnessed Datadog configuration value into the ADP-native model. Names the offending Datadog key, and optionally a human-readable note and/or the underlying error object.
TranslateErrors
Every error drive recorded, non-empty by construction.

Traits§

DatadogConfigWitness
Witness trait over every supported Datadog configuration key.

Functions§

cast_to_string
Renders a JSON value as a string leaf (cast.ToStringE).
drive
Drives a consumer over every supported key in config, calling each consume_<key> exactly once with the value navigated from config.