Expand description
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.
[DATADOG_ENV_KEYS] maps the Agent’s declared variable names to nested configuration paths;
paths are not inferred by splitting names. apply_datadog_env_vars decodes each key’s first
non-empty environment value using crate::env_decode. Callers choose precedence with overwrite.
Structs§
- EnvKey
- One modeled configuration key and how to read it from the environment.
- Renamed
Key - A former name of a Datadog schema setting, from the schema’s
renamed_from.
Functions§
- apply_
datadog_ env - Decodes process environment variables into modeled Datadog paths in
base. - apply_
datadog_ env_ vars - Decodes supplied environment variables into modeled Datadog paths in
base, and returns the name of each variable that supplied a key of [DATADOG_ENV_KEYS], as written invars. - apply_
env_ at_ path - Decodes one key from the process environment into
baseat the supplied path. - apply_
env_ at_ path_ vars - Decodes one key from supplied environment variables into
baseat the supplied path. - datadog_
leaf_ paths - The nested path of every modeled Datadog key.
- datadog_
renamed_ keys - Every former name of a Datadog schema setting, modeled or not.