Skip to main content

Module schema_gen

Module schema_gen 

Source
Expand description

Loads Datadog Agent configuration schemas for build-time code generation.

Resolves schema file references and incorporates the OTel receiver schema, producing a map from dotted YAML paths to FieldInfo.

Structs§

FieldInfo
Parsed metadata for a single config field.
FormerName
A former name of a schema setting, from its renamed_from.

Enums§

EnvBinding
How a config field is reachable through an environment variable.
EnvParser
A named environment-variable parser declared by the schema’s env_parser key.
FieldType
Value type of a config field, as declared in the schema YAML.

Functions§

env_var_names
The environment variables the Agent reads for the setting at key, highest priority first.
escape_str
Escape backslashes and double-quotes in s for use inside a Rust string literal.
former_names
Every former name of every setting in schema, grouped by setting and highest priority first within a setting.
load_schema
Load and flatten the schema at schema_path into a yaml_path → FieldInfo map.
load_schema_from_value
Builds the flat yaml_path → FieldInfo map from a pre-loaded composed schema.
standard_env_name
Derives the Agent’s standard environment name for a key: DD_ + UPPER(dotted_path).