Skip to content

[Stats] Fix partial_version exclusion: use >= 0 instead of > 0#8776

Merged
ichinaski merged 3 commits into
masterfrom
inigo/apmsp-3045-css-partial-version
Jun 11, 2026
Merged

[Stats] Fix partial_version exclusion: use >= 0 instead of > 0#8776
ichinaski merged 3 commits into
masterfrom
inigo/apmsp-3045-css-partial-version

Conversation

@ichinaski

@ichinaski ichinaski commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

CSS v1.2.0 spec §7 requires spans with _dd.partial_version >= 0 to be excluded from stats, but StatsAggregator.cs used > 0, silently including spans with value 0. This changes the check to >= 0. In C# with double?, null >= 0 is false, so spans without the metric are correctly included. Adds a unit test (TS014) for the value=0 case. Tracked in APMSP-3045; context in the CSS v1.2.0 Implementation Status.

@datadog-datadog-prod-us1

This comment has been minimized.

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8776) 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
duration73.07 ± (72.97 - 73.45) ms72.14 ± (72.14 - 72.46) ms-1.3%
.NET Framework 4.8 - Bailout
duration76.32 ± (76.05 - 76.43) ms77.10 ± (77.00 - 77.51) ms+1.0%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1095.39 ± (1091.61 - 1099.04) ms1090.48 ± (1090.22 - 1096.41) ms-0.4%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.71 ± (22.65 - 22.77) ms22.57 ± (22.52 - 22.61) ms-0.6%
process.time_to_main_ms84.30 ± (84.04 - 84.56) ms83.37 ± (83.19 - 83.54) ms-1.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.90 ± (10.89 - 10.90) MB10.92 ± (10.92 - 10.92) MB+0.2%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.46 ± (22.42 - 22.50) ms22.85 ± (22.79 - 22.91) ms+1.7%✅⬆️
process.time_to_main_ms84.38 ± (84.19 - 84.56) ms87.85 ± (87.58 - 88.12) ms+4.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.93 - 10.94) MB10.95 ± (10.94 - 10.95) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms215.25 ± (214.40 - 216.10) ms215.46 ± (214.55 - 216.36) ms+0.1%✅⬆️
process.time_to_main_ms540.52 ± (539.23 - 541.81) ms541.28 ± (540.02 - 542.54) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.28 ± (48.25 - 48.31) MB48.37 ± (48.33 - 48.40) MB+0.2%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 6 - Baseline
process.internal_duration_ms21.23 ± (21.17 - 21.28) ms21.19 ± (21.15 - 21.23) ms-0.2%
process.time_to_main_ms72.69 ± (72.47 - 72.91) ms72.24 ± (72.10 - 72.37) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.61 ± (10.60 - 10.61) MB10.63 ± (10.63 - 10.64) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.37 ± (21.33 - 21.42) ms21.35 ± (21.29 - 21.41) ms-0.1%
process.time_to_main_ms75.35 ± (75.10 - 75.59) ms74.63 ± (74.36 - 74.90) ms-0.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.73) MB10.75 ± (10.75 - 10.76) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms368.14 ± (366.15 - 370.13) ms369.43 ± (367.06 - 371.81) ms+0.4%✅⬆️
process.time_to_main_ms544.48 ± (543.32 - 545.64) ms543.86 ± (542.67 - 545.06) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.76 ± (49.74 - 49.78) MB49.75 ± (49.73 - 49.78) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.2%
.NET 8 - Baseline
process.internal_duration_ms19.29 ± (19.26 - 19.32) ms19.55 ± (19.51 - 19.60) ms+1.4%✅⬆️
process.time_to_main_ms71.77 ± (71.63 - 71.92) ms72.64 ± (72.43 - 72.85) ms+1.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.65 - 7.67) MB7.69 ± (7.68 - 7.70) MB+0.4%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.21 ± (19.17 - 19.25) ms19.30 ± (19.26 - 19.35) ms+0.5%✅⬆️
process.time_to_main_ms72.45 ± (72.33 - 72.58) ms72.60 ± (72.48 - 72.73) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.71 ± (7.70 - 7.71) MB7.72 ± (7.71 - 7.72) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms297.60 ± (295.48 - 299.71) ms296.94 ± (294.60 - 299.27) ms-0.2%
process.time_to_main_ms495.08 ± (494.13 - 496.02) ms494.32 ± (493.16 - 495.47) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.90 ± (36.87 - 36.92) MB36.85 ± (36.82 - 36.88) MB-0.1%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.5%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration199.34 ± (199.22 - 200.22) ms197.86 ± (197.60 - 198.59) ms-0.7%
.NET Framework 4.8 - Bailout
duration202.45 ± (202.48 - 203.42) ms201.57 ± (200.86 - 201.89) ms-0.4%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1193.87 ± (1195.59 - 1201.34) ms1190.62 ± (1191.02 - 1196.46) ms-0.3%
.NET Core 3.1 - Baseline
process.internal_duration_ms192.18 ± (191.74 - 192.62) ms192.26 ± (191.84 - 192.69) ms+0.0%✅⬆️
process.time_to_main_ms83.17 ± (82.90 - 83.43) ms82.93 ± (82.61 - 83.25) ms-0.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.14 ± (16.12 - 16.17) MB16.13 ± (16.10 - 16.15) MB-0.1%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.1%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms192.65 ± (192.21 - 193.09) ms192.31 ± (191.78 - 192.85) ms-0.2%
process.time_to_main_ms84.74 ± (84.53 - 84.95) ms84.19 ± (83.92 - 84.46) ms-0.6%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.07 - 16.14) MB16.14 ± (16.11 - 16.17) MB+0.2%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (20 - 21)-0.3%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms384.61 ± (383.35 - 385.88) ms382.73 ± (381.30 - 384.17) ms-0.5%
process.time_to_main_ms535.07 ± (533.97 - 536.17) ms535.50 ± (534.27 - 536.72) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.36 ± (57.18 - 57.53) MB57.10 ± (56.98 - 57.22) MB-0.4%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.1%
.NET 6 - Baseline
process.internal_duration_ms198.43 ± (198.09 - 198.76) ms197.10 ± (196.64 - 197.56) ms-0.7%
process.time_to_main_ms72.29 ± (72.05 - 72.54) ms72.02 ± (71.75 - 72.28) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.36 ± (16.34 - 16.38) MB16.39 ± (16.37 - 16.42) MB+0.2%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.0%
.NET 6 - Bailout
process.internal_duration_ms196.72 ± (196.31 - 197.12) ms196.06 ± (195.59 - 196.53) ms-0.3%
process.time_to_main_ms73.35 ± (73.10 - 73.59) ms73.11 ± (72.89 - 73.33) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.41 ± (16.38 - 16.43) MB16.45 ± (16.38 - 16.51) MB+0.2%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-1.9%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms586.98 ± (584.43 - 589.52) ms585.68 ± (583.09 - 588.26) ms-0.2%
process.time_to_main_ms544.90 ± (543.76 - 546.05) ms544.57 ± (543.44 - 545.70) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.06 ± (60.98 - 61.15) MB61.21 ± (61.10 - 61.31) MB+0.2%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.5%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms194.34 ± (193.93 - 194.74) ms194.61 ± (194.10 - 195.12) ms+0.1%✅⬆️
process.time_to_main_ms71.05 ± (70.77 - 71.34) ms71.42 ± (71.16 - 71.68) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.75 ± (11.73 - 11.78) MB11.80 ± (11.78 - 11.82) MB+0.4%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.2%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms194.37 ± (194.07 - 194.67) ms193.86 ± (193.45 - 194.27) ms-0.3%
process.time_to_main_ms72.45 ± (72.22 - 72.69) ms72.56 ± (72.37 - 72.76) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.82 ± (11.80 - 11.84) MB11.82 ± (11.80 - 11.84) MB+0.0%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.1%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms517.23 ± (514.71 - 519.74) ms513.73 ± (511.06 - 516.40) ms-0.7%
process.time_to_main_ms493.35 ± (492.56 - 494.14) ms494.54 ± (493.72 - 495.36) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.65 ± (50.62 - 50.69) MB50.72 ± (50.68 - 50.76) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (29 - 30)30 ± (29 - 30)+0.1%✅⬆️
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 (8776) - mean (72ms)  : 70, 75
    master - mean (73ms)  : 70, 77

    section Bailout
    This PR (8776) - mean (77ms)  : 73, 81
    master - mean (76ms)  : 74, 78

    section CallTarget+Inlining+NGEN
    This PR (8776) - mean (1,093ms)  : 1049, 1137
    master - mean (1,095ms)  : 1041, 1150

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 (8776) - mean (113ms)  : 109, 116
    master - mean (114ms)  : 108, 120

    section Bailout
    This PR (8776) - mean (118ms)  : 113, 123
    master - mean (113ms)  : 111, 116

    section CallTarget+Inlining+NGEN
    This PR (8776) - mean (794ms)  : 771, 816
    master - mean (793ms)  : 767, 818

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8776) - mean (100ms)  : 97, 103
    master - mean (100ms)  : 96, 104

    section Bailout
    This PR (8776) - mean (103ms)  : 97, 108
    master - mean (103ms)  : 99, 108

    section CallTarget+Inlining+NGEN
    This PR (8776) - mean (943ms)  : 905, 980
    master - mean (944ms)  : 902, 986

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8776) - mean (100ms)  : 95, 105
    master - mean (99ms)  : 95, 102

    section Bailout
    This PR (8776) - mean (99ms)  : 98, 101
    master - mean (99ms)  : 97, 101

    section CallTarget+Inlining+NGEN
    This PR (8776) - mean (823ms)  : 774, 872
    master - mean (821ms)  : 782, 860

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 (8776) - mean (198ms)  : 191, 205
    master - mean (200ms)  : 192, 207

    section Bailout
    This PR (8776) - mean (201ms)  : 196, 207
    master - mean (203ms)  : 198, 208

    section CallTarget+Inlining+NGEN
    This PR (8776) - mean (1,194ms)  : 1155, 1232
    master - mean (1,198ms)  : 1157, 1240

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 (8776) - mean (284ms)  : 277, 291
    master - mean (284ms)  : 277, 292

    section Bailout
    This PR (8776) - mean (285ms)  : 278, 293
    master - mean (286ms)  : 281, 291

    section CallTarget+Inlining+NGEN
    This PR (8776) - mean (957ms)  : 936, 978
    master - mean (959ms)  : 940, 978

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8776) - mean (278ms)  : 270, 285
    master - mean (279ms)  : 274, 284

    section Bailout
    This PR (8776) - mean (277ms)  : 270, 285
    master - mean (278ms)  : 274, 283

    section CallTarget+Inlining+NGEN
    This PR (8776) - mean (1,158ms)  : 1120, 1196
    master - mean (1,160ms)  : 1125, 1196

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8776) - mean (276ms)  : 269, 284
    master - mean (276ms)  : 270, 281

    section Bailout
    This PR (8776) - mean (276ms)  : 272, 280
    master - mean (277ms)  : 273, 280

    section CallTarget+Inlining+NGEN
    This PR (8776) - mean (1,039ms)  : 989, 1090
    master - mean (1,040ms)  : 1003, 1078

Loading

@pr-commenter

pr-commenter Bot commented Jun 10, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-06-11 10:05:29

Comparing candidate commit 53a35ff in PR branch inigo/apmsp-3045-css-partial-version with baseline commit cf138c1 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 2 performance regressions! Performance is the same for 70 metrics, 0 unstable metrics, 63 known flaky benchmarks, 63 flaky benchmarks without significant changes.

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 ----------------------------------'

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartActiveSpan net6.0

  • 🟥 throughput [-27341.674op/s; -22946.753op/s] or [-9.831%; -8.251%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-5044.641op/s; -4664.097op/s] or [-5.759%; -5.324%]

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.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0

  • 🟥 throughput [-23232.807op/s; -17941.349op/s] or [-8.275%; -6.390%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-7464.316op/s; -7037.250op/s] or [-8.850%; -8.344%]

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

  • 🟥 throughput [-10012.967op/s; -7958.399op/s] or [-10.181%; -8.092%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+313.969ms; +320.317ms] or [+155.803%; +158.953%]
  • 🟥 throughput [-46.036op/s; -41.558op/s] or [-8.283%; -7.477%]

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

  • 🟥 execution_time [+379.695ms; +381.622ms] or [+299.983%; +301.505%]
  • 🟩 throughput [+96.766op/s; +102.266op/s] or [+12.758%; +13.483%]

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

  • 🟥 execution_time [+392.645ms; +395.067ms] or [+347.475%; +349.619%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.528%; +27.540%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.976%; +9.987%]
  • 🟩 execution_time [-15.927ms; -11.733ms] or [-7.438%; -5.480%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-270533.678op/s; -266610.172op/s] or [-27.623%; -27.222%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.947ms; -22.080ms] or [-12.017%; -9.847%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-169944.574op/s; -153553.983op/s] or [-24.418%; -22.063%]

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

  • 🟩 throughput [+8520.694op/s; +11541.807op/s] or [+5.422%; +7.344%]

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

  • 🟩 throughput [+8378.287op/s; +11123.487op/s] or [+6.674%; +8.861%]

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

  • 🟩 throughput [+436419.588op/s; +474007.449op/s] or [+14.552%; +15.805%]

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

  • 🟩 execution_time [-19.050ms; -14.711ms] or [-8.781%; -6.781%]
  • 🟩 throughput [+160167.966op/s; +214538.148op/s] or [+6.358%; +8.516%]

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

  • 🟥 execution_time [+299.630ms; +300.462ms] or [+149.715%; +150.131%]

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

  • 🟥 execution_time [+300.159ms; +303.498ms] or [+151.371%; +153.055%]
  • 🟩 throughput [+659.905op/s; +871.335op/s] or [+5.047%; +6.664%]

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

  • 🟥 execution_time [+300.748ms; +303.119ms] or [+151.493%; +152.688%]

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

  • 🟥 execution_time [+296.432ms; +297.346ms] or [+145.596%; +146.045%]

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

  • 🟥 execution_time [+294.297ms; +299.830ms] or [+143.871%; +146.576%]

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

  • 🟥 execution_time [+299.960ms; +301.881ms] or [+149.920%; +150.880%]

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

  • 🟥 execution_time [+23.353µs; +46.928µs] or [+7.456%; +14.982%]
  • 🟥 throughput [-436.431op/s; -238.034op/s] or [-13.605%; -7.420%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.400ms; +300.089ms] or [+149.431%; +149.775%]

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

  • unstable execution_time [+333.867ms; +401.238ms] or [+362.761%; +435.962%]
  • 🟩 throughput [+621.650op/s; +848.818op/s] or [+5.108%; +6.975%]

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

  • unstable execution_time [+245.648ms; +309.149ms] or [+186.519%; +234.734%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+2.861KB; +2.866KB] or [+5.082%; +5.091%]
  • unstable execution_time [+280.850ms; +348.750ms] or [+129.132%; +160.352%]
  • 🟥 throughput [-529.810op/s; -483.608op/s] or [-48.006%; -43.820%]

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

  • unstable execution_time [+214.428ms; +347.678ms] or [+91.380%; +148.166%]
  • 🟥 throughput [-678.540op/s; -594.674op/s] or [-45.259%; -39.665%]

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

  • 🟥 execution_time [+329.711ms; +342.954ms] or [+197.205%; +205.127%]
  • 🟥 throughput [-431.446op/s; -392.562op/s] or [-30.041%; -27.334%]

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

  • unstable throughput [+17.744op/s; +58.302op/s] or [+5.101%; +16.759%]

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

  • 🟩 execution_time [-93.954µs; -61.212µs] or [-8.714%; -5.677%]
  • 🟩 throughput [+57.794op/s; +93.280op/s] or [+6.231%; +10.058%]

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

  • 🟩 execution_time [-174.116µs; -116.337µs] or [-8.820%; -5.893%]
  • 🟩 throughput [+34.215op/s; +49.249op/s] or [+6.754%; +9.722%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+303.019ms; +305.358ms] or [+152.595%; +153.772%]

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

  • 🟥 execution_time [+301.032ms; +302.453ms] or [+150.847%; +151.560%]

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

  • 🟥 execution_time [+299.946ms; +304.188ms] or [+150.680%; +152.811%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+304.535ms; +306.941ms] or [+152.927%; +154.135%]

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

  • 🟥 execution_time [+296.765ms; +298.854ms] or [+146.737%; +147.770%]

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

  • 🟥 execution_time [+302.059ms; +305.948ms] or [+153.097%; +155.068%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+302.582ms; +305.646ms] or [+151.869%; +153.407%]

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

  • 🟥 execution_time [+301.342ms; +304.879ms] or [+150.192%; +151.954%]
  • 🟩 throughput [+41043.820op/s; +47126.403op/s] or [+8.150%; +9.358%]

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

  • 🟥 execution_time [+301.095ms; +303.818ms] or [+149.792%; +151.147%]

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

  • 🟩 throughput [+16517.691op/s; +22533.544op/s] or [+6.029%; +8.225%]

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

  • unstable execution_time [+1.265µs; +44.725µs] or [+0.313%; +11.047%]

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

  • 🟩 allocated_mem [-19.050KB; -19.028KB] or [-6.949%; -6.941%]
  • unstable execution_time [-46.353µs; +11.936µs] or [-9.161%; +2.359%]
  • unstable throughput [-32.452op/s; +171.203op/s] or [-1.619%; +8.543%]

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

  • 🟩 allocated_mem [-17.523KB; -17.505KB] or [-6.388%; -6.382%]
  • unstable execution_time [-64.362µs; -2.767µs] or [-11.154%; -0.479%]

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

  • unstable execution_time [+6.509µs; +12.385µs] or [+15.386%; +29.275%]
  • 🟥 throughput [-5096.507op/s; -2991.284op/s] or [-21.455%; -12.592%]

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

  • unstable execution_time [-14.395µs; -6.479µs] or [-22.333%; -10.052%]
  • unstable throughput [+1663.997op/s; +3353.186op/s] or [+10.209%; +20.573%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.683ms; +303.714ms] or [+152.487%; +153.514%]

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

  • 🟥 execution_time [+303.710ms; +306.916ms] or [+154.587%; +156.219%]

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

  • 🟥 execution_time [+300.105ms; +302.284ms] or [+150.239%; +151.331%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.906ms; +302.490ms] or [+149.476%; +150.764%]

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

  • 🟥 execution_time [+300.305ms; +303.152ms] or [+150.799%; +152.228%]

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

  • 🟥 execution_time [+303.350ms; +305.716ms] or [+153.840%; +155.039%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+298.786ms; +299.824ms] or [+149.036%; +149.554%]
  • 🟩 throughput [+61302828.692op/s; +61635377.870op/s] or [+44.645%; +44.887%]

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

  • unstable execution_time [+333.409ms; +396.325ms] or [+414.653%; +492.900%]

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

  • 🟥 execution_time [+299.623ms; +300.764ms] or [+149.445%; +150.014%]

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

  • 🟩 throughput [+104271.969op/s; +111379.936op/s] or [+9.736%; +10.399%]

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

  • 🟩 throughput [+45132.187op/s; +65934.238op/s] or [+5.224%; +7.632%]

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

  • 🟩 throughput [+98591.056op/s; +128136.163op/s] or [+7.631%; +9.918%]

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

  • 🟩 throughput [+85934.313op/s; +94220.035op/s] or [+8.535%; +9.358%]

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

  • 🟩 throughput [+50321.252op/s; +55301.573op/s] or [+9.137%; +10.042%]

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

  • 🟩 throughput [+22785.926op/s; +32919.435op/s] or [+5.100%; +7.368%]

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

  • 🟩 throughput [+87903.597op/s; +105702.391op/s] or [+9.821%; +11.810%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net6.0
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmarkWithAttack netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net6.0
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@ichinaski
ichinaski requested a review from Copilot June 10, 2026 14:36
@ichinaski
ichinaski marked this pull request as ready for review June 10, 2026 14:36
@ichinaski
ichinaski requested a review from a team as a code owner June 10, 2026 14:36

Copilot AI 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.

Pull request overview

This PR aligns StatsAggregator with the CSS v1.2.0 spec by excluding spans from stats when _dd.partial_version is present and >= 0, fixing the prior behavior that incorrectly included spans with _dd.partial_version = 0.

Changes:

  • Update stats exclusion logic to treat _dd.partial_version = 0 as excluded (>= 0 instead of > 0).
  • Add a regression unit test (TS014) to ensure spans with _dd.partial_version = 0 are excluded from stats aggregation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tracer/src/Datadog.Trace/Agent/StatsAggregator.cs Fixes exclusion condition so spans with _dd.partial_version >= 0 are not included in stats buckets.
tracer/test/Datadog.Trace.Tests/Agent/StatsAggregatorTests.cs Adds a unit test validating the new exclusion behavior for _dd.partial_version = 0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@andrewlock andrewlock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, I wonder if this should be tested in system tests too?

Comment thread tracer/test/Datadog.Trace.Tests/Agent/StatsAggregatorTests.cs Outdated
@ichinaski

Copy link
Copy Markdown
Contributor Author

LGTM, I wonder if this should be tested in system tests too?

It is already tested, and once this fix lands we can remove this from the manifest: https://github.com/DataDog/system-tests/blob/main/manifests/dotnet.yml#L885

@ichinaski
ichinaski merged commit 4f368a2 into master Jun 11, 2026
138 checks passed
@ichinaski
ichinaski deleted the inigo/apmsp-3045-css-partial-version branch June 11, 2026 12:29
@github-actions github-actions Bot added this to the vNext-v3 milestone Jun 11, 2026
zacharycmontoya pushed a commit that referenced this pull request Jun 16, 2026
CSS v1.2.0 spec §7 requires spans with `_dd.partial_version` >= 0 to be
excluded from stats, but `StatsAggregator.cs` used `> 0`, silently
including spans with value 0. This changes the check to `>= 0`. In C#
with `double?`, `null >= 0` is false, so spans without the metric are
correctly included. Adds a unit test (`TS014`) for the value=0 case.
Tracked in
[APMSP-3045](https://datadoghq.atlassian.net/browse/APMSP-3045); context
in the [CSS v1.2.0 Implementation
Status](https://datadoghq.atlassian.net/wiki/spaces/APM/pages/6378587288/Implementation+Status).

[APMSP-3045]:
https://datadoghq.atlassian.net/browse/APMSP-3045?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants