load_schema

Function load_schema 

Source
pub fn load_schema(
    datadog_schema: &Path,
    otel_schema_dir: &Path,
) -> IndexMap<String, FieldInfo>
Expand description

Load and flatten the schema at schema_path into a yaml_path → FieldInfo map.

Resolves $ref: <filename> entries by loading the referenced files from the same directory. The map is sorted by key. Panics if the file cannot be read or parsed.