Skip to content

Decrease warnings part 3#8546

Merged
NachoEchevarria merged 17 commits into
masterfrom
nacho/decreaseWarningsPart3
May 7, 2026
Merged

Decrease warnings part 3#8546
NachoEchevarria merged 17 commits into
masterfrom
nacho/decreaseWarningsPart3

Conversation

@NachoEchevarria

@NachoEchevarria NachoEchevarria commented Apr 30, 2026

Copy link
Copy Markdown
Collaborator

Summary of changes

Part 3 of the warning-reduction series. ~25 warning sources eliminated across sample/regression projects and the runner tool.

Previous PRs:
#8534
#8519

Reason for change

CI emits ~17k warnings; chipping away at the batch surfaced after parts 1-2 merged.

Implementation details

  • Deleted redundant PackageReferences (NU1510 — flagged framework-provided on the target TFM and not needed): Microsoft.AspNetCore.Mvc.RazorPages, Microsoft.Extensions.Logging.Debug, System.Runtime.InteropServices.RuntimeInformation, System.Data.Common, System.Net.Http 4.3.4, System.IO.FileSystem, System.Net.NameResolution.
  • Targeted <NoWarn> (with comment explaining why the reference is load-bearing):
    • NU1510 for System.Memory / System.Net.Http on net4x targets — Probes, CallTargetNativeTest, VersionConflict.{1x,2x}, DuplicateTypeProxy.
    • MSTEST0001/0044/0057 + NU1701 — MSTestTests, MSTestTests2, MSTestTestsRetries.
    • NETSDK1201 — ManualInstrumentation; ASP0014 — Ocelot.DistributedTracing.
    • IL2104 — Datadog.Trace.Tools.Runner (third-party assemblies already rooted via <TrimmerRootAssembly>).
  • Nullability fixes: SampleHelpers.TrySetServiceName parameter widened to string? with an early-return guard so we don't reflection-invoke the setter with null; redundant evaluation?.Error removed in Samples.FeatureFlags/Evaluator.cs (was de-narrowing the flow state and tripping CS8602 on net48); Samples.GrpcDotNet/Worker.cs [CallerMemberName] default fixed.

Test coverage

No behavioral changes. CI verifies the warning count drops without breaking compilation.

Other details

@dd-trace-dotnet-ci-bot

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

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8546) 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
duration74.96 ± (74.86 - 75.40) ms72.43 ± (72.42 - 72.71) ms-3.4%
.NET Framework 4.8 - Bailout
duration77.45 ± (77.36 - 77.81) ms78.65 ± (78.55 - 79.07) ms+1.5%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1126.63 ± (1127.49 - 1136.44) ms1126.22 ± (1127.14 - 1134.36) ms-0.0%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.47 ± (22.42 - 22.53) ms23.05 ± (22.99 - 23.11) ms+2.6%✅⬆️
process.time_to_main_ms84.76 ± (84.53 - 85.00) ms88.34 ± (87.98 - 88.69) ms+4.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.91 - 10.92) MB10.92 ± (10.92 - 10.92) MB+0.0%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.47 ± (22.43 - 22.51) ms22.57 ± (22.53 - 22.61) ms+0.4%✅⬆️
process.time_to_main_ms86.66 ± (86.37 - 86.94) ms86.97 ± (86.75 - 87.20) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.95 ± (10.94 - 10.95) MB10.95 ± (10.95 - 10.96) MB+0.0%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms205.27 ± (204.69 - 205.85) ms205.71 ± (205.15 - 206.28) ms+0.2%✅⬆️
process.time_to_main_ms566.64 ± (565.14 - 568.15) ms567.85 ± (566.48 - 569.22) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.81 ± (49.79 - 49.83) MB49.79 ± (49.77 - 49.82) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+1.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.17 ± (21.13 - 21.21) ms21.61 ± (21.55 - 21.67) ms+2.1%✅⬆️
process.time_to_main_ms73.37 ± (73.19 - 73.55) ms76.17 ± (75.86 - 76.48) ms+3.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.63) MB10.64 ± (10.64 - 10.64) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.11 ± (21.07 - 21.14) ms21.35 ± (21.29 - 21.41) ms+1.2%✅⬆️
process.time_to_main_ms74.50 ± (74.30 - 74.71) ms76.11 ± (75.83 - 76.39) ms+2.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.74 ± (10.74 - 10.74) MB10.75 ± (10.75 - 10.75) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms353.20 ± (351.27 - 355.13) ms357.44 ± (355.11 - 359.78) ms+1.2%✅⬆️
process.time_to_main_ms558.42 ± (556.91 - 559.93) ms565.72 ± (564.19 - 567.24) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed51.15 ± (51.13 - 51.18) MB51.16 ± (51.14 - 51.18) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.8%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms20.02 ± (19.96 - 20.08) ms19.56 ± (19.53 - 19.60) ms-2.3%
process.time_to_main_ms76.39 ± (76.13 - 76.64) ms73.33 ± (73.16 - 73.50) ms-4.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.67 - 7.68) MB7.65 ± (7.64 - 7.65) MB-0.3%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.58 ± (19.54 - 19.61) ms20.13 ± (20.06 - 20.21) ms+2.8%✅⬆️
process.time_to_main_ms74.33 ± (74.16 - 74.50) ms77.88 ± (77.56 - 78.20) ms+4.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.72) MB7.71 ± (7.70 - 7.71) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms285.43 ± (282.00 - 288.85) ms283.26 ± (280.33 - 286.19) ms-0.8%
process.time_to_main_ms521.91 ± (520.58 - 523.25) ms524.10 ± (522.85 - 525.36) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.84 ± (37.81 - 37.87) MB37.94 ± (37.91 - 37.97) MB+0.3%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 28)+0.2%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration202.04 ± (202.28 - 203.49) ms201.48 ± (201.27 - 202.37) ms-0.3%
.NET Framework 4.8 - Bailout
duration206.34 ± (206.40 - 207.52) ms206.40 ± (205.90 - 207.09) ms+0.0%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1263.81 ± (1262.66 - 1270.11) ms1246.39 ± (1243.20 - 1249.97) ms-1.4%
.NET Core 3.1 - Baseline
process.internal_duration_ms200.89 ± (200.18 - 201.59) ms197.63 ± (196.90 - 198.37) ms-1.6%
process.time_to_main_ms87.00 ± (86.66 - 87.34) ms85.90 ± (85.50 - 86.31) ms-1.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.88 ± (15.86 - 15.89) MB15.99 ± (15.97 - 16.01) MB+0.7%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-1.5%
.NET Core 3.1 - Bailout
process.internal_duration_ms199.54 ± (198.90 - 200.18) ms197.17 ± (196.61 - 197.72) ms-1.2%
process.time_to_main_ms88.16 ± (87.86 - 88.45) ms87.92 ± (87.63 - 88.21) ms-0.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.97 ± (15.95 - 15.99) MB16.03 ± (16.01 - 16.04) MB+0.4%✅⬆️
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.9%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms382.89 ± (381.72 - 384.06) ms384.11 ± (382.83 - 385.39) ms+0.3%✅⬆️
process.time_to_main_ms579.95 ± (578.18 - 581.73) ms577.67 ± (576.04 - 579.31) ms-0.4%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.35 ± (58.30 - 58.41) MB58.59 ± (58.47 - 58.71) MB+0.4%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.0%
.NET 6 - Baseline
process.internal_duration_ms204.40 ± (203.79 - 205.01) ms203.93 ± (203.35 - 204.52) ms-0.2%
process.time_to_main_ms75.22 ± (74.97 - 75.47) ms75.72 ± (75.45 - 76.00) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.21 ± (16.19 - 16.23) MB16.27 ± (16.25 - 16.28) MB+0.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.9%
.NET 6 - Bailout
process.internal_duration_ms203.59 ± (203.05 - 204.14) ms204.70 ± (204.15 - 205.25) ms+0.5%✅⬆️
process.time_to_main_ms76.69 ± (76.44 - 76.95) ms77.30 ± (77.01 - 77.58) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.25 ± (16.23 - 16.27) MB16.32 ± (16.30 - 16.34) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms572.89 ± (570.45 - 575.33) ms568.34 ± (565.81 - 570.86) ms-0.8%
process.time_to_main_ms575.66 ± (574.32 - 576.99) ms572.59 ± (571.51 - 573.68) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.93 ± (61.89 - 61.97) MB62.02 ± (61.98 - 62.05) MB+0.1%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.3%
.NET 8 - Baseline
process.internal_duration_ms202.91 ± (202.32 - 203.49) ms204.65 ± (204.01 - 205.29) ms+0.9%✅⬆️
process.time_to_main_ms75.10 ± (74.82 - 75.37) ms75.59 ± (75.34 - 75.85) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.65 ± (11.64 - 11.67) MB11.55 ± (11.54 - 11.57) MB-0.9%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms204.40 ± (203.74 - 205.05) ms202.87 ± (202.27 - 203.47) ms-0.7%
process.time_to_main_ms76.85 ± (76.59 - 77.11) ms76.25 ± (76.01 - 76.49) ms-0.8%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.70 ± (11.68 - 11.71) MB11.64 ± (11.63 - 11.66) MB-0.4%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms496.50 ± (492.46 - 500.55) ms504.06 ± (498.78 - 509.35) ms+1.5%✅⬆️
process.time_to_main_ms531.97 ± (530.68 - 533.25) ms536.66 ± (535.30 - 538.02) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.64 ± (51.60 - 51.68) MB51.58 ± (51.54 - 51.61) MB-0.1%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 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 (8546) - mean (73ms)  : 70, 75
    master - mean (75ms)  : 71, 79

    section Bailout
    This PR (8546) - mean (79ms)  : 75, 83
    master - mean (78ms)  : 74, 81

    section CallTarget+Inlining+NGEN
    This PR (8546) - mean (1,131ms)  : 1085, 1176
    master - mean (1,132ms)  : 1068, 1196

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 (8546) - mean (119ms)  : 112, 125
    master - mean (114ms)  : 109, 119

    section Bailout
    This PR (8546) - mean (117ms)  : 112, 121
    master - mean (116ms)  : 111, 121

    section CallTarget+Inlining+NGEN
    This PR (8546) - mean (812ms)  : 785, 839
    master - mean (809ms)  : 778, 840

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

    section Bailout
    This PR (8546) - mean (104ms)  : 98, 110
    master - mean (102ms)  : 99, 104

    section CallTarget+Inlining+NGEN
    This PR (8546) - mean (952ms)  : 911, 993
    master - mean (943ms)  : 906, 980

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

    section Bailout
    This PR (8546) - mean (106ms)  : 99, 113
    master - mean (102ms)  : 98, 105

    section CallTarget+Inlining+NGEN
    This PR (8546) - mean (850ms)  : 772, 927
    master - mean (835ms)  : 780, 890

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 (8546) - mean (202ms)  : 194, 210
    master - mean (203ms)  : 194, 212

    section Bailout
    This PR (8546) - mean (206ms)  : 197, 216
    master - mean (207ms)  : 199, 215

    section CallTarget+Inlining+NGEN
    This PR (8546) - mean (1,247ms)  : 1198, 1295
    master - mean (1,266ms)  : 1213, 1320

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 (8546) - mean (293ms)  : 276, 309
    master - mean (298ms)  : 284, 312

    section Bailout
    This PR (8546) - mean (295ms)  : 284, 307
    master - mean (298ms)  : 281, 315

    section CallTarget+Inlining+NGEN
    This PR (8546) - mean (1,003ms)  : 974, 1033
    master - mean (1,007ms)  : 985, 1028

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8546) - mean (290ms)  : 276, 303
    master - mean (289ms)  : 277, 301

    section Bailout
    This PR (8546) - mean (292ms)  : 278, 305
    master - mean (290ms)  : 278, 302

    section CallTarget+Inlining+NGEN
    This PR (8546) - mean (1,176ms)  : 1130, 1222
    master - mean (1,182ms)  : 1137, 1226

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8546) - mean (291ms)  : 280, 303
    master - mean (290ms)  : 277, 303

    section Bailout
    This PR (8546) - mean (290ms)  : 277, 303
    master - mean (293ms)  : 277, 309

    section CallTarget+Inlining+NGEN
    This PR (8546) - mean (1,081ms)  : 990, 1172
    master - mean (1,064ms)  : 991, 1137

Loading

@pr-commenter

pr-commenter Bot commented Apr 30, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-07 10:52:05

Comparing candidate commit 0e240c9 in PR branch nacho/decreaseWarningsPart3 with baseline commit eb916fc in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 59 known flaky benchmarks, 28 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 ----------------------------------'

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 net6.0

  • 🟩 throughput [+8491.430op/s; +10804.283op/s] or [+7.137%; +9.081%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+319.765ms; +323.581ms] or [+158.679%; +160.572%]
  • 🟥 throughput [-44.089op/s; -40.063op/s] or [-7.933%; -7.208%]

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

  • 🟥 execution_time [+376.610ms; +378.439ms] or [+297.545%; +298.990%]
  • 🟩 throughput [+93.305op/s; +97.479op/s] or [+12.302%; +12.852%]

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

  • 🟥 execution_time [+393.678ms; +396.324ms] or [+348.390%; +350.732%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.529%; +27.541%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.977%; +9.987%]
  • 🟩 execution_time [-16.288ms; -12.049ms] or [-7.607%; -5.627%]

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

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

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.746%; +105.759%]
  • 🟥 throughput [-266153.429op/s; -262048.501op/s] or [-27.176%; -26.756%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-25.853ms; -20.974ms] or [-11.530%; -9.354%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • 🟥 throughput [-144412.104op/s; -128090.982op/s] or [-20.749%; -18.404%]

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

  • 🟩 throughput [+8489.197op/s; +11489.345op/s] or [+5.402%; +7.310%]

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

  • 🟩 throughput [+360621.405op/s; +429519.057op/s] or [+12.025%; +14.322%]

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

  • 🟩 execution_time [-18.206ms; -13.818ms] or [-8.392%; -6.369%]
  • 🟩 throughput [+184142.216op/s; +238503.076op/s] or [+7.309%; +9.467%]

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

  • 🟥 execution_time [+299.759ms; +300.439ms] or [+149.779%; +150.119%]

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

  • 🟥 execution_time [+300.103ms; +303.228ms] or [+151.343%; +152.919%]

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

  • 🟥 execution_time [+299.578ms; +302.092ms] or [+150.904%; +152.171%]

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

  • 🟥 execution_time [+296.450ms; +297.036ms] or [+145.604%; +145.892%]

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

  • 🟥 execution_time [+294.093ms; +295.750ms] or [+143.771%; +144.581%]

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

  • 🟥 execution_time [+301.051ms; +302.576ms] or [+150.465%; +151.227%]

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

  • 🟥 execution_time [+21.993µs; +48.720µs] or [+5.044%; +11.174%]
  • 🟥 throughput [-238.133op/s; -117.916op/s] or [-10.353%; -5.127%]

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

  • 🟥 execution_time [+25.860µs; +50.420µs] or [+8.256%; +16.096%]
  • 🟥 throughput [-457.586op/s; -254.103op/s] or [-14.264%; -7.921%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.546ms; +300.198ms] or [+149.504%; +149.829%]

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

  • unstable execution_time [+305.132ms; +355.550ms] or [+331.538%; +386.320%]
  • 🟩 throughput [+1168.593op/s; +1334.505op/s] or [+9.602%; +10.966%]

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

  • unstable execution_time [+269.907ms; +318.143ms] or [+204.938%; +241.563%]
  • 🟩 throughput [+698.942op/s; +901.088op/s] or [+6.766%; +8.723%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+2.873KB; +2.878KB] or [+5.104%; +5.113%]
  • unstable execution_time [+313.912ms; +350.418ms] or [+144.334%; +161.119%]
  • 🟥 throughput [-506.862op/s; -475.705op/s] or [-45.927%; -43.103%]

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

  • unstable execution_time [+211.509ms; +344.734ms] or [+90.136%; +146.911%]
  • 🟥 throughput [-673.494op/s; -589.992op/s] or [-44.922%; -39.353%]

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

  • 🟥 allocated_mem [+2.304KB; +2.308KB] or [+5.441%; +5.449%]
  • 🟥 execution_time [+359.392ms; +371.139ms] or [+214.958%; +221.984%]
  • 🟥 throughput [-431.074op/s; -395.277op/s] or [-30.015%; -27.523%]

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

  • 🟩 throughput [+18.448op/s; +45.274op/s] or [+5.303%; +13.014%]

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

  • 🟩 execution_time [-186.200µs; -147.925µs] or [-9.432%; -7.493%]
  • 🟩 throughput [+43.153op/s; +53.249op/s] or [+8.519%; +10.512%]

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

  • 🟩 throughput [+13.418op/s; +37.697op/s] or [+5.291%; +14.865%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+302.404ms; +304.064ms] or [+152.285%; +153.121%]

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

  • 🟥 execution_time [+303.220ms; +305.301ms] or [+151.944%; +152.987%]

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

  • 🟥 execution_time [+301.602ms; +304.931ms] or [+151.512%; +153.185%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+303.350ms; +304.673ms] or [+152.332%; +152.996%]

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

  • 🟥 execution_time [+297.761ms; +299.479ms] or [+147.230%; +148.079%]

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

  • 🟥 execution_time [+302.651ms; +306.197ms] or [+153.397%; +155.194%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+301.713ms; +303.475ms] or [+151.433%; +152.317%]

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

  • 🟥 execution_time [+300.371ms; +303.054ms] or [+149.708%; +151.045%]
  • 🟩 throughput [+42650.770op/s; +49836.223op/s] or [+8.469%; +9.896%]

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

  • 🟥 execution_time [+301.560ms; +304.437ms] or [+150.024%; +151.455%]

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

  • 🟩 execution_time [-16.221ms; -12.573ms] or [-7.543%; -5.847%]

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

  • 🟩 allocated_mem [-20.672KB; -20.650KB] or [-7.541%; -7.533%]
  • unstable execution_time [-49.418µs; +2.840µs] or [-9.767%; +0.561%]

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

  • 🟥 execution_time [+6.358µs; +10.348µs] or [+15.030%; +24.460%]
  • 🟥 throughput [-4716.729op/s; -2958.628op/s] or [-19.856%; -12.455%]

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

  • unstable execution_time [-12.654µs; -5.370µs] or [-19.633%; -8.331%]
  • 🟩 throughput [+1300.762op/s; +2833.535op/s] or [+7.981%; +17.385%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.837ms; +302.927ms] or [+152.565%; +153.116%]

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

  • 🟥 execution_time [+300.212ms; +302.767ms] or [+152.807%; +154.107%]

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

  • 🟥 execution_time [+300.654ms; +303.185ms] or [+150.514%; +151.782%]

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

  • 🟩 throughput [+44732.728op/s; +49240.929op/s] or [+8.467%; +9.320%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.461ms; +301.349ms] or [+149.254%; +150.195%]

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

  • 🟥 execution_time [+300.881ms; +301.705ms] or [+151.088%; +151.502%]

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

  • 🟥 execution_time [+303.313ms; +305.762ms] or [+153.821%; +155.063%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.747ms; +300.512ms] or [+149.515%; +149.897%]
  • 🟩 throughput [+66057537.210op/s; +66354795.030op/s] or [+48.107%; +48.324%]

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

  • unstable execution_time [+379.561ms; +411.648ms] or [+472.052%; +511.958%]
  • 🟩 throughput [+1102.262op/s; +1276.413op/s] or [+8.521%; +9.867%]

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

  • 🟥 execution_time [+299.764ms; +300.707ms] or [+149.516%; +149.986%]
  • 🟩 throughput [+18116548.563op/s; +19061049.554op/s] or [+8.024%; +8.443%]

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

  • 🟩 throughput [+99232.142op/s; +107091.834op/s] or [+9.265%; +9.999%]

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

  • 🟩 throughput [+51749.406op/s; +71596.822op/s] or [+5.990%; +8.287%]

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

  • 🟩 throughput [+99652.410op/s; +129178.839op/s] or [+7.713%; +9.999%]

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

  • 🟩 throughput [+69870.150op/s; +79110.149op/s] or [+6.939%; +7.857%]

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

  • 🟩 throughput [+51165.380op/s; +57287.694op/s] or [+9.291%; +10.402%]

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

  • 🟩 throughput [+81800.684op/s; +99363.439op/s] or [+9.139%; +11.101%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • 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 net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • 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.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@NachoEchevarria NachoEchevarria added the area:builds project files, build scripts, pipelines, versioning, releases, packages label May 4, 2026
Restores the System.Net.*/System.IO.*/System.Threading.Channels
PackageReferences I had deleted for NU1510 in Samples.Elasticsearch,
Samples.Elasticsearch.V7, Samples.RabbitMQ, Samples.DataStreams.RabbitMQ,
and LogsInjection.Serilog. Their original comments ("avoid package
downgrade errors") were accurate: they resolve transitive NU1605
conflicts introduced by NEST 6.1.0 / Serilog.Sinks.File 2.2.0 /
RabbitMQ.Client < 5 via NETStandard.Library 1.6.0. dotnet restore is
lenient about these but nuget.exe restore (CI) fails hard with NU1605.

Adds <NoWarn>NU1510</NoWarn> per csproj with a comment explaining the
refs are retained for conflict resolution despite being flagged as
framework-provided.
@NachoEchevarria
NachoEchevarria force-pushed the nacho/decreaseWarningsPart3 branch from d71ae14 to 0c43a68 Compare May 5, 2026 08:45
@NachoEchevarria NachoEchevarria changed the title Decrease warnings part3 Decrease warnings part 3 May 5, 2026
@NachoEchevarria
NachoEchevarria marked this pull request as ready for review May 5, 2026 13:52
@NachoEchevarria
NachoEchevarria requested review from a team as code owners May 5, 2026 13:52
@greghuels
greghuels removed their request for review May 5, 2026 13:52
Comment thread tracer/src/Datadog.Trace.Tools.Runner/Datadog.Trace.Tools.Runner.csproj Outdated
Comment thread tracer/test/test-applications/debugger/Samples.Probes/Samples.Probes.csproj Outdated
@github-actions github-actions Bot added the area:tests unit tests, integration tests label May 5, 2026
@NachoEchevarria
NachoEchevarria requested a review from andrewlock May 7, 2026 09:35

@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.

Great, thanks for doing this!

…lict.2x/Samples.VersionConflict.2x.csproj

Co-authored-by: Andrew Lock <[email protected]>
@NachoEchevarria

Copy link
Copy Markdown
Collaborator Author

Thanks for the feedback and reviews!

@NachoEchevarria
NachoEchevarria merged commit b209f0a into master May 7, 2026
142 checks passed
@NachoEchevarria
NachoEchevarria deleted the nacho/decreaseWarningsPart3 branch May 7, 2026 13:22
@github-actions github-actions Bot added this to the vNext-v3 milestone May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:builds project files, build scripts, pipelines, versioning, releases, packages area:tests unit tests, integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants