Skip to content

chore(agent-data-plane): clean up display name/flavor used when registered via RAR#1658

Merged
tobz merged 1 commit into
mainfrom
tobz/fix-rar-display-name-flavor
May 14, 2026
Merged

chore(agent-data-plane): clean up display name/flavor used when registered via RAR#1658
tobz merged 1 commit into
mainfrom
tobz/fix-rar-display-name-flavor

Conversation

@tobz
Copy link
Copy Markdown
Member

@tobz tobz commented May 14, 2026

Summary

This PR cleans up the names we send over when registering with RAR to match other subagents.

In the Core Agent, a log is emitted whenever a remote agent registers via RAR:

... | Remote agent 'agent-data-plane' (flavor: agent-data-plane, session_id: ...) registered. (exposed services: [...])
... | Remote agent 'Security Agent' (flavor: security_agent, session_id: ...) registered. (exposed services: [...])

As seen above, ADP was registering in a way where its display/human-friendly name was actually more of a machine-friendly name, and the "flavor" (the machine-friendly variant) was subtly different than other remote agents, using hyphens instead of underscores.

This PR simply fixes that. We derive both the display name and flavor from saluki-metadata (instead of hardcoding the flavor), and properly format the values as necessary to match other remote agents. After this PR, we see the following:

... | Remote agent 'Agent Data Plane' (flavor: agent_data_plane, session_id: ...) registered. (exposed services: [...])

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

How did you test this PR?

Manually ran the adp-config-stream integration test before and after making the change, and observed that after the change, the registration log message showed the intended display name and flavor for ADP.

References

DADP-2

@tobz tobz requested a review from a team as a code owner May 14, 2026 18:57
@tobz tobz added the type/chore Updates to dependencies or general "administrative" tasks necessary to maintain the codebase/repo. label May 14, 2026
@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented May 14, 2026

Binary Size Analysis (Agent Data Plane)

Target: c1313d0 (baseline) vs 0270045 (comparison) diff
Analysis Type: Stripped binaries (debug symbols excluded)
Baseline Size: 37.31 MiB
Comparison Size: 37.32 MiB
Size Change: +216 B (+0.00%)
Pass/Fail Threshold: +5%
Result: PASSED ✅

Changes by Module

Module File Size Symbols
[Unmapped] -1.74 KiB 1
tower +1.38 KiB 2
anon.1f92070954cd764eaf703c4d91d9aa51.110.llvm.4697276323575673218 +1.34 KiB 1
anon.008f2eb7666b60adbf212aa1a1a9babf.1039.llvm.1675885107082596853 -1.34 KiB 1
anon.dd5b1f3bfca0f8b909ebdc618a7bf277.21.llvm.1618916015308137990 +1.24 KiB 1
anon.ff7950eb5cfb17ddfcd9e2b2a5594f26.97.llvm.12774116853458931105 -1.24 KiB 1
anon.cef2c965820659cc217e63c0fca83ae7.45.llvm.8368023546332325995 -1.23 KiB 1
anon.ff4bc08d9b10773e00ce3c01f8ab2318.684.llvm.507633540418220019 +1.23 KiB 1
anon.0e53b40e76a61c92f16686d60014df25.227.llvm.16329846828282783999 -1.07 KiB 1
anon.5ae98b8a0921b55cc4b91f64c0ebe109.117.llvm.3313866793015199511 +1.07 KiB 1
anon.dc598cb313334a8063f2ebc0eb44ddc0.468.llvm.15303088215705960639 -1.06 KiB 1
anon.b1202f6f1c973163089dbf8e70e4de7f.96.llvm.1808416063476283807 +1.06 KiB 1
anon.68f0f8614c74ab97a72833e1da197605.815.llvm.11880302753514420722 +1002 B 1
anon.0f55d6679d075c395825a3b729bced71.416.llvm.13082800132604442316 -1002 B 1
core -903 B 505
[sections] +880 B 4
anon.dc598cb313334a8063f2ebc0eb44ddc0.45.llvm.15303088215705960639 -837 B 1
anon.dcd2065742dc05dc926bcb4a1f03d948.102.llvm.17084958739275293679 +836 B 1
anon.fda1b3533837ce22d4b7e19c78568bdb.5.llvm.10246983265954608129 -733 B 1
anon.e3bad5810b59ee78b5b0ca4e2a647f33.1.llvm.5939792163410021948 +731 B 1

Detailed Symbol Changes

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  [NEW] +23.3Ki  [NEW] +23.1Ki    agent_data_plane::internal::remote_agent::run_remote_agent_registration_loop::_{{closure}}::h0474e6f20f4293bc
  [NEW] +4.10Ki  [NEW] +3.88Ki    core::ptr::drop_in_place<agent_data_plane::internal::remote_agent::RemoteAgentState>::h988e702550f8f650
  [NEW] +3.12Ki  [NEW] +2.92Ki    core::ptr::drop_in_place<agent_data_plane::internal::remote_agent::run_remote_agent_registration_loop::{{closure}}>::h8f3a27a49abd7454
  +0.1% +3.06Ki  +0.1% +2.73Ki    [2110 Others]
  [NEW] +1.99Ki  [NEW]    +868    core::ptr::drop_in_place<memory_accounting::allocator::Tracked<tracing::instrument::Instrumented<agent_data_plane::internal::remote_agent::run_remote_agent_registration_loop::{{closure}}>>>::hc21d101f5bd13d93
  [NEW] +1.63Ki  [NEW] +1.39Ki    tokio::sync::broadcast::Shared<T>::notify_rx::h5092f01501b2842a
  [NEW] +1.61Ki  [NEW]     +47    _<http_body_util::combinators::map_err::MapErr<B,F> as http_body::Body>::size_hint::h5c6b69b6d857e702
  [NEW] +1.60Ki  [NEW]    +462    core::ptr::drop_in_place<alloc::boxed::Box<tokio::runtime::task::core::Cell<tokio::runtime::blocking::task::BlockingTask<tokio::fs::read::read<&std::path::PathBuf>::{{closure}}::{{closure}}>,tokio::runtime::blocking::schedule::BlockingSchedule>>>::h183c09f7b86d449a
  [NEW] +1.56Ki  [NEW]    +808    core::ptr::drop_in_place<tokio::runtime::task::core::Stage<saluki_common::task::instrument::InstrumentedTask<memory_accounting::allocator::Tracked<tracing::instrument::Instrumented<agent_data_plane::internal::remote_agent::run_remote_agent_registration_loop::{{closure}}>>>>>::hcbc201dde781dbc4
  [NEW] +1.42Ki  [NEW]     +33    core::ptr::drop_in_place<http_body_util::combinators::map_err::MapErr<tonic::codec::encode::EncodeBody<tonic_prost::codec::ProstEncoder<containerd_protos::containerd_include::containerd::services::namespaces::v1::ListNamespacesRequest>,tokio_stream::stream_ext::map::Map<tokio_stream::once::Once<containerd_protos::containerd_include::containerd::services::namespaces::v1::ListNamespacesRequest>,core::result::Result<containerd_protos::containerd_include::containerd::services::namespaces::v1::ListNamespacesRequest,tonic::status::Status>::Ok>>,tonic::status::Status::map_error<tonic::status::Status>>>::h18819913ef052bd7
  [DEL] -1.42Ki  [DEL]     -33    core::ptr::drop_in_place<http_body_util::combinators::map_err::MapErr<tonic::codec::encode::EncodeBody<tonic_prost::codec::ProstEncoder<datadog_protos::agent_include::datadog::remoteagent::v1::RefreshRemoteAgentRequest>,tokio_stream::stream_ext::map::Map<tokio_stream::once::Once<datadog_protos::agent_include::datadog::remoteagent::v1::RefreshRemoteAgentRequest>,core::result::Result<datadog_protos::agent_include::datadog::remoteagent::v1::RefreshRemoteAgentRequest,tonic::status::Status>::Ok>>,tonic::status::Status::map_error<tonic::status::Status>>>::hbfc7b7eee5761dcd
  [DEL] -1.44Ki  [DEL] -1.33Ki    agent_data_plane::internal::remote_agent::RemoteAgentState::new::h20605833b8e943bc
  [DEL] -1.56Ki  [DEL]    -808    core::ptr::drop_in_place<tokio::runtime::task::core::Stage<saluki_common::task::instrument::InstrumentedTask<memory_accounting::allocator::Tracked<tracing::instrument::Instrumented<agent_data_plane::internal::remote_agent::run_remote_agent_registration_loop::{{closure}}>>>>>::h49e23e3385b7e533
  [DEL] -1.60Ki  [DEL]    -462    core::ptr::drop_in_place<alloc::boxed::Box<tokio::runtime::task::core::Cell<tokio::runtime::blocking::task::BlockingTask<tokio::fs::read::read<&std::path::Path>::{{closure}}::{{closure}}>,tokio::runtime::blocking::schedule::BlockingSchedule>>>::h4fce2dbee71f8648
  [DEL] -1.61Ki  [DEL]     -47    _<http_body_util::combinators::map_err::MapErr<B,F> as http_body::Body>::size_hint::hd3a85808fa15fdf4
  [DEL] -1.63Ki  [DEL] -1.39Ki    tokio::sync::broadcast::Shared<T>::notify_rx::h831c179a4c60594c
 -25.8% -1.74Ki  [ = ]       0    [Unmapped]
  [DEL] -1.99Ki  [DEL]    -868    core::ptr::drop_in_place<memory_accounting::allocator::Tracked<tracing::instrument::Instrumented<agent_data_plane::internal::remote_agent::run_remote_agent_registration_loop::{{closure}}>>>::h8701b8021172fc41
  [DEL] -3.12Ki  [DEL] -2.92Ki    core::ptr::drop_in_place<agent_data_plane::internal::remote_agent::run_remote_agent_registration_loop::{{closure}}>::hd608894898f4c15a
  [DEL] -3.79Ki  [DEL] -3.56Ki    core::ptr::drop_in_place<agent_data_plane::internal::remote_agent::RemoteAgentState>::h929af273e8332695
  [DEL] -23.3Ki  [DEL] -23.1Ki    agent_data_plane::internal::remote_agent::run_remote_agent_registration_loop::_{{closure}}::hee337c8e45db0c53
  +0.0%    +216  +0.0% +1.73Ki    TOTAL

@pr-commenter
Copy link
Copy Markdown

pr-commenter Bot commented May 14, 2026

Regression Detector (Agent Data Plane)

Run ID: ebf14519-71cd-4479-bc9d-cb8d98baccbf
Baseline: c1313d06 · Comparison: 02700453 · Diff

Optimization Goals: ✅ No significant changes detected

Fine details of change detection per experiment (35)

Experiments configured erratic: true are tagged (ignored) and skipped when determining which experiments regressed or improved. Experiments which are detected as erratic at runtime are tagged (erratic) to flag that the run's sample dispersion was high, but their regression / improvement signal still counts.

experiment goal Δ mean % links
dsd_uds_512kb_3k_contexts_cpu (erratic) cpu ⚪ +10.76 metrics profiles logs
otlp_ingest_metrics_5mb_memory memory ⚪ +4.16 metrics profiles logs
dsd_uds_100mb_3k_contexts_cpu (erratic) cpu ⚪ +1.79 metrics profiles logs
otlp_ingest_traces_ottl_filtering_5mb_cpu (erratic) cpu ⚪ +1.05 metrics profiles logs
dsd_uds_500mb_3k_contexts_throughput throughput ⚪ -0.95 metrics profiles logs
dsd_uds_1mb_3k_contexts_cpu (erratic) cpu ⚪ +0.72 metrics profiles logs
dsd_uds_10mb_3k_contexts_cpu (erratic) cpu ⚪ +0.62 metrics profiles logs
otlp_ingest_traces_ottl_transform_5mb_cpu (erratic) cpu ⚪ +0.35 metrics profiles logs
dsd_uds_100mb_3k_contexts_memory memory ⚪ +0.29 metrics profiles logs
quality_gates_rss_dsd_ultraheavy memory ⚪ +0.21 metrics profiles logs
otlp_ingest_traces_5mb_memory memory ⚪ +0.17 metrics profiles logs
dsd_uds_1mb_3k_contexts_memory memory ⚪ +0.16 metrics profiles logs
otlp_ingest_traces_ottl_transform_5mb_memory memory ⚪ +0.15 metrics profiles logs
quality_gates_rss_dsd_low memory ⚪ +0.10 metrics profiles logs
quality_gates_rss_idle memory ⚪ +0.09 metrics profiles logs
dsd_uds_512kb_3k_contexts_memory memory ⚪ +0.09 metrics profiles logs
otlp_ingest_traces_ottl_transform_5mb_throughput throughput ⚪ -0.07 metrics profiles logs
otlp_ingest_traces_ottl_filtering_5mb_throughput throughput ⚪ -0.06 metrics profiles logs
dsd_uds_500mb_3k_contexts_memory memory ⚪ +0.05 metrics profiles logs
dsd_uds_10mb_3k_contexts_memory memory ⚪ +0.04 metrics profiles logs
dsd_uds_10mb_3k_contexts_throughput throughput ⚪ -0.02 metrics profiles logs
dsd_uds_500mb_3k_contexts_cpu (erratic) cpu ⚪ +0.02 metrics profiles logs
dsd_uds_512kb_3k_contexts_throughput throughput ⚪ -0.00 metrics profiles logs
otlp_ingest_logs_5mb_throughput (ignored) throughput ⚪ -0.00 metrics profiles logs
dsd_uds_100mb_3k_contexts_throughput throughput ⚪ +0.00 metrics profiles logs
dsd_uds_1mb_3k_contexts_throughput throughput ⚪ +0.00 metrics profiles logs
otlp_ingest_metrics_5mb_throughput throughput ⚪ +0.02 metrics profiles logs
otlp_ingest_traces_5mb_throughput throughput ⚪ +0.05 metrics profiles logs
otlp_ingest_logs_5mb_cpu (ignored) cpu ⚪ -0.07 metrics profiles logs
otlp_ingest_traces_ottl_filtering_5mb_memory memory ⚪ -0.13 metrics profiles logs
quality_gates_rss_dsd_medium memory ⚪ -0.15 metrics profiles logs
otlp_ingest_metrics_5mb_cpu (erratic) cpu ⚪ -0.20 metrics profiles logs
quality_gates_rss_dsd_heavy memory ⚪ -0.20 metrics profiles logs
otlp_ingest_traces_5mb_cpu (erratic) cpu ⚪ -1.51 metrics profiles logs
otlp_ingest_logs_5mb_memory (ignored) memory ⚪ -3.61 metrics profiles logs
Bounds Checks: ✅ Passed (5)
experiment check replicates observed links
quality_gates_rss_dsd_heavy memory_usage 10/10 ✅ 122 MiB ≤ 140 MiB metrics profiles logs
quality_gates_rss_dsd_low memory_usage 10/10 ✅ 40 MiB ≤ 50 MiB metrics profiles logs
quality_gates_rss_dsd_medium memory_usage 10/10 ✅ 60.2 MiB ≤ 75 MiB metrics profiles logs
quality_gates_rss_dsd_ultraheavy memory_usage 10/10 ✅ 178 MiB ≤ 200 MiB metrics profiles logs
quality_gates_rss_idle memory_usage 10/10 ✅ 27.1 MiB ≤ 40 MiB metrics profiles logs
Explanation

A change is flagged as a regression when |Δ mean %| > 5.00% in the regressing direction for its optimization goal AND SMP marks the experiment as a regression (is_regression: true). Improvements use the matching criteria for the improving direction. Experiments configured erratic: true (tagged (ignored)) are skipped outright; experiments detected as erratic at runtime (tagged (erratic)) still count, since that flag describes sample dispersion rather than directional certainty. The Δ mean % cell is colored accordingly: 🟢 = improvement, 🔴 = regression, ⚪ = neutral. Reduction in CPU or memory is an improvement; reduction in ingress throughput is a regression.

@tobz tobz merged commit d2ce25c into main May 14, 2026
78 checks passed
@tobz tobz deleted the tobz/fix-rar-display-name-flavor branch May 14, 2026 19:33
dd-octo-sts Bot pushed a commit that referenced this pull request May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/chore Updates to dependencies or general "administrative" tasks necessary to maintain the codebase/repo.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants