Skip to content

Fix processing pipeline for client-side-stats#8436

Merged
andrewlock merged 13 commits into
masterfrom
andrew/client-side-stats/update-processing-pipeline
Apr 21, 2026
Merged

Fix processing pipeline for client-side-stats#8436
andrewlock merged 13 commits into
masterfrom
andrew/client-side-stats/update-processing-pipeline

Conversation

@andrewlock

@andrewlock andrewlock commented Apr 9, 2026

Copy link
Copy Markdown
Member

Summary of changes

Updates the processing pipeline for client side stats

Reason for change

The bulk of the CSS 1.2.0 work was done in #8420, but the span-processing pipeline wasn't the same as the Go agent:

Step Go Agent .NET Tracer
1 Normalize Normalize + Obfuscate (ProcessTrace)
2 Filter Filter + Sample (ShouldKeepTrace)
3 Obfuscate
4 Sample
5 Stats Stats (AddRange)

Implementation details

The difference was mostly due to the way we had separate ProcessTrace() and ShouldKeepTrace() methods. By merging them, we can encapsulate the pipeline, and ensure that we mirror the way the Go agent processes traces.

Additionally, there are two different mechanisms for dropping spans now - p0drops and "trace filtering", so added a new metric tag reason:trace_filter for it.

Additionally, made some small optimizations:

  • No need for an array of ITraceProcessor when it only contains one
  • Updated TraceFilter algorithm to correctly look for local trace root, starting from last span
  • Made _statsAggregator non-null in AgentWriter to eliminate a bunch of null checks

Test coverage

Covered by existing tests.

Other details

Part of a stack:

@andrewlock andrewlock added area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) type:refactor labels Apr 9, 2026
@andrewlock
andrewlock force-pushed the andrew/client-side-stats/update-processing-pipeline branch from 0b9d17e to 833ad62 Compare April 9, 2026 22:41
@andrewlock
andrewlock force-pushed the andrew/client-side-stats/refactor-trace-chunk-model branch from d367d99 to efd496f Compare April 9, 2026 22:41
@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Apr 9, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8436) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration72.69 ± (72.68 - 73.06) ms73.93 ± (73.83 - 74.39) ms+1.7%✅⬆️
.NET Framework 4.8 - Bailout
duration76.87 ± (76.80 - 77.23) ms76.63 ± (76.54 - 76.90) ms-0.3%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1080.73 ± (1078.86 - 1084.48) ms1079.37 ± (1079.20 - 1087.93) ms-0.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.44 ± (22.39 - 22.49) ms22.51 ± (22.47 - 22.56) ms+0.3%✅⬆️
process.time_to_main_ms84.49 ± (84.24 - 84.75) ms84.76 ± (84.53 - 84.99) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.92) MB10.90 ± (10.90 - 10.91) MB-0.1%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.39 ± (22.35 - 22.42) ms22.35 ± (22.31 - 22.38) ms-0.2%
process.time_to_main_ms86.45 ± (86.21 - 86.69) ms85.51 ± (85.32 - 85.70) ms-1.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.89 ± (10.88 - 10.89) MB10.93 ± (10.93 - 10.94) MB+0.4%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms230.57 ± (229.44 - 231.70) ms231.09 ± (229.95 - 232.22) ms+0.2%✅⬆️
process.time_to_main_ms528.09 ± (526.66 - 529.53) ms529.28 ± (527.82 - 530.74) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.37 ± (48.33 - 48.40) MB48.41 ± (48.39 - 48.44) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%
.NET 6 - Baseline
process.internal_duration_ms21.28 ± (21.23 - 21.33) ms21.44 ± (21.39 - 21.48) ms+0.7%✅⬆️
process.time_to_main_ms74.20 ± (73.96 - 74.44) ms74.72 ± (74.43 - 75.01) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.63 ± (10.63 - 10.63) MB10.61 ± (10.61 - 10.61) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.43 ± (21.38 - 21.47) ms21.40 ± (21.36 - 21.45) ms-0.1%
process.time_to_main_ms77.13 ± (76.88 - 77.37) ms75.83 ± (75.56 - 76.09) ms-1.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.73) MB10.73 ± (10.73 - 10.73) MB-0.0%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms382.89 ± (380.83 - 384.96) ms384.67 ± (382.71 - 386.63) ms+0.5%✅⬆️
process.time_to_main_ms530.75 ± (529.37 - 532.13) ms531.80 ± (530.40 - 533.20) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.90 ± (49.87 - 49.93) MB50.03 ± (50.01 - 50.06) MB+0.3%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.63 ± (19.60 - 19.66) ms19.46 ± (19.42 - 19.50) ms-0.8%
process.time_to_main_ms73.35 ± (73.16 - 73.54) ms73.37 ± (73.20 - 73.53) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.65 ± (7.64 - 7.65) MB7.66 ± (7.65 - 7.66) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.61 ± (19.57 - 19.65) ms19.84 ± (19.78 - 19.90) ms+1.2%✅⬆️
process.time_to_main_ms74.04 ± (73.86 - 74.23) ms76.81 ± (76.54 - 77.08) ms+3.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.70 ± (7.69 - 7.71) MB7.72 ± (7.72 - 7.73) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms307.44 ± (304.83 - 310.05) ms303.08 ± (300.66 - 305.51) ms-1.4%
process.time_to_main_ms493.27 ± (492.03 - 494.52) ms489.30 ± (488.17 - 490.43) ms-0.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.71 ± (37.64 - 37.78) MB37.81 ± (37.74 - 37.88) MB+0.3%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.1%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration191.39 ± (191.45 - 192.29) ms190.93 ± (190.85 - 191.52) ms-0.2%
.NET Framework 4.8 - Bailout
duration194.40 ± (194.30 - 194.66) ms195.21 ± (195.02 - 195.44) ms+0.4%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1148.93 ± (1147.78 - 1153.49) ms1147.76 ± (1149.14 - 1155.65) ms-0.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms184.93 ± (184.58 - 185.27) ms184.69 ± (184.35 - 185.03) ms-0.1%
process.time_to_main_ms80.61 ± (80.39 - 80.82) ms80.37 ± (80.17 - 80.58) ms-0.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.16 ± (16.11 - 16.21) MB16.11 ± (16.08 - 16.14) MB-0.3%
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 20)-0.5%
.NET Core 3.1 - Bailout
process.internal_duration_ms184.07 ± (183.79 - 184.36) ms184.33 ± (184.11 - 184.55) ms+0.1%✅⬆️
process.time_to_main_ms81.61 ± (81.49 - 81.73) ms81.68 ± (81.54 - 81.81) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.25 ± (16.23 - 16.28) MB16.16 ± (16.13 - 16.18) MB-0.6%
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+0.0%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms393.93 ± (392.54 - 395.33) ms392.12 ± (390.64 - 393.60) ms-0.5%
process.time_to_main_ms504.81 ± (503.39 - 506.23) ms505.98 ± (504.84 - 507.12) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.85 ± (58.65 - 59.05) MB58.80 ± (58.60 - 59.00) MB-0.1%
runtime.dotnet.threads.count30 ± (29 - 30)30 ± (30 - 30)+0.4%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms189.34 ± (189.03 - 189.65) ms189.89 ± (189.61 - 190.17) ms+0.3%✅⬆️
process.time_to_main_ms70.08 ± (69.90 - 70.25) ms70.34 ± (70.15 - 70.53) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.99 ± (15.83 - 16.15) MB16.06 ± (15.90 - 16.21) MB+0.4%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.0%
.NET 6 - Bailout
process.internal_duration_ms188.76 ± (188.53 - 188.99) ms189.13 ± (188.90 - 189.36) ms+0.2%✅⬆️
process.time_to_main_ms70.84 ± (70.73 - 70.94) ms71.18 ± (71.09 - 71.27) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.90 ± (15.72 - 16.07) MB16.12 ± (15.97 - 16.27) MB+1.4%✅⬆️
runtime.dotnet.threads.count19 ± (18 - 19)19 ± (19 - 19)+1.9%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms594.90 ± (591.40 - 598.39) ms599.39 ± (596.85 - 601.92) ms+0.8%✅⬆️
process.time_to_main_ms506.46 ± (505.60 - 507.31) ms508.06 ± (507.26 - 508.85) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.43 ± (61.33 - 61.54) MB61.67 ± (61.58 - 61.77) MB+0.4%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms186.35 ± (186.10 - 186.59) ms186.68 ± (186.47 - 186.90) ms+0.2%✅⬆️
process.time_to_main_ms69.18 ± (69.01 - 69.35) ms69.72 ± (69.53 - 69.91) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.77 ± (11.74 - 11.79) MB11.80 ± (11.77 - 11.83) MB+0.3%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.0%
.NET 8 - Bailout
process.internal_duration_ms185.65 ± (185.46 - 185.83) ms185.96 ± (185.74 - 186.18) ms+0.2%✅⬆️
process.time_to_main_ms70.33 ± (70.24 - 70.42) ms70.46 ± (70.35 - 70.56) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.82 ± (11.78 - 11.86) MB11.86 ± (11.82 - 11.91) MB+0.4%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms519.65 ± (517.30 - 522.00) ms517.42 ± (515.00 - 519.85) ms-0.4%
process.time_to_main_ms467.11 ± (466.38 - 467.84) ms468.32 ± (467.52 - 469.12) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.81 ± (50.78 - 50.85) MB50.85 ± (50.82 - 50.87) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8436) - mean (74ms)  : 70, 78
    master - mean (73ms)  : 70, 76

    section Bailout
    This PR (8436) - mean (77ms)  : 74, 79
    master - mean (77ms)  : 74, 80

    section CallTarget+Inlining+NGEN
    This PR (8436) - mean (1,084ms)  : 1020, 1147
    master - mean (1,082ms)  : 1041, 1122

Loading
FakeDbCommand (.NET Core 3.1)
gantt
    title Execution time (ms) FakeDbCommand (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8436) - mean (114ms)  : 110, 119
    master - mean (114ms)  : 108, 120

    section Bailout
    This PR (8436) - mean (115ms)  : 112, 117
    master - mean (116ms)  : 111, 120

    section CallTarget+Inlining+NGEN
    This PR (8436) - mean (799ms)  : 769, 829
    master - mean (797ms)  : 776, 817

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8436) - mean (103ms)  : 97, 109
    master - mean (102ms)  : 97, 107

    section Bailout
    This PR (8436) - mean (104ms)  : 99, 108
    master - mean (105ms)  : 100, 111

    section CallTarget+Inlining+NGEN
    This PR (8436) - mean (946ms)  : 910, 982
    master - mean (944ms)  : 905, 983

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8436) - mean (101ms)  : 98, 104
    master - mean (101ms)  : 97, 105

    section Bailout
    This PR (8436) - mean (105ms)  : 99, 111
    master - mean (101ms)  : 99, 104

    section CallTarget+Inlining+NGEN
    This PR (8436) - mean (826ms)  : 780, 872
    master - mean (833ms)  : 790, 875

Loading
HttpMessageHandler (.NET Framework 4.8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8436) - mean (191ms)  : 188, 194
    master - mean (192ms)  : 187, 196

    section Bailout
    This PR (8436) - mean (195ms)  : 193, 197
    master - mean (194ms)  : 193, 196

    section CallTarget+Inlining+NGEN
    This PR (8436) - mean (1,152ms)  : 1106, 1199
    master - mean (1,151ms)  : 1109, 1192

Loading
HttpMessageHandler (.NET Core 3.1)
gantt
    title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8436) - mean (274ms)  : 269, 278
    master - mean (274ms)  : 268, 281

    section Bailout
    This PR (8436) - mean (274ms)  : 272, 277
    master - mean (274ms)  : 270, 278

    section CallTarget+Inlining+NGEN
    This PR (8436) - mean (927ms)  : 906, 947
    master - mean (927ms)  : 907, 947

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8436) - mean (268ms)  : 265, 272
    master - mean (268ms)  : 262, 274

    section Bailout
    This PR (8436) - mean (269ms)  : 266, 272
    master - mean (268ms)  : 265, 271

    section CallTarget+Inlining+NGEN
    This PR (8436) - mean (1,140ms)  : 1101, 1179
    master - mean (1,133ms)  : 1080, 1187

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8436) - mean (266ms)  : 262, 270
    master - mean (266ms)  : 263, 269

    section Bailout
    This PR (8436) - mean (266ms)  : 263, 269
    master - mean (265ms)  : 263, 268

    section CallTarget+Inlining+NGEN
    This PR (8436) - mean (1,020ms)  : 975, 1065
    master - mean (1,019ms)  : 985, 1052

Loading

@andrewlock
andrewlock force-pushed the andrew/client-side-stats/update-processing-pipeline branch 2 times, most recently from a99ae1b to bf1d86f Compare April 10, 2026 07:20
@pr-commenter

pr-commenter Bot commented Apr 10, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-04-20 22:14:51

Comparing candidate commit 5ed9a0b in PR branch andrew/client-side-stats/update-processing-pipeline with baseline commit aefdbef in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 87 known flaky benchmarks.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.005%]
  • ignore execution_time [-1167.284µs; -175.313µs] or [-0.580%; -0.087%]
  • ignore throughput [+16.149op/s; +421.615op/s] or [+0.019%; +0.500%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.007%]
  • ignore execution_time [-1316.177µs; +2190.246µs] or [-0.657%; +1.093%]
  • 🟩 throughput [+9763.278op/s; +11913.519op/s] or [+8.206%; +10.014%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • ignore execution_time [-16.494ms; -2.706ms] or [-8.296%; -1.361%]
  • ignore throughput [+49.365op/s; +1336.752op/s] or [+0.050%; +1.359%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • ignore allocated_mem [-20 bytes; -19 bytes] or [-0.613%; -0.600%]
  • 🟥 execution_time [+304.501ms; +306.252ms] or [+151.104%; +151.973%]
  • ignore throughput [+10.514op/s; +14.253op/s] or [+1.892%; +2.564%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.009%; +0.002%]
  • 🟥 execution_time [+382.158ms; +384.919ms] or [+301.928%; +304.109%]
  • ignore throughput [+8.278op/s; +11.642op/s] or [+1.091%; +1.535%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.009%; +0.002%]
  • 🟥 execution_time [+394.861ms; +397.596ms] or [+349.437%; +351.858%]
  • ignore throughput [-3.352op/s; +1.252op/s] or [-0.474%; +0.177%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net472

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.529%; +27.541%]
  • ignore execution_time [-229.417µs; +359.075µs] or [-0.115%; +0.179%]
  • ignore throughput [-4667.094op/s; -4294.733op/s] or [-3.631%; -3.342%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.977%; +9.987%]
  • 🟩 execution_time [-15.887ms; -11.695ms] or [-7.420%; -5.462%]
  • ignore throughput [+4178.142op/s; +6985.367op/s] or [+3.050%; +5.099%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.502%; +27.510%]
  • ignore execution_time [-10.995ms; -6.787ms] or [-5.236%; -3.232%]
  • ignore throughput [-301.569op/s; +2001.572op/s] or [-0.273%; +1.810%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net472

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.746%; +105.759%]
  • ignore execution_time [-1043.443µs; -478.054µs] or [-0.520%; -0.238%]
  • 🟥 throughput [-260311.352op/s; -257097.160op/s] or [-26.579%; -26.251%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net6.0

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-26.942ms; -22.084ms] or [-12.015%; -9.849%]
  • ignore throughput [-65518.152op/s; -42770.669op/s] or [-6.999%; -4.569%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody netcoreapp3.1

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • ignore execution_time [-1682.478µs; +2586.344µs] or [-0.840%; +1.291%]
  • 🟥 throughput [-132838.393op/s; -116663.951op/s] or [-19.086%; -16.762%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [-1286.076µs; -226.425µs] or [-0.641%; -0.113%]
  • ignore throughput [-767.236op/s; +14.515op/s] or [-0.516%; +0.010%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • ignore execution_time [-1081.819µs; +2441.809µs] or [-0.546%; +1.232%]
  • 🟩 throughput [+10601.112op/s; +13574.784op/s] or [+6.745%; +8.637%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+2.300ms; +6.313ms] or [+1.173%; +3.219%]
  • 🟩 throughput [+7508.860op/s; +10157.259op/s] or [+5.982%; +8.092%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • ignore execution_time [-227.230µs; +36.855µs] or [-0.113%; +0.018%]
  • ignore throughput [+11115.712op/s; +33902.005op/s] or [+0.338%; +1.031%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.008%]
  • ignore execution_time [-3.841ms; -2.442ms] or [-1.899%; -1.207%]
  • 🟩 throughput [+478360.204op/s; +494763.324op/s] or [+15.951%; +16.498%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • 🟩 execution_time [-18.706ms; -14.364ms] or [-8.623%; -6.621%]
  • 🟩 throughput [+231992.373op/s; +285304.191op/s] or [+9.208%; +11.324%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net472

  • ignore allocated_mem [+1 bytes; +4 bytes] or [+0.004%; +0.012%]
  • 🟥 execution_time [+299.848ms; +300.565ms] or [+149.824%; +150.182%]
  • ignore throughput [+118.483op/s; +142.162op/s] or [+1.309%; +1.570%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs net6.0

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+299.210ms; +302.343ms] or [+150.892%; +152.473%]
  • ignore throughput [+246.302op/s; +464.038op/s] or [+1.884%; +3.549%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeArgs netcoreapp3.1

  • ignore allocated_mem [-1 bytes; +2 bytes] or [-0.004%; +0.008%]
  • 🟥 execution_time [+300.240ms; +302.683ms] or [+151.238%; +152.468%]
  • ignore throughput [+142.606op/s; +268.951op/s] or [+1.377%; +2.597%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net472

  • ignore allocated_mem [+4 bytes; +5 bytes] or [+0.230%; +0.243%]
  • 🟥 execution_time [+296.684ms; +297.504ms] or [+145.719%; +146.122%]
  • ignore throughput [+5.201op/s; +11.291op/s] or [+0.138%; +0.299%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+296.764ms; +299.732ms] or [+145.077%; +146.528%]
  • ignore throughput [+145.460op/s; +187.774op/s] or [+2.113%; +2.728%]

scenario:Benchmarks.Trace.Asm.AppSecEncoderBenchmark.EncodeLegacyArgs netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • 🟥 execution_time [+302.030ms; +303.758ms] or [+150.954%; +151.818%]
  • ignore throughput [+9.098op/s; +37.974op/s] or [+0.181%; +0.754%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+2.336µs; +5.988µs] or [+0.480%; +1.229%]
  • ignore throughput [-24.712op/s; -9.634op/s] or [-1.204%; -0.469%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.010%]
  • ignore execution_time [+12.282µs; +38.920µs] or [+2.817%; +8.926%]
  • ignore throughput [-193.389op/s; -73.515op/s] or [-8.408%; -3.196%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [+8.338µs; +30.294µs] or [+1.786%; +6.491%]
  • ignore throughput [-149.069op/s; -68.340op/s] or [-6.881%; -3.155%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-7.028µs; -3.120µs] or [-1.897%; -0.842%]
  • ignore throughput [+23.758op/s; +51.961op/s] or [+0.880%; +1.924%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.007%]
  • 🟥 execution_time [+22.302µs; +45.933µs] or [+7.120%; +14.664%]
  • 🟥 throughput [-427.575op/s; -228.729op/s] or [-13.329%; -7.130%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.003%]
  • ignore execution_time [-16.118µs; +6.258µs] or [-4.409%; +1.712%]
  • ignore throughput [-79.949op/s; +53.596op/s] or [-2.869%; +1.923%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.840ms; +300.545ms] or [+149.651%; +150.003%]
  • ignore throughput [-1687629.682op/s; -1120968.279op/s] or [-0.845%; -0.562%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net6.0

  • ignore allocated_mem [+68 bytes; +70 bytes] or [+0.382%; +0.393%]
  • unstable execution_time [+334.184ms; +379.747ms] or [+363.105%; +412.611%]
  • 🟩 throughput [+1062.745op/s; +1196.140op/s] or [+8.733%; +9.829%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest netcoreapp3.1

  • ignore allocated_mem [+20 bytes; +22 bytes] or [+0.099%; +0.110%]
  • unstable execution_time [+312.796ms; +346.940ms] or [+237.503%; +263.429%]
  • 🟩 throughput [+633.537op/s; +832.741op/s] or [+6.133%; +8.061%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+2.848KB; +2.853KB] or [+5.061%; +5.069%]
  • unstable execution_time [+324.475ms; +380.612ms] or [+149.190%; +175.002%]
  • 🟥 throughput [-462.021op/s; -411.078op/s] or [-41.864%; -37.248%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net6.0

  • ignore allocated_mem [-1.271KB; -1.268KB] or [-2.998%; -2.992%]
  • unstable execution_time [+201.828ms; +335.045ms] or [+86.010%; +142.782%]
  • 🟥 throughput [-742.662op/s; -659.232op/s] or [-49.536%; -43.971%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces netcoreapp3.1

  • ignore allocated_mem [+162 bytes; +165 bytes] or [+0.383%; +0.391%]
  • 🟥 execution_time [+344.433ms; +354.782ms] or [+206.011%; +212.201%]
  • 🟥 throughput [-418.712op/s; -383.977op/s] or [-29.154%; -26.736%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-86.618µs; -69.207µs] or [-4.359%; -3.483%]
  • ignore throughput [+18.428op/s; +23.178op/s] or [+3.662%; +4.606%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-6458.587ns; +6849.920ns] or [-0.444%; +0.471%]
  • ignore throughput [-2.919op/s; +3.362op/s] or [-0.425%; +0.489%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-108.905µs; -89.219µs] or [-3.789%; -3.104%]
  • ignore throughput [+11.293op/s; +13.762op/s] or [+3.246%; +3.956%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-6374.381ns; +5803.048ns] or [-0.551%; +0.501%]
  • ignore throughput [-3.588op/s; +5.103op/s] or [-0.415%; +0.591%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [-29.596µs; -3.315µs] or [-2.745%; -0.307%]
  • ignore throughput [+5.812op/s; +30.518op/s] or [+0.627%; +3.291%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • ignore execution_time [+10.257µs; +20.555µs] or [+0.549%; +1.101%]
  • ignore throughput [-5.800op/s; -2.871op/s] or [-1.083%; -0.536%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472

  • ignore allocated_mem [-43 bytes; +21 bytes] or [-0.007%; +0.003%]
  • ignore execution_time [+24.370µs; +40.359µs] or [+0.952%; +1.576%]
  • ignore throughput [-5.965op/s; -3.609op/s] or [-1.527%; -0.924%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0

  • ignore allocated_mem [-38 bytes; +46 bytes] or [-0.006%; +0.007%]
  • 🟩 execution_time [-153.648µs; -115.445µs] or [-7.783%; -5.848%]
  • 🟩 throughput [+33.354op/s; +43.423op/s] or [+6.584%; +8.572%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1

  • ignore allocated_mem [-42 bytes; +23 bytes] or [-0.007%; +0.004%]
  • ignore execution_time [-139.056µs; -95.468µs] or [-3.526%; -2.421%]
  • ignore throughput [+6.575op/s; +9.376op/s] or [+2.593%; +3.697%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • 🟥 execution_time [+303.017ms; +304.202ms] or [+152.594%; +153.191%]
  • ignore throughput [+4911.024op/s; +7190.992op/s] or [+1.580%; +2.314%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+299.830ms; +307.064ms] or [+150.245%; +153.870%]
  • ignore throughput [+19110.281op/s; +26680.881op/s] or [+3.013%; +4.207%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+303.306ms; +306.904ms] or [+152.368%; +154.176%]
  • ignore throughput [+5656.663op/s; +15507.793op/s] or [+1.192%; +3.267%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.004%]
  • 🟥 execution_time [+302.280ms; +303.566ms] or [+151.795%; +152.440%]
  • ignore throughput [-3356.128op/s; -526.991op/s] or [-1.124%; -0.177%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.007%; +0.006%]
  • 🟥 execution_time [+298.932ms; +300.842ms] or [+147.808%; +148.753%]
  • ignore throughput [-707.187op/s; +5227.911op/s] or [-0.114%; +0.842%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • 🟥 execution_time [+303.168ms; +306.629ms] or [+153.659%; +155.413%]
  • ignore throughput [-5806.913op/s; +2688.699op/s] or [-1.254%; +0.581%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • ignore allocated_mem [+0 bytes; +1 bytes] or [+0.108%; +0.119%]
  • 🟥 execution_time [+300.432ms; +302.204ms] or [+150.790%; +151.679%]
  • ignore throughput [+10101.152op/s; +12183.646op/s] or [+2.620%; +3.161%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+298.341ms; +307.382ms] or [+148.695%; +153.202%]
  • 🟩 throughput [+50312.251op/s; +60742.023op/s] or [+9.990%; +12.061%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.006%]
  • 🟥 execution_time [+299.088ms; +311.066ms] or [+148.793%; +154.753%]
  • ignore throughput [-18281.491op/s; -9739.567op/s] or [-4.327%; -2.305%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [-448.800µs; +396.830µs] or [-0.223%; +0.197%]
  • ignore throughput [-8678.168op/s; -7501.180op/s] or [-3.490%; -3.016%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.003%]
  • 🟩 execution_time [-16.258ms; -12.595ms] or [-7.560%; -5.857%]
  • 🟩 throughput [+26656.562op/s; +33431.469op/s] or [+7.313%; +9.171%]

scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.008%]
  • ignore execution_time [-0.715ms; +3.243ms] or [-0.359%; +1.627%]
  • ignore throughput [+4872.166op/s; +10794.686op/s] or [+1.778%; +3.940%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472

  • ignore allocated_mem [-4.459KB; -4.431KB] or [-1.623%; -1.613%]
  • ignore execution_time [+5.410µs; +45.673µs] or [+1.336%; +11.282%]
  • ignore throughput [-240.703op/s; -37.457op/s] or [-9.686%; -1.507%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net6.0

  • 🟩 allocated_mem [-19.088KB; -19.068KB] or [-6.963%; -6.955%]
  • unstable execution_time [-56.703µs; -4.504µs] or [-11.207%; -0.890%]
  • ignore throughput [+33.562op/s; +216.616op/s] or [+1.675%; +10.809%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1

  • 🟩 allocated_mem [-19.177KB; -19.161KB] or [-6.991%; -6.985%]
  • unstable execution_time [-0.915µs; +105.930µs] or [-0.159%; +18.357%]
  • unstable throughput [-127.694op/s; +70.993op/s] or [-7.295%; +4.056%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472

  • ignore allocated_mem [-2 bytes; +2 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [+175.903ns; +1632.763ns] or [+0.305%; +2.828%]
  • ignore throughput [-459.756op/s; -48.022op/s] or [-2.653%; -0.277%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net6.0

  • ignore allocated_mem [-4 bytes; +0 bytes] or [-0.010%; -0.001%]
  • unstable execution_time [+5.457µs; +10.033µs] or [+12.900%; +23.715%]
  • 🟥 throughput [-4368.202op/s; -2541.419op/s] or [-18.389%; -10.699%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark netcoreapp3.1

  • ignore allocated_mem [-1 bytes; +1 bytes] or [-0.002%; +0.002%]
  • unstable execution_time [-14.576µs; -7.446µs] or [-22.613%; -11.553%]
  • 🟩 throughput [+1951.046op/s; +3468.969op/s] or [+11.970%; +21.283%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • ignore allocated_mem [+3 bytes; +4 bytes] or [+0.084%; +0.094%]
  • 🟥 execution_time [+301.472ms; +302.769ms] or [+152.381%; +153.036%]
  • ignore throughput [-122.417op/s; -100.982op/s] or [-2.046%; -1.687%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • 🟥 execution_time [+302.136ms; +304.625ms] or [+153.786%; +155.053%]
  • ignore throughput [-140.629op/s; -62.944op/s] or [-1.744%; -0.781%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • 🟥 execution_time [+300.485ms; +302.498ms] or [+150.430%; +151.438%]
  • ignore throughput [-133.433op/s; -69.372op/s] or [-1.700%; -0.884%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [+18.572µs; +1016.179µs] or [+0.009%; +0.507%]
  • ignore throughput [-6420.742op/s; -4942.294op/s] or [-1.777%; -1.368%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.007%]
  • ignore execution_time [-938.935µs; -53.127µs] or [-0.469%; -0.027%]
  • 🟩 throughput [+44278.899op/s; +47250.551op/s] or [+8.381%; +8.944%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.006%]
  • ignore execution_time [+1.176ms; +4.854ms] or [+0.596%; +2.461%]
  • ignore throughput [+546.176op/s; +9125.298op/s] or [+0.129%; +2.160%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • 🟥 execution_time [+298.977ms; +301.623ms] or [+149.013%; +150.332%]
  • ignore throughput [+944.764op/s; +2028.008op/s] or [+0.624%; +1.339%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+0.000%; +0.009%]
  • 🟥 execution_time [+302.397ms; +303.579ms] or [+151.849%; +152.443%]
  • ignore throughput [+3337.807op/s; +5451.998op/s] or [+1.452%; +2.371%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.003%]
  • 🟥 execution_time [+303.243ms; +305.861ms] or [+153.786%; +155.113%]
  • ignore throughput [-377.803op/s; +1583.757op/s] or [-0.213%; +0.892%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+300.070ms; +300.648ms] or [+149.677%; +149.965%]
  • 🟩 throughput [+61114497.554op/s; +61367140.971op/s] or [+44.507%; +44.691%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net6.0

  • ignore allocated_mem [+53 bytes; +55 bytes] or [+0.313%; +0.323%]
  • unstable execution_time [+383.363ms; +415.142ms] or [+476.780%; +516.303%]
  • 🟩 throughput [+896.858op/s; +1070.496op/s] or [+6.933%; +8.275%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [+nan%; +nan%]
  • 🟥 execution_time [+299.584ms; +300.528ms] or [+149.425%; +149.896%]
  • ignore throughput [+1690056.939op/s; +2630606.346op/s] or [+0.749%; +1.165%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-90.236µs; +547.329µs] or [-0.045%; +0.274%]
  • ignore throughput [+6275.938op/s; +10700.677op/s] or [+0.700%; +1.194%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-4.337ms; -3.063ms] or [-2.124%; -1.500%]
  • 🟩 throughput [+90185.592op/s; +98299.458op/s] or [+8.420%; +9.178%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.003%; +0.006%]
  • ignore execution_time [+1.536ms; +5.678ms] or [+0.777%; +2.873%]
  • 🟩 throughput [+69238.564op/s; +88471.393op/s] or [+8.014%; +10.240%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.000%; +0.009%]
  • ignore execution_time [-20.831µs; +542.811µs] or [-0.010%; +0.271%]
  • ignore throughput [-5445.771op/s; +1308.076op/s] or [-0.498%; +0.120%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.004%]
  • ignore execution_time [+5.578ms; +9.748ms] or [+2.906%; +5.079%]
  • 🟩 throughput [+78949.877op/s; +110641.707op/s] or [+6.111%; +8.564%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.001%; +0.008%]
  • ignore execution_time [-3.785ms; -2.373ms] or [-1.860%; -1.166%]
  • 🟩 throughput [+92083.148op/s; +99633.629op/s] or [+9.145%; +9.895%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.008%; +0.002%]
  • ignore execution_time [-1343.479µs; -26.007µs] or [-0.669%; -0.013%]
  • ignore throughput [+9725.785op/s; +12826.713op/s] or [+2.167%; +2.858%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.004%; +0.009%]
  • ignore execution_time [-1227.163µs; +379.805µs] or [-0.613%; +0.190%]
  • 🟩 throughput [+55395.056op/s; +59631.673op/s] or [+10.059%; +10.828%]

scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.006%; +0.004%]
  • ignore execution_time [-2018.405µs; +2081.871µs] or [-1.014%; +1.046%]
  • 🟩 throughput [+28079.161op/s; +37982.862op/s] or [+6.285%; +8.502%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.006%]
  • ignore execution_time [-1067.358µs; -68.647µs] or [-0.532%; -0.034%]
  • ignore throughput [-10468.339op/s; -6585.202op/s] or [-1.532%; -0.964%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net6.0

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.007%]
  • ignore execution_time [-1594.162µs; +1909.492µs] or [-0.797%; +0.955%]
  • ignore throughput [+40018.890op/s; +57900.484op/s] or [+4.471%; +6.469%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

  • ignore allocated_mem [+0 bytes; +0 bytes] or [-0.005%; +0.005%]
  • ignore execution_time [+1.118ms; +5.005ms] or [+0.568%; +2.542%]
  • ignore throughput [+26003.818op/s; +40880.007op/s] or [+3.631%; +5.708%]

@andrewlock
andrewlock marked this pull request as ready for review April 10, 2026 09:07
@andrewlock
andrewlock requested review from a team as code owners April 10, 2026 09:07

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3179a17d78

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tracer/src/Datadog.Trace/Agent/StatsAggregator.cs Outdated
Comment thread tracer/src/Datadog.Trace/Agent/AgentWriter.cs Outdated
@andrewlock
andrewlock marked this pull request as draft April 10, 2026 09:20
@andrewlock
andrewlock force-pushed the andrew/client-side-stats/update-processing-pipeline branch from 3179a17 to 2a9f4b3 Compare April 10, 2026 12:29
@andrewlock
andrewlock force-pushed the andrew/client-side-stats/refactor-trace-chunk-model branch from efd496f to bda5853 Compare April 10, 2026 12:29
@andrewlock
andrewlock marked this pull request as ready for review April 10, 2026 12:30

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2a9f4b3577

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tracer/src/Datadog.Trace/Agent/AgentWriter.cs Outdated
Comment thread tracer/src/Datadog.Trace/Agent/AgentWriter.cs Outdated
Comment thread tracer/src/Datadog.Trace/Agent/TraceKeepState.cs Outdated
@lucaspimentel
lucaspimentel requested a review from a team April 13, 2026 18:39
@andrewlock
andrewlock force-pushed the andrew/client-side-stats/update-processing-pipeline branch from 2a9f4b3 to 2106339 Compare April 14, 2026 10:08
@andrewlock
andrewlock requested review from a team as code owners April 14, 2026 10:08
@andrewlock
andrewlock force-pushed the andrew/client-side-stats/refactor-trace-chunk-model branch from bda5853 to 682df90 Compare April 14, 2026 10:08
Comment thread tracer/test/Datadog.Trace.Tests/Agent/StatsAggregatorTests.cs
Comment thread tracer/test/Datadog.Trace.Tests/Agent/StatsAggregatorTests.cs

@zacharycmontoya zacharycmontoya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some small comments!

@andrewlock
andrewlock force-pushed the andrew/client-side-stats/update-processing-pipeline branch from 2106339 to 1783517 Compare April 16, 2026 07:59
@andrewlock
andrewlock requested review from a team as code owners April 16, 2026 07:59
@andrewlock
andrewlock force-pushed the andrew/client-side-stats/refactor-trace-chunk-model branch 2 times, most recently from bcf6c7a to ce99c4b Compare April 20, 2026 16:12
Base automatically changed from andrew/client-side-stats/refactor-trace-chunk-model to master April 20, 2026 20:14
@andrewlock
andrewlock force-pushed the andrew/client-side-stats/update-processing-pipeline branch from 1783517 to 5ed9a0b Compare April 20, 2026 21:05
@andrewlock
andrewlock merged commit 2e20358 into master Apr 21, 2026
140 checks passed
@andrewlock
andrewlock deleted the andrew/client-side-stats/update-processing-pipeline branch April 21, 2026 06:01
@github-actions github-actions Bot added this to the vNext-v3 milestone Apr 21, 2026
andrewlock added a commit that referenced this pull request Apr 21, 2026
## Summary of changes

Improves the performance of peer-tag hash calculation for "fast path"
cases (where there's an existing bucket)

## Reason for change

We have to calculate the hash of all peer tags as part of
client-side-stats bucketing calculations, which involves encoding them
as utf-8. Additionally, when we _send_ the buckets, we have to send the
tags as utf-8.

In the initial CSS 1.2.0 implementation, we encoded the tags every-time
we ran a calculation, which would allocate for every span that had peer
tags, generally quite expensive. In this PR, we switch to doing the
encoding twice: once with a zero-allocation implementation (amortized 0
on .NET Framework) to calculate the hash, and then, _if_ we need the
"real" encoded tags, then we do that encoding again.

## Implementation details

- Split the peer tags work in two, once to calculate the peer tags hash,
once to get the actual tags as `key:value`
- In the hash-calculation stage, we can use `stackalloc` for .NET Core,
and array pool implementation for .NET Framework etc
- As additional optimizations, we also 
- Pre-encode the peer tag _keys_ to utf-8, so that we only need to do
those once for the hash calculation.
- Pass key details from `BuildKey` to `GetEncodedPeerTags` (i.e. is this
a "base service" only tag, if so, what's the tag value, otherwise how
big does the peer tag list need to be)
- If client-side stats is disabled, don't bother doing all the
pre-calculation (or for trace filters)

There are some possible future optimizations, _not_ implemented in this
PR:
- Track which tags require IP quantization to avoid re-doing it. (Maybe
we should allow-list the quantization anyway, so that it only applies to
specific tags? Or alternatively, block list?)
- Instead of doing the encoding of `tag:value`, allow writing the
pre-computed `byte[]` to `MessagePackBinary` and appending the `value`.
This is doable, but requires updating the `MessagePackBinary`
implementation to support it, so I considered it out of scope for now

## Test coverage

Mostly covered by existing tests, but added some additional unit tests
that directly compare the hashing to values used in Go agent tests.

Additionally did some benchmarking. The key thing is that the
`ClientSpanWithPeerTags` path is zero-allocation (and it's nice that the
slow-path is still lower allocation than before, even if it's slower
over all)

| Method | Runtime | Mean | Error | Allocated |
| -------------------------------------------------- |
------------------ | ----------: | ---------: | --------: |
| BuildKey_SimpleSpan_Before | .NET 10.0 | 44.34 ns | 0.906 ns | - |
| BuildKey_SimpleSpan_After | .NET 10.0 | 39.17 ns | 0.445 ns | - |
| BuildKey_SimpleSpan_Before | .NET 6.0 | 93.13 ns | 1.837 ns | - |
| BuildKey_SimpleSpan_After | .NET 6.0 | 87.56 ns | 0.839 ns | - |
| BuildKey_SimpleSpan_Before | .NET Core 3.1 | 192.53 ns | 2.572 ns | -
|
| BuildKey_SimpleSpan_After | .NET Core 3.1 | 217.32 ns | 4.362 ns | - |
| BuildKey_SimpleSpan_Before | .NET Framework 4.8 | 131.98 ns | 2.621 ns
| - |
| BuildKey_SimpleSpan_After | .NET Framework 4.8 | 175.20 ns | 7.647 ns
| - |
| | | | | |
| BuildKey_ClientSpanNoPeerTags_Before | .NET 10.0 | 160.62 ns | 2.622
ns | - |
| BuildKey_ClientSpanNoPeerTags_After | .NET 10.0 | 151.27 ns | 1.995 ns
| - |
| BuildKey_ClientSpanNoPeerTags_Before | .NET 6.0 | 243.62 ns | 3.199 ns
| - |
| BuildKey_ClientSpanNoPeerTags_After | .NET 6.0 | 232.55 ns | 2.975 ns
| - |
| BuildKey_ClientSpanNoPeerTags_Before | .NET Core 3.1 | 550.47 ns |
9.998 ns | - |
| BuildKey_ClientSpanNoPeerTags_After | .NET Core 3.1 | 680.42 ns |
10.022 ns | - |
| BuildKey_ClientSpanNoPeerTags_Before | .NET Framework 4.8 | 442.88 ns
| 8.854 ns | - |
| BuildKey_ClientSpanNoPeerTags_After | .NET Framework 4.8 | 682.12 ns |
13.468 ns | - |
| | | | | |
| BuildKey_ClientSpanWithPeerTags_Before | .NET 10.0 | 800.82 ns |
15.062 ns | 840 B |
| BuildKey_ClientSpanWithPeerTags_After | .NET 10.0 | 575.04 ns | 5.604
ns | - |
| BuildKey_ClientSpanWithPeerTags_Before | .NET 6.0 | 1,076.07 ns |
13.124 ns | 840 B |
| BuildKey_ClientSpanWithPeerTags_After | .NET 6.0 | 1,440.26 ns |
28.755 ns | - |
| BuildKey_ClientSpanWithPeerTags_Before | .NET Core 3.1 | 1,531.27 ns |
13.509 ns | 840 B |
| BuildKey_ClientSpanWithPeerTags_After | .NET Core 3.1 | 1,774.35 ns |
89.601 ns | - |
| BuildKey_ClientSpanWithPeerTags_Before | .NET Framework 4.8 | 1,682.15
ns | 17.082 ns | 859 B |
| BuildKey_ClientSpanWithPeerTags_After | .NET Framework 4.8 | 2,040.90
ns | 162.895 ns | - |
| | | | | |
| BuildKey_ClientSpanWithPeerTags_GetEncodedPeerTags | .NET 10.0 |
1,141.85 ns | 9.980 ns | 760 B |
| BuildKey_ClientSpanWithPeerTags_GetEncodedPeerTags | .NET 6.0 |
2,720.55 ns | 53.097 ns | 760 B |
| BuildKey_ClientSpanWithPeerTags_GetEncodedPeerTags | .NET Core 3.1 |
3,534.28 ns | 141.234 ns | 760 B |
| BuildKey_ClientSpanWithPeerTags_GetEncodedPeerTags | .NET Framework
4.8 | 3,438.80 ns | 84.352 ns | 778 B |


<details><summary>Details</summary>
<p>

```csharp
// <copyright file="StatsAggregatorBenchmark.cs" company="Datadog">
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache 2 License.
// This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2017 Datadog, Inc.
// </copyright>

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using Datadog.Trace;
using Datadog.Trace.Agent;
using Datadog.Trace.Agent.DiscoveryService;
using Datadog.Trace.Configuration;
using Datadog.Trace.Tagging;

namespace Benchmarks.Trace;

/// <summary>
/// StatsAggregator.BuildKey benchmarks
/// </summary>
[MemoryDiagnoser]
[BenchmarkCategory(Constants.TracerCategory)]
public class StatsAggregatorBenchmark
{
    private static readonly List<StatsAggregator.PeerTagKey> PeerTagKeys =
    [
        new("_dd.base_service"),
        new("aws.queue.name"),
        new("aws.queue.url"),
        new("aws.s3.bucket"),
        new("aws.stream.name"),
        new("bucketname"),
        new("db.couchbase.seed.nodes"),
        new("db.hostname"),
        new("db.instance"),
        new("db.system"),
        new("messaging.destination"),
        new("messaging.kafka.bootstrap.servers"),
        new("messaging.rabbitmq.exchange"),
        new("messaging.system"),
        new("network.destination.name"),
        new("peer.hostname"),
        new("peer.service"),
        new("server.address"),
        new("topic"),
    ];

    private StatsAggregator _aggregator;
    private Span _simpleSpan;
    private Span _clientSpanNoPeerTags;
    private Span _clientSpanWithPeerTags;
    private StatsAggregationKey _key;
    private List<byte[]> _encoded;

    [GlobalSetup]
    public void GlobalSetup()
    {
        _aggregator = new StatsAggregator(
            new NoOpApi(),
            new TracerSettings(),
            NullDiscoveryService.Instance,
            isOtlp: false);

        var now = DateTimeOffset.UtcNow;

        // Simple span: no span kind, no peer tags — exercises the "internal" fast path
        _simpleSpan = CreateSpan(now, "web-service", "web.request", "GET /api/users", "web");

        // Client span with SpanKind but no matching peer tags — iterates peer tag keys but finds nothing
        var clientTags = new HttpTags { HttpMethod = "GET", HttpStatusCode = "200" };
        _clientSpanNoPeerTags = CreateSpan(now, "web-service", "http.request", "GET /api/orders", "http", clientTags);

        // Client span with several peer tags set — the most expensive path
        var peerTags = new HttpTags { HttpMethod = "POST", HttpStatusCode = "200" };
        _clientSpanWithPeerTags = CreateSpan(now, "web-service", "http.request", "POST /api/data", "http", peerTags);
        _clientSpanWithPeerTags.Tags.SetTag("peer.service", "remote-service");
        _clientSpanWithPeerTags.Tags.SetTag("db.instance", "i-1234");
        _clientSpanWithPeerTags.Tags.SetTag("db.system", "postgres");
        _clientSpanWithPeerTags.Tags.SetTag("server.address", "db.example.com");
        _clientSpanWithPeerTags.Tags.SetTag("network.destination.name", "db.example.com");

    }

    [GlobalCleanup]
    public void GlobalCleanup()
    {
        _aggregator.DisposeAsync().GetAwaiter().GetResult();
        var value = _key;
        var encoded = _encoded;
    }

    /// <summary>
    /// BuildKey for a simple span with no span kind (internal fast-path, no peer tag iteration).
    /// </summary>
    [Benchmark]
    public void BuildKey_SimpleSpan()
    {
        _key = _aggregator.BuildKey(_simpleSpan, PeerTagKeys, out _);
    }

    /// <summary>
    /// BuildKey for a client span that has no matching peer tags (iterates all peer tag keys, finds none).
    /// </summary>
    [Benchmark]
    public void BuildKey_ClientSpanNoPeerTags()
    {
        _key = _aggregator.BuildKey(_clientSpanNoPeerTags, PeerTagKeys, out _);
    }

    /// <summary>
    /// BuildKey for a client span with several peer tags set (UTF-8 encoding + FNV hashing).
    /// </summary>
    [Benchmark]
    public void BuildKey_ClientSpanWithPeerTags()
    {
        _key = _aggregator.BuildKey(_clientSpanWithPeerTags, PeerTagKeys, out var results);
    }

    /// <summary>
    /// BuildKey for a client span with several peer tags set (UTF-8 encoding + FNV hashing).
    /// </summary>
    [Benchmark]
    public void BuildKey_ClientSpanWithPeerTags_GetEncodedPeerTags()
    {
        _key = _aggregator.BuildKey(_clientSpanWithPeerTags, PeerTagKeys, out var results);
        _encoded = StatsAggregator.GetEncodedPeerTags(_clientSpanWithPeerTags, PeerTagKeys, in results);
    }

    private static Span CreateSpan(DateTimeOffset start, string serviceName, string operationName, string resourceName, string type, ITags tags = null)
    {
        var tracer = Benchmarks.Trace.Asm.EmptyDatadogTracer.Instance;
        var traceContext = new TraceContext(tracer);
        var context = new SpanContext(null, traceContext, serviceName);
        var span = new Span(context, start, tags);
        span.OperationName = operationName;
        span.ResourceName = resourceName;
        span.Type = type;
        return span;
    }

    private sealed class NoOpApi : IApi
    {
        public TracesEncoding TracesEncoding => TracesEncoding.DatadogV0_4;

        public Task<bool> Ping() => Task.FromResult(true);

        public Task<bool> SendTracesAsync(ArraySegment<byte> traces, int numberOfTraces, bool statsComputationEnabled, long numberOfDroppedP0Traces, long numberOfDroppedP0Spans, bool apmTracingEnabled = true)
            => Task.FromResult(true);

        public Task<bool> SendStatsAsync(StatsBuffer stats, long bucketDuration, int tracerObfuscationVersion)
            => Task.FromResult(true);
    }
}
```

</p>
</details> 


## Other details


Part of a stack:
- #8417
- #8418
- #8420
- #8435
- #8436
- #8444
andrewlock added a commit that referenced this pull request Apr 23, 2026
## Summary of changes

Removes the minimum-agent version check from the client-side-stats check

## Reason for change

We didn't have it before, which means people who previously had stats,
suddenly won't have them. Also other agents (like bottlecap etc) don't
have the version. And we haven't figured out how to handle that yet.
While CSS is off by default, this seems like the best option to take.

## Implementation details

Remove the code that is checking for CSS support.

## Test coverage

Covered by existing (and removed a test for the behaviour)

## Other details

Follows on from 
- #8417
- #8418
- #8420
- #8435
- #8436
- #8444
- #8445
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:client-side-stats area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) type:refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants