Crate agent_data_plane_config_system

Crate agent_data_plane_config_system 

Source
Expand description

The configuration system: translation and subscription of external configuration sources into an ADP-typed model.

This crate turns configuration sources into SalukiConfiguration:

  • the typed Datadog source (DatadogConfiguration), whose supported keys the generated drive feeds to DatadogTranslator (a DatadogConfigWitness) one key at a time, and
  • the Saluki-schema-only source (SalukiOnly), whose values seed the fields the Datadog schema does not cover.

ConfigurationSystem is the entry point: it translates a raw source map into the initial configuration and, when the map streams updates, keeps that configuration current. This is the only ADP production crate that bridges the source configuration to the model; it constructs no components and does not depend on saluki-components.

Sources are layered as SourceTrees, which keep each value together with the provenance of that value. That is what lets a configuration producer’s own defaults be layered over local configuration without shadowing it, and what lets translation resolve a setting whose meaning depends on whether it was set explicitly.

Structs§

ConfigurationSystem
The runtime configuration, translated from the raw sources and kept current.
EnvironmentProvider
A Figment provider carrying every modeled configuration key set in the environment, at its canonical path.
LoadedConfiguration
Local configuration prepared before a runtime authority is selected.

Enums§

EnvPrecedence
Where environment variables sit relative to the configuration file.
Error
An error building the translated configuration from the raw sources.