Skip to content

Commit 88a49aa

Browse files
committed
chore(config): build the DogStatsD debug-log destination from typed config
Cut the debug-log destination over to the typed SalukiConfiguration model. DogStatsDDebugLogConfiguration builds from the dogstatsd debug-log slice and holds a Live view, so the destination reacts to metrics-stats changes through the live view instead of a string-key watch. run.rs hands it the typed subtree and mints the live view from the configuration system.
1 parent c6eeab7 commit 88a49aa

2 files changed

Lines changed: 140 additions & 224 deletions

File tree

  • bin/agent-data-plane/src/cli
  • lib/saluki-components/src/destinations/dsd_debug_log

bin/agent-data-plane/src/cli/run.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,9 @@ async fn add_dsd_pipeline_to_blueprint(
762762
HostEnrichmentConfiguration::from_environment_provider(env_provider.clone()),
763763
);
764764
let dsd_debug_log_config = DogStatsDDebugLogConfiguration::from_configuration(
765-
config,
765+
&saluki.domains.dogstatsd.debug_log,
766766
PlatformSettings::get_default_dogstatsd_log_file_path(),
767+
config_system.live(|c| &c.domains.dogstatsd.debug_log),
767768
)
768769
.error_context("Failed to configure DogStatsD debug log destination.")?;
769770
let dsd_stats_config = DogStatsDStatisticsConfiguration::new();

0 commit comments

Comments
 (0)