Crate datadog_agent_config

Crate datadog_agent_config 

Source

Re-exports§

pub use env_decode::EnvDecode;
pub use env_overlay::apply_env_overlay;
pub use env_overlay::EnvOverlayMode;
pub use env_reader::apply_datadog_env;
pub use env_reader::apply_env_at_path;
pub use env_reader::datadog_leaf_paths;
pub use env_reader::EnvKey;
pub use remapper::DatadogRemapper;
pub use remapper::KEY_ALIASES;

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_overlay
Relocates underscore-joined environment keys into the nested Datadog configuration shape. Overlay flat environment-variable keys onto the nested Datadog configuration 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.
remapper
Compatibility support for the by-key configuration path (key aliases and environment remapping). Compatibility support for the by-key configuration path: nested-to-flat key aliases and an environment-variable remapper.

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§

drive
Drives a consumer over every supported key in config, calling each consume_<key> exactly once with the value navigated from config.