-
Notifications
You must be signed in to change notification settings - Fork 8
enhancement(datadog encoder): fully incrementalize trace encoding #1186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Binary Size Analysis (Agent Data Plane)Target: 9fe09ef (baseline) vs cfd1804 (comparison) diff
|
| Module | File Size | Symbols |
|---|---|---|
saluki_components::encoders::datadog |
-16.67 KiB | 11 |
datadog_protos::trace_include::span |
+9.77 KiB | 13 |
[Unmapped] |
-4.85 KiB | 1 |
hashbrown |
-4.47 KiB | 4 |
core |
-4.20 KiB | 50 |
protobuf |
-4.17 KiB | 2 |
saluki_components::common::datadog |
-3.75 KiB | 20 |
saluki_core::data_model::event |
+678 B | 2 |
[sections] |
-195 B | 4 |
unicode_segmentation |
+16 B | 1 |
saluki_components::transforms::trace_sampler |
-8 B | 1 |
agent_data_plane::cli::run |
-1 B | 1 |
saluki_common::task::instrument |
+0 B | 2 |
tokio |
+0 B | 28 |
anyhow |
+0 B | 17 |
tracing_core |
+0 B | 4 |
Detailed Symbol Changes
FILE SIZE VM SIZE
-------------- --------------
[NEW] +18.0Ki [NEW] +17.9Ki saluki_components::encoders::datadog::traces::TraceEndpointEncoder::encode_tracer_payload::h342f2be2d10a67de
[NEW] +10.3Ki [NEW] +10.2Ki _<saluki_common::task::instrument::InstrumentedTask<F> as core::future::future::Future>::poll::ha141c843a5f068f5
[NEW] +5.74Ki [NEW] +5.58Ki saluki_components::common::datadog::request_builder::RequestBuilder<E>::flush::_{{closure}}::h127448bc16338326
[NEW] +3.41Ki [NEW] +3.24Ki saluki_components::common::datadog::request_builder::RequestBuilder<E>::try_split_request::_{{closure}}::h734bcdc798eeddab
[NEW] +2.88Ki [NEW] +2.72Ki saluki_components::common::datadog::request_builder::RequestBuilder<E>::encode_inner::_{{closure}}::hd9c65ae17d7d8069
[NEW] +2.79Ki [NEW] +2.62Ki _<datadog_protos::trace_include::span::SpanEvent as protobuf::message::Message>::write_to_with_cached_sizes::h8cf199d7fbaedd25
[NEW] +2.64Ki [NEW] +2.48Ki saluki_components::common::datadog::request_builder::RequestBuilder<E>::flush_inner::_{{closure}}::hc05b7416afce11d1
[NEW] +1.90Ki [NEW] +1.74Ki _<datadog_protos::trace_include::span::SpanEvent as protobuf::message::Message>::compute_size::hf3648bc887ece00a
[NEW] +1.85Ki [NEW] +1.70Ki saluki_components::common::datadog::request_builder::RequestBuilder<E>::encode::_{{closure}}::h900fac028d204081
[DEL] -1.85Ki [DEL] -1.70Ki saluki_components::common::datadog::request_builder::RequestBuilder<E>::encode::_{{closure}}::h9905532f00f7a86e
[DEL] -1.86Ki [DEL] -1.76Ki hashbrown::raw::RawTable<T,A>::reserve_rehash::hebfbde2742abd606
[DEL] -2.64Ki [DEL] -2.48Ki saluki_components::common::datadog::request_builder::RequestBuilder<E>::flush_inner::_{{closure}}::hcde99018eea9fcca
[DEL] -2.79Ki [DEL] -2.69Ki protobuf::rt::message::write_message_field_with_cached_size::hef6117dca55eee99
[DEL] -3.41Ki [DEL] -3.24Ki saluki_components::common::datadog::request_builder::RequestBuilder<E>::try_split_request::_{{closure}}::h7828e37c553aec46
-0.4% -4.41Ki -0.5% -4.53Ki [141 Others]
-55.8% -4.85Ki [ = ] 0 [Unmapped]
[DEL] -5.74Ki [DEL] -5.58Ki saluki_components::common::datadog::request_builder::RequestBuilder<E>::flush::_{{closure}}::h4d8fefd2d4f555c8
[DEL] -6.63Ki [DEL] -6.46Ki saluki_components::common::datadog::request_builder::RequestBuilder<E>::encode_inner::_{{closure}}::h201dd0d16c8faffb
[DEL] -10.3Ki [DEL] -10.2Ki _<saluki_common::task::instrument::InstrumentedTask<F> as core::future::future::Future>::poll::h0333185de686aa78
[DEL] -11.8Ki [DEL] -11.7Ki saluki_components::encoders::datadog::traces::write_message_field::h12a4a97c997005b8
[DEL] -21.1Ki [DEL] -20.9Ki saluki_components::encoders::datadog::traces::TraceEndpointEncoder::build_trace_chunk::hd0c21e8a2db10a64
-0.1% -27.9Ki -0.1% -23.1Ki TOTAL
Regression Detector (Agent Data Plane)Regression Detector ResultsRun ID: 9161406b-d0e4-448f-9620-f953a0d86b65 Baseline: 9fe09ef ❌ Experiments with retried target crashesThis 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.
Optimization Goals: ✅ Improvement(s) detected
|
| perf | experiment | goal | Δ mean % | Δ mean % CI | trials | links |
|---|---|---|---|---|---|---|
| ➖ | otlp_ingest_logs_5mb_throughput | ingress throughput | +0.01 | [-0.12, +0.14] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_logs_5mb_cpu | % cpu utilization | -0.83 | [-5.95, +4.29] | 1 | (metrics) (profiles) (logs) |
| ✅ | otlp_ingest_logs_5mb_memory | memory utilization | -7.51 | [-8.16, -6.86] | 1 | (metrics) (profiles) (logs) |
Fine details of change detection per experiment
| perf | experiment | goal | Δ mean % | Δ mean % CI | trials | links |
|---|---|---|---|---|---|---|
| ➖ | dsd_uds_1mb_3k_contexts_cpu | % cpu utilization | +2.02 | [-49.84, +53.89] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_100mb_3k_contexts_cpu | % cpu utilization | +1.62 | [-4.26, +7.50] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_metrics_5mb_memory | memory utilization | +0.54 | [+0.32, +0.75] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_1mb_3k_contexts_memory | memory utilization | +0.53 | [+0.34, +0.72] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_100mb_3k_contexts_memory | memory utilization | +0.51 | [+0.32, +0.71] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_traces_5mb_memory | memory utilization | +0.34 | [+0.09, +0.60] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_500mb_3k_contexts_cpu | % cpu utilization | +0.33 | [-0.84, +1.50] | 1 | (metrics) (profiles) (logs) |
| ➖ | quality_gates_rss_dsd_low | memory utilization | +0.30 | [+0.14, +0.47] | 1 | (metrics) (profiles) (logs) |
| ➖ | quality_gates_rss_idle | memory utilization | +0.10 | [+0.05, +0.15] | 1 | (metrics) (profiles) (logs) |
| ➖ | quality_gates_rss_dsd_ultraheavy | memory utilization | +0.04 | [-0.09, +0.17] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_traces_5mb_throughput | ingress throughput | +0.02 | [-0.07, +0.10] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_logs_5mb_throughput | ingress throughput | +0.01 | [-0.12, +0.14] | 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.05, +0.05] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_10mb_3k_contexts_throughput | ingress throughput | -0.01 | [-0.16, +0.14] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_100mb_3k_contexts_throughput | ingress throughput | -0.03 | [-0.08, +0.02] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_metrics_5mb_throughput | ingress throughput | -0.04 | [-0.17, +0.09] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_500mb_3k_contexts_memory | memory utilization | -0.10 | [-0.29, +0.09] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_512kb_3k_contexts_memory | memory utilization | -0.11 | [-0.30, +0.08] | 1 | (metrics) (profiles) (logs) |
| ➖ | quality_gates_rss_dsd_heavy | memory utilization | -0.25 | [-0.38, -0.13] | 1 | (metrics) (profiles) (logs) |
| ➖ | quality_gates_rss_dsd_medium | memory utilization | -0.34 | [-0.54, -0.14] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_10mb_3k_contexts_cpu | % cpu utilization | -0.38 | [-30.25, +29.49] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_10mb_3k_contexts_memory | memory utilization | -0.41 | [-0.60, -0.21] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_metrics_5mb_cpu | % cpu utilization | -0.70 | [-6.60, +5.20] | 1 | (metrics) (profiles) (logs) |
| ➖ | otlp_ingest_logs_5mb_cpu | % cpu utilization | -0.83 | [-5.95, +4.29] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_500mb_3k_contexts_throughput | ingress throughput | -4.35 | [-4.49, -4.21] | 1 | (metrics) (profiles) (logs) |
| ✅ | otlp_ingest_logs_5mb_memory | memory utilization | -7.51 | [-8.16, -6.86] | 1 | (metrics) (profiles) (logs) |
| ➖ | dsd_uds_512kb_3k_contexts_cpu | % cpu utilization | -12.21 | [-62.97, +38.54] | 1 | (metrics) (profiles) (logs) |
| ✅ | otlp_ingest_traces_5mb_cpu | % cpu utilization | -25.11 | [-27.68, -22.53] | 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:
-
Its estimated |Δ mean %| ≥ 5.00%, indicating the change is big enough to merit a closer look.
-
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.
-
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 | 6 | Failed to shutdown when requested | Debug Dashboard |
| dsd_uds_1mb_3k_contexts_cpu | comparison | 8 | Failed to shutdown when requested | Debug Dashboard |
| otlp_ingest_logs_5mb_cpu | comparison | 1 | Failed to shutdown when requested | Debug Dashboard |
| otlp_ingest_traces_5mb_throughput | baseline | 6, 9 | Failed to shutdown when requested | Debug Dashboard |
| otlp_ingest_traces_5mb_throughput | comparison | 8 | Failed to shutdown when requested | Debug Dashboard |

Summary
Change Type
How did you test this PR?
References