Skip to content

Conversation

@andrewqian2001datadog
Copy link
Contributor

Summary

  • document the targeted OTLP trace ingestion optimizations in otlp_trace_optimization.md
  • describe per-span attribute extraction caching and cached use_both_maps access in common/otlp/attributes/mod.rs
  • sketch the streaming JSON and resource/tag cache improvements in common/otlp/traces/transform.rs
    Testing
  • Not run (not requested)

@andrewqian2001datadog andrewqian2001datadog requested a review from a team as a code owner February 5, 2026 22:00
@dd-octo-sts dd-octo-sts bot added the area/components Sources, transforms, and destinations. label Feb 5, 2026
@andrewqian2001datadog andrewqian2001datadog changed the title Optimize OTLP trace ingestion hotspots test (ai slop) Feb 5, 2026
@pr-commenter
Copy link

pr-commenter bot commented Feb 5, 2026

Binary Size Analysis (Agent Data Plane)

Target: eb64b2e (baseline) vs b8153d8 (comparison) diff
Analysis Type: Stripped binaries (debug symbols excluded)
Baseline Size: 26.95 MiB
Comparison Size: 26.97 MiB
Size Change: +20.59 KiB (+0.07%)
Pass/Fail Threshold: +5%
Result: PASSED ✅

Changes by Module

Module File Size Symbols
saluki_components::common::otlp +21.69 KiB 10
[Unmapped] -3.66 KiB 1
hashbrown +1.71 KiB 4
core +782 B 4
saluki_components::encoders::datadog +90 B 2
[sections] -78 B 5
unicode_segmentation +72 B 1
aho_corasick -16 B 1
saluki_components::transforms::trace_obfuscation +9 B 1
regex_syntax -8 B 1
saluki_components::common::datadog +4 B 1
std +4 B 1

Detailed Symbol Changes

    FILE SIZE        VM SIZE    
 --------------  -------------- 
  [NEW] +39.0Ki  [NEW] +38.9Ki    saluki_components::common::otlp::traces::transform::otel_to_dd_span_minimal::h1e374ee0a9042511
   +28% +5.64Ki   +28% +5.64Ki    saluki_components::common::otlp::traces::transform::otel_span_to_dd_span::hdac3746e1e67a5aa
  [NEW] +2.06Ki  [NEW] +1.94Ki    saluki_components::common::otlp::traces::transform::index_attribute_values::h664deae44fa0bcf8
  [NEW] +1.37Ki  [NEW] +1.28Ki    hashbrown::raw::RawTable<T,A>::reserve_rehash::h0b0c2686f9bccc2e
  [NEW] +1.07Ki  [NEW]    +979    saluki_components::common::otlp::traces::transform::use_cached_attributes::h166bd71f3dd0e046
  [NEW]    +668  [NEW]    +516    core::ptr::drop_in_place<saluki_components::common::otlp::traces::transform::AttributeLookupCache>::h28948f71e94a6fbc
  [NEW]    +412  [NEW]    +284    saluki_components::common::otlp::traces::transform::use_cached_attributes_key_list::h0addc93ca904791c
  [NEW]    +358  [NEW]    +187    core::ptr::drop_in_place<std::collections::hash::map::HashMap<&str,i64,foldhash::quality::RandomState>>::hbb5d9c330ffa50f9
  [NEW]    +351  [NEW]    +220    hashbrown::raw::RawTable<T,A>::reserve_rehash::_{{closure}}::h8a812efff082483c
  +0.0%    +236  +0.0%    +236    [section .gcc_except_table]
  +8.3%     +82  +9.0%     +82    core::ops::function::FnOnce::call_once::ha528420cd874e35f
  +0.3%     +72  +0.4%     +72    unicode_segmentation::grapheme::GraphemeCursor::grapheme_category::h5f61abd61f4ab1b3
   +10%     +60   +12%     +60    saluki_components::encoders::datadog::traces::resolve_env::h67d3a13b75897f71
  +6.7%     +30  +9.0%     +30    saluki_components::encoders::datadog::traces::resolve_app_version::h4b1e8870561156ff
  +0.0%     +26  -0.0%     -20    [12 Others]
  [DEL]    -326  [DEL]    -187    core::ptr::drop_in_place<std::collections::hash::map::HashMap<&str,usize>>::ha57f50c0daf596a8
  [DEL]    -341  [DEL]    -218    saluki_components::common::otlp::traces::transform::get_both_string_attribute::h19cf9c25bca58c4a
  -6.6%    -384  -6.6%    -384    [section .rodata]
  [DEL]    -442  [DEL]    -331    saluki_components::common::otlp::traces::transform::use_both_maps::hbaf1b06ff5e12d58
 -55.5% -3.66Ki  [ = ]       0    [Unmapped]
  [DEL] -25.7Ki  [DEL] -25.6Ki    saluki_components::common::otlp::traces::transform::otel_to_dd_span_minimal::h39a1d2a06d273496
  +0.1% +20.6Ki  +0.1% +23.7Ki    TOTAL

@pr-commenter
Copy link

pr-commenter bot commented Feb 5, 2026

Regression Detector (Agent Data Plane)

Regression Detector Results

Run ID: e63ec5c4-bd6f-423f-a7aa-87f96f227f9c

Baseline: eb64b2e
Comparison: b8153d8
Diff

❌ Experiments with retried target crashes

This is a critical error. One or more replicates failed with a non-zero exit code. These replicates may have been retried. See Replicate Execution Details for more information.

  • otlp_ingest_metrics_5mb_memory
  • dsd_uds_10mb_3k_contexts_cpu
  • otlp_ingest_logs_5mb_memory
  • dsd_uds_1mb_3k_contexts_throughput
  • otlp_ingest_metrics_5mb_cpu
  • dsd_uds_512kb_3k_contexts_throughput

Optimization Goals: ✅ No significant changes detected

Experiments ignored for regressions

Regressions in experiments with settings containing erratic: true are ignored.

perf experiment goal Δ mean % Δ mean % CI trials links
otlp_ingest_logs_5mb_memory memory utilization +8.65 [+7.90, +9.41] 1 (metrics) (profiles) (logs)
otlp_ingest_logs_5mb_cpu % cpu utilization +0.38 [-4.76, +5.53] 1 (metrics) (profiles) (logs)
otlp_ingest_logs_5mb_throughput ingress throughput +0.03 [-0.09, +0.16] 1 (metrics) (profiles) (logs)

Fine details of change detection per experiment

perf experiment goal Δ mean % Δ mean % CI trials links
dsd_uds_512kb_3k_contexts_cpu % cpu utilization +11.37 [-46.21, +68.95] 1 (metrics) (profiles) (logs)
otlp_ingest_logs_5mb_memory memory utilization +8.65 [+7.90, +9.41] 1 (metrics) (profiles) (logs)
otlp_ingest_traces_5mb_cpu % cpu utilization +3.11 [+0.42, +5.79] 1 (metrics) (profiles) (logs)
dsd_uds_10mb_3k_contexts_cpu % cpu utilization +2.35 [-26.28, +30.98] 1 (metrics) (profiles) (logs)
dsd_uds_500mb_3k_contexts_throughput ingress throughput +1.18 [+1.05, +1.31] 1 (metrics) (profiles) (logs)
otlp_ingest_metrics_5mb_cpu % cpu utilization +1.09 [-4.87, +7.04] 1 (metrics) (profiles) (logs)
dsd_uds_100mb_3k_contexts_memory memory utilization +0.45 [+0.25, +0.64] 1 (metrics) (profiles) (logs)
otlp_ingest_logs_5mb_cpu % cpu utilization +0.38 [-4.76, +5.53] 1 (metrics) (profiles) (logs)
quality_gates_rss_dsd_low memory utilization +0.19 [+0.03, +0.36] 1 (metrics) (profiles) (logs)
quality_gates_rss_dsd_heavy memory utilization +0.12 [-0.00, +0.25] 1 (metrics) (profiles) (logs)
dsd_uds_10mb_3k_contexts_memory memory utilization +0.05 [-0.15, +0.25] 1 (metrics) (profiles) (logs)
dsd_uds_512kb_3k_contexts_memory memory utilization +0.04 [-0.14, +0.22] 1 (metrics) (profiles) (logs)
otlp_ingest_logs_5mb_throughput ingress throughput +0.03 [-0.09, +0.16] 1 (metrics) (profiles) (logs)
quality_gates_rss_idle memory utilization +0.02 [-0.04, +0.07] 1 (metrics) (profiles) (logs)
dsd_uds_10mb_3k_contexts_throughput ingress throughput +0.01 [-0.14, +0.15] 1 (metrics) (profiles) (logs)
dsd_uds_100mb_3k_contexts_throughput ingress throughput +0.00 [-0.04, +0.05] 1 (metrics) (profiles) (logs)
otlp_ingest_traces_5mb_throughput ingress throughput +0.00 [-0.08, +0.08] 1 (metrics) (profiles) (logs)
dsd_uds_1mb_3k_contexts_throughput ingress throughput +0.00 [-0.06, +0.06] 1 (metrics) (profiles) (logs)
dsd_uds_512kb_3k_contexts_throughput ingress throughput -0.00 [-0.06, +0.05] 1 (metrics) (profiles) (logs)
otlp_ingest_metrics_5mb_throughput ingress throughput -0.03 [-0.15, +0.10] 1 (metrics) (profiles) (logs)
dsd_uds_500mb_3k_contexts_memory memory utilization -0.05 [-0.24, +0.13] 1 (metrics) (profiles) (logs)
otlp_ingest_metrics_5mb_memory memory utilization -0.06 [-0.31, +0.19] 1 (metrics) (profiles) (logs)
quality_gates_rss_dsd_ultraheavy memory utilization -0.07 [-0.21, +0.06] 1 (metrics) (profiles) (logs)
dsd_uds_1mb_3k_contexts_memory memory utilization -0.09 [-0.28, +0.11] 1 (metrics) (profiles) (logs)
dsd_uds_100mb_3k_contexts_cpu % cpu utilization -0.15 [-5.80, +5.51] 1 (metrics) (profiles) (logs)
dsd_uds_500mb_3k_contexts_cpu % cpu utilization -0.25 [-1.49, +0.99] 1 (metrics) (profiles) (logs)
quality_gates_rss_dsd_medium memory utilization -0.36 [-0.55, -0.17] 1 (metrics) (profiles) (logs)
dsd_uds_1mb_3k_contexts_cpu % cpu utilization -1.09 [-50.87, +48.68] 1 (metrics) (profiles) (logs)
otlp_ingest_traces_5mb_memory memory utilization -2.93 [-3.17, -2.69] 1 (metrics) (profiles) (logs)

Bounds Checks: ✅ Passed

perf experiment bounds_check_name replicates_passed links
quality_gates_rss_dsd_heavy memory_usage 10/10 (metrics) (profiles) (logs)
quality_gates_rss_dsd_low memory_usage 10/10 (metrics) (profiles) (logs)
quality_gates_rss_dsd_medium memory_usage 10/10 (metrics) (profiles) (logs)
quality_gates_rss_dsd_ultraheavy memory_usage 10/10 (metrics) (profiles) (logs)
quality_gates_rss_idle memory_usage 10/10 (metrics) (profiles) (logs)

Explanation

Confidence level: 90.00%
Effect size tolerance: |Δ mean %| ≥ 5.00%

Performance changes are noted in the perf column of each table:

  • ✅ = significantly better comparison variant performance
  • ❌ = significantly worse comparison variant performance
  • ➖ = no significant change in performance

A regression test is an A/B test of target performance in a repeatable rig, where "performance" is measured as "comparison variant minus baseline variant" for an optimization goal (e.g., ingress throughput). Due to intrinsic variability in measuring that goal, we can only estimate its mean value for each experiment; we report uncertainty in that value as a 90.00% confidence interval denoted "Δ mean % CI".

For each experiment, we decide whether a change in performance is a "regression" -- a change worth investigating further -- if all of the following criteria are true:

  1. Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.

  2. Its 90.00% confidence interval "Δ mean % CI" does not contain zero, indicating that if our statistical model is accurate, there is at least a 90.00% chance there is a difference in performance between baseline and comparison variants.

  3. Its configuration does not mark it "erratic".

Replicate Execution Details

We run multiple replicates for each experiment/variant. However, we allow replicates to be automatically retried if there are any failures, up to 8 times, at which point the replicate is marked dead and we are unable to run analysis for the entire experiment. We call each of these attempts at running replicates a replicate execution. This section lists all replicate executions that failed due to the target crashing or being oom killed.

Note: In the below tables we bucket failures by experiment, variant, and failure type. For each of these buckets we list out the replicate indexes that failed with an annotation signifying how many times said replicate failed with the given failure mode. In the below example the baseline variant of the experiment named experiment_with_failures had two replicates that failed by oom kills. Replicate 0, which failed 8 executions, and replicate 1 which failed 6 executions, all with the same failure mode.

Experiment Variant Replicates Failure Logs Debug Dashboard
experiment_with_failures baseline 0 (x8) 1 (x6) Oom killed Debug Dashboard

The debug dashboard links will take you to a debugging dashboard specifically designed to investigate replicate execution failures.

❌ Retried Normal Replicate Execution Failures (non-profiling)

Experiment Variant Replicates Failure Debug Dashboard
dsd_uds_10mb_3k_contexts_cpu comparison 3 Failed to shutdown when requested Debug Dashboard
dsd_uds_1mb_3k_contexts_throughput comparison 7 Failed to shutdown when requested Debug Dashboard
dsd_uds_512kb_3k_contexts_throughput baseline 4 Failed to shutdown when requested Debug Dashboard
otlp_ingest_logs_5mb_memory baseline 5 Failed to shutdown when requested Debug Dashboard
otlp_ingest_logs_5mb_memory comparison 9 Failed to shutdown when requested Debug Dashboard
otlp_ingest_metrics_5mb_cpu comparison 0 Failed to shutdown when requested Debug Dashboard
otlp_ingest_metrics_5mb_memory comparison 5 Failed to shutdown when requested Debug Dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/components Sources, transforms, and destinations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant