Skip to main content

Module agent_stream

Module agent_stream 

Source
Expand description

Converts the Agent’s config-stream wire events into saluki_config updates.

The running process and the library’s corpus replay tests share this path. Tests can construct the exact snapshot and update events the Agent sends without depending on the binary crate.

Constants§

AGENT_DECLARED_ONLY_SOURCE
A value neither set by the user nor supplied with a schema default.
AGENT_DEFAULT_SOURCE
Sources that indicate the Agent supplied the value rather than an operator.
AGENT_UNSET_SOURCES
The sources that mark a setting as an Agent-supplied default rather than an explicit value.

Functions§

config_event_to_update
Converts one event from the Agent’s config stream into the update it carries.
proto_value_to_serde_value
Recursively converts a google::protobuf::Value into a serde_json::Value.
setting_to_config_setting
Converts an Agent wire setting to a ConfigSetting, preserving whether its source is a default.
snapshot_to_settings
Converts a ConfigSnapshot into the settings it carries.