Skip to content

Update UpdateVendors tool to allow vendoring non-C# code#8529

Merged
andrewlock merged 4 commits into
masterfrom
andrew/allow-vendoring-not-dotnet-dependencies
Apr 28, 2026
Merged

Update UpdateVendors tool to allow vendoring non-C# code#8529
andrewlock merged 4 commits into
masterfrom
andrew/allow-vendoring-not-dotnet-dependencies

Conversation

@andrewlock

Copy link
Copy Markdown
Member

Summary of changes

  • Update the UpdateVendors tool to allow outputting to arbitrary directory
  • Allow opting-out of "NuGet dependabot honeypot file"
  • Add spdlog to the list of vendored deps

Reason for change

We want to update spdlog. The update was done manually in #4044, but using the existing infrastructure seems preferable.

Note that this PR doesn't bump the dependency, it just sets up the infrastructure to make it easy.

Implementation details

  • Add RelativePathToVendorDirectoryOverride to allow vendoring to arbitrary directory
  • Add IsNuGetPackage to allow opt-out of the NuGet dependabot file
  • Add reference for vendored spdlog code

Test coverage

Ran the tool, and it updated spdlog, but the code was the same

Other details

We'll bump the spdlog version in a subsequent PR

@andrewlock
andrewlock requested a review from a team as a code owner April 28, 2026 09:43
@andrewlock andrewlock added the area:builds project files, build scripts, pipelines, versioning, releases, packages label Apr 28, 2026

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

@dd-trace-dotnet-ci-bot

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8529) 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.06 ± (72.94 - 73.34) ms72.11 ± (72.11 - 72.45) ms-1.3%
.NET Framework 4.8 - Bailout
duration77.77 ± (77.64 - 78.00) ms77.98 ± (78.00 - 78.54) ms+0.3%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1080.42 ± (1080.20 - 1088.20) ms1070.54 ± (1070.92 - 1076.81) ms-0.9%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.41 ± (22.36 - 22.45) ms22.46 ± (22.42 - 22.50) ms+0.2%✅⬆️
process.time_to_main_ms83.88 ± (83.63 - 84.13) ms84.50 ± (84.28 - 84.73) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.92 - 10.93) MB10.91 ± (10.91 - 10.92) MB-0.1%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.41 ± (22.37 - 22.45) ms22.71 ± (22.65 - 22.76) ms+1.3%✅⬆️
process.time_to_main_ms85.25 ± (85.05 - 85.46) ms88.03 ± (87.73 - 88.33) ms+3.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.92 - 10.93) MB10.94 ± (10.94 - 10.94) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms213.94 ± (213.12 - 214.76) ms212.83 ± (212.01 - 213.66) ms-0.5%
process.time_to_main_ms530.83 ± (529.52 - 532.14) ms528.07 ± (526.81 - 529.32) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.09 ± (48.06 - 48.11) MB47.93 ± (47.90 - 47.96) MB-0.3%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.06 ± (21.02 - 21.09) ms21.20 ± (21.17 - 21.24) ms+0.7%✅⬆️
process.time_to_main_ms72.92 ± (72.75 - 73.09) ms73.10 ± (72.90 - 73.31) ms+0.2%✅⬆️
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.62) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.13 ± (21.09 - 21.16) ms21.57 ± (21.51 - 21.63) ms+2.1%✅⬆️
process.time_to_main_ms74.78 ± (74.61 - 74.95) ms76.98 ± (76.71 - 77.26) ms+2.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.69 ± (10.68 - 10.69) MB10.73 ± (10.73 - 10.74) MB+0.4%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms380.34 ± (378.31 - 382.37) ms384.87 ± (382.95 - 386.79) ms+1.2%✅⬆️
process.time_to_main_ms531.01 ± (529.80 - 532.23) ms527.16 ± (526.05 - 528.27) ms-0.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.44 ± (49.42 - 49.47) MB49.40 ± (49.37 - 49.42) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.1%
.NET 8 - Baseline
process.internal_duration_ms19.49 ± (19.45 - 19.54) ms19.35 ± (19.31 - 19.38) ms-0.8%
process.time_to_main_ms73.56 ± (73.36 - 73.77) ms72.83 ± (72.66 - 73.01) ms-1.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.69 ± (7.69 - 7.70) MB7.67 ± (7.66 - 7.68) MB-0.3%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.78 ± (19.73 - 19.84) ms19.38 ± (19.34 - 19.41) ms-2.1%
process.time_to_main_ms76.30 ± (76.04 - 76.57) ms74.03 ± (73.84 - 74.21) ms-3.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.75 ± (7.74 - 7.75) 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_ms300.59 ± (298.31 - 302.87) ms302.45 ± (300.13 - 304.76) ms+0.6%✅⬆️
process.time_to_main_ms489.48 ± (488.37 - 490.58) ms491.42 ± (490.33 - 492.50) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.65 ± (36.63 - 36.68) MB36.43 ± (36.40 - 36.46) MB-0.6%
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
duration201.35 ± (201.19 - 202.33) ms200.75 ± (200.36 - 201.33) ms-0.3%
.NET Framework 4.8 - Bailout
duration205.77 ± (205.52 - 206.66) ms206.09 ± (205.45 - 206.58) ms+0.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1203.16 ± (1202.51 - 1211.25) ms1187.46 ± (1188.69 - 1195.63) ms-1.3%
.NET Core 3.1 - Baseline
process.internal_duration_ms196.85 ± (196.23 - 197.47) ms194.72 ± (194.24 - 195.19) ms-1.1%
process.time_to_main_ms85.28 ± (84.99 - 85.57) ms84.51 ± (84.24 - 84.78) ms-0.9%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.97 ± (15.95 - 15.99) MB16.02 ± (16.00 - 16.04) MB+0.3%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.1%
.NET Core 3.1 - Bailout
process.internal_duration_ms195.50 ± (194.93 - 196.07) ms193.91 ± (193.45 - 194.37) ms-0.8%
process.time_to_main_ms86.20 ± (85.92 - 86.49) ms85.62 ± (85.32 - 85.92) ms-0.7%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.09 - 16.13) MB16.11 ± (16.08 - 16.13) MB-0.0%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.9%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms392.08 ± (390.38 - 393.78) ms389.89 ± (388.60 - 391.19) ms-0.6%
process.time_to_main_ms531.74 ± (530.34 - 533.14) ms530.75 ± (529.43 - 532.07) ms-0.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.20 ± (58.03 - 58.37) MB57.68 ± (57.50 - 57.85) MB-0.9%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
.NET 6 - Baseline
process.internal_duration_ms204.13 ± (203.50 - 204.75) ms199.95 ± (199.45 - 200.45) ms-2.0%
process.time_to_main_ms75.26 ± (74.84 - 75.68) ms73.66 ± (73.45 - 73.86) ms-2.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.25 ± (16.23 - 16.27) MB16.31 ± (16.29 - 16.33) MB+0.4%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.9%
.NET 6 - Bailout
process.internal_duration_ms200.80 ± (200.19 - 201.41) ms200.39 ± (199.88 - 200.91) ms-0.2%
process.time_to_main_ms74.63 ± (74.36 - 74.90) ms74.63 ± (74.44 - 74.81) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.26 ± (16.25 - 16.28) MB16.34 ± (16.32 - 16.36) MB+0.5%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.6%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms595.79 ± (593.07 - 598.51) ms594.51 ± (591.48 - 597.54) ms-0.2%
process.time_to_main_ms532.31 ± (531.07 - 533.55) ms530.67 ± (529.28 - 532.06) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.12 ± (61.03 - 61.22) MB60.97 ± (60.85 - 61.09) MB-0.3%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.1%
.NET 8 - Baseline
process.internal_duration_ms199.26 ± (198.68 - 199.84) ms198.18 ± (197.72 - 198.65) ms-0.5%
process.time_to_main_ms73.09 ± (72.81 - 73.37) ms73.08 ± (72.85 - 73.30) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.65 ± (11.64 - 11.67) MB11.70 ± (11.69 - 11.72) MB+0.4%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.2%
.NET 8 - Bailout
process.internal_duration_ms198.89 ± (198.24 - 199.54) ms198.42 ± (197.93 - 198.91) ms-0.2%
process.time_to_main_ms74.28 ± (74.05 - 74.50) ms74.26 ± (74.06 - 74.46) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.71 ± (11.70 - 11.73) MB11.76 ± (11.75 - 11.78) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (19 - 20)+0.1%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms517.04 ± (514.08 - 520.00) ms518.46 ± (514.99 - 521.93) ms+0.3%✅⬆️
process.time_to_main_ms492.25 ± (491.11 - 493.39) ms492.30 ± (491.10 - 493.50) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.31 ± (50.27 - 50.34) MB50.30 ± (50.25 - 50.34) MB-0.0%
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 (8529) - mean (72ms)  : 70, 75
    master - mean (73ms)  : 70, 76

    section Bailout
    This PR (8529) - mean (78ms)  : 74, 82
    master - mean (78ms)  : 76, 80

    section CallTarget+Inlining+NGEN
    This PR (8529) - mean (1,074ms)  : 1031, 1117
    master - mean (1,084ms)  : 1027, 1142

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 (8529) - mean (114ms)  : 110, 118
    master - mean (113ms)  : 108, 118

    section Bailout
    This PR (8529) - mean (118ms)  : 112, 124
    master - mean (115ms)  : 112, 117

    section CallTarget+Inlining+NGEN
    This PR (8529) - mean (780ms)  : 756, 804
    master - mean (784ms)  : 752, 816

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

    section Bailout
    This PR (8529) - mean (105ms)  : 100, 111
    master - mean (102ms)  : 100, 104

    section CallTarget+Inlining+NGEN
    This PR (8529) - mean (941ms)  : 909, 973
    master - mean (940ms)  : 908, 972

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

    section Bailout
    This PR (8529) - mean (101ms)  : 98, 104
    master - mean (104ms)  : 100, 109

    section CallTarget+Inlining+NGEN
    This PR (8529) - mean (824ms)  : 781, 868
    master - mean (822ms)  : 783, 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 (8529) - mean (201ms)  : 194, 208
    master - mean (202ms)  : 193, 210

    section Bailout
    This PR (8529) - mean (206ms)  : 197, 215
    master - mean (206ms)  : 198, 215

    section CallTarget+Inlining+NGEN
    This PR (8529) - mean (1,192ms)  : 1143, 1241
    master - mean (1,207ms)  : 1140, 1274

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 (8529) - mean (288ms)  : 278, 299
    master - mean (292ms)  : 277, 307

    section Bailout
    This PR (8529) - mean (289ms)  : 280, 298
    master - mean (292ms)  : 278, 305

    section CallTarget+Inlining+NGEN
    This PR (8529) - mean (953ms)  : 919, 987
    master - mean (961ms)  : 934, 987

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8529) - mean (283ms)  : 271, 296
    master - mean (290ms)  : 274, 305

    section Bailout
    This PR (8529) - mean (284ms)  : 273, 294
    master - mean (285ms)  : 270, 301

    section CallTarget+Inlining+NGEN
    This PR (8529) - mean (1,156ms)  : 1110, 1201
    master - mean (1,158ms)  : 1109, 1206

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8529) - mean (282ms)  : 272, 293
    master - mean (283ms)  : 270, 297

    section Bailout
    This PR (8529) - mean (283ms)  : 271, 295
    master - mean (285ms)  : 269, 301

    section CallTarget+Inlining+NGEN
    This PR (8529) - mean (1,045ms)  : 987, 1102
    master - mean (1,043ms)  : 996, 1089

Loading

@pr-commenter

pr-commenter Bot commented Apr 28, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-04-28 10:51:04

Comparing candidate commit 99c7117 in PR branch andrew/allow-vendoring-not-dotnet-dependencies with baseline commit 8492722 in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 61 known flaky benchmarks, 26 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 [+9014.616op/s; +11323.540op/s] or [+7.577%; +9.518%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+299.425ms; +303.328ms] or [+148.585%; +150.522%]
  • 🟥 throughput [-45.348op/s; -41.781op/s] or [-8.159%; -7.517%]

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

  • 🟥 execution_time [+379.438ms; +381.683ms] or [+299.779%; +301.553%]
  • 🟩 throughput [+98.504op/s; +100.856op/s] or [+12.987%; +13.298%]

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

  • 🟥 execution_time [+389.370ms; +391.433ms] or [+344.578%; +346.404%]

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 [-15.207ms; -11.036ms] or [-7.102%; -5.154%]

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 [-266283.731op/s; -263453.507op/s] or [-27.189%; -26.900%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-26.555ms; -21.704ms] or [-11.842%; -9.679%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • 🟥 throughput [-140516.843op/s; -124381.664op/s] or [-20.190%; -17.871%]

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

  • 🟩 throughput [+8809.145op/s; +11779.781op/s] or [+5.605%; +7.495%]

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

  • 🟩 throughput [+6303.856op/s; +8963.535op/s] or [+5.022%; +7.141%]

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

  • 🟩 throughput [+444004.614op/s; +465471.820op/s] or [+14.805%; +15.521%]

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

  • 🟩 execution_time [-19.521ms; -15.168ms] or [-8.998%; -6.992%]
  • 🟩 throughput [+163586.289op/s; +217760.059op/s] or [+6.493%; +8.643%]

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

  • 🟥 execution_time [+299.626ms; +300.232ms] or [+149.713%; +150.016%]

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

  • 🟥 execution_time [+299.955ms; +303.087ms] or [+151.268%; +152.847%]

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

  • 🟥 execution_time [+300.153ms; +302.696ms] or [+151.194%; +152.475%]

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

  • 🟥 execution_time [+296.287ms; +297.055ms] or [+145.524%; +145.902%]

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

  • 🟥 execution_time [+297.901ms; +300.296ms] or [+145.633%; +146.804%]

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

  • 🟥 execution_time [+302.526ms; +304.682ms] or [+151.202%; +152.280%]

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

  • 🟥 execution_time [+27.195µs; +54.431µs] or [+6.237%; +12.484%]
  • 🟥 throughput [-261.851op/s; -139.678op/s] or [-11.384%; -6.073%]

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

  • 🟥 execution_time [+28.248µs; +51.977µs] or [+9.018%; +16.594%]
  • 🟥 throughput [-476.124op/s; -276.715op/s] or [-14.842%; -8.626%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.934ms; +300.618ms] or [+149.698%; +150.039%]

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

  • 🟥 execution_time [+408.530ms; +414.934ms] or [+443.885%; +450.843%]
  • 🟩 throughput [+1169.003op/s; +1297.526op/s] or [+9.606%; +10.662%]

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

  • unstable execution_time [+276.224ms; +315.569ms] or [+209.734%; +239.608%]
  • 🟩 throughput [+697.220op/s; +898.337op/s] or [+6.750%; +8.696%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+286.908ms; +323.899ms] or [+131.917%; +148.925%]
  • 🟥 throughput [-504.490op/s; -472.744op/s] or [-45.712%; -42.835%]

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

  • unstable execution_time [+206.530ms; +339.750ms] or [+88.014%; +144.787%]
  • 🟥 throughput [-668.296op/s; -584.793op/s] or [-44.576%; -39.006%]

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

  • 🟥 allocated_mem [+2.265KB; +2.268KB] or [+5.348%; +5.355%]
  • 🟥 execution_time [+345.406ms; +354.467ms] or [+206.593%; +212.012%]
  • 🟥 throughput [-422.921op/s; -386.713op/s] or [-29.447%; -26.926%]

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

  • 🟩 execution_time [-171.936µs; -136.615µs] or [-8.710%; -6.920%]
  • 🟩 throughput [+39.403op/s; +48.821op/s] or [+7.778%; +9.638%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+301.087ms; +302.653ms] or [+151.622%; +152.410%]

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

  • 🟥 execution_time [+300.099ms; +301.785ms] or [+150.380%; +151.225%]

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

  • 🟥 execution_time [+301.721ms; +304.930ms] or [+151.572%; +153.184%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+300.153ms; +301.347ms] or [+150.727%; +151.326%]

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

  • 🟥 execution_time [+298.321ms; +299.768ms] or [+147.506%; +148.222%]

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

  • 🟥 execution_time [+303.464ms; +307.202ms] or [+153.809%; +155.703%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+300.195ms; +301.372ms] or [+150.671%; +151.261%]

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

  • 🟥 execution_time [+301.977ms; +304.507ms] or [+150.508%; +151.769%]
  • 🟩 throughput [+45202.558op/s; +49536.256op/s] or [+8.976%; +9.836%]

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

  • 🟥 execution_time [+299.485ms; +301.983ms] or [+148.991%; +150.234%]

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

  • 🟩 execution_time [-15.740ms; -12.059ms] or [-7.319%; -5.607%]
  • 🟩 throughput [+18333.564op/s; +25078.808op/s] or [+5.029%; +6.880%]

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

  • unstable execution_time [+2.164µs; +42.674µs] or [+0.535%; +10.541%]

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

  • 🟩 allocated_mem [-20.439KB; -20.418KB] or [-7.456%; -7.448%]
  • unstable execution_time [-30.247µs; +22.850µs] or [-5.978%; +4.516%]

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

  • 🟩 allocated_mem [-19.261KB; -19.245KB] or [-7.021%; -7.016%]

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

  • unstable execution_time [+7.170µs; +11.601µs] or [+16.947%; +27.421%]
  • 🟥 throughput [-5032.438op/s; -3212.674op/s] or [-21.185%; -13.524%]

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

  • unstable execution_time [-11.935µs; -3.919µs] or [-18.517%; -6.080%]
  • unstable throughput [+1113.599op/s; +2771.033op/s] or [+6.832%; +17.001%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.134ms; +303.263ms] or [+152.715%; +153.286%]

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

  • 🟥 execution_time [+302.498ms; +304.572ms] or [+153.971%; +155.026%]

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

  • 🟥 execution_time [+301.400ms; +303.704ms] or [+150.888%; +152.041%]

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

  • 🟩 throughput [+33625.044op/s; +36651.495op/s] or [+6.365%; +6.937%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.850ms; +302.460ms] or [+149.947%; +150.749%]

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

  • 🟥 execution_time [+300.736ms; +301.773ms] or [+151.015%; +151.536%]

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

  • 🟥 execution_time [+303.945ms; +306.360ms] or [+154.141%; +155.366%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.497ms; +300.264ms] or [+149.391%; +149.773%]
  • 🟩 throughput [+61061778.377op/s; +61322452.234op/s] or [+44.469%; +44.659%]

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

  • 🟥 execution_time [+422.742ms; +426.945ms] or [+525.755%; +530.982%]
  • 🟩 throughput [+1084.590op/s; +1259.205op/s] or [+8.384%; +9.734%]

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

  • 🟥 execution_time [+299.663ms; +300.589ms] or [+149.465%; +149.927%]

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

  • 🟩 throughput [+80618.306op/s; +89645.154op/s] or [+7.527%; +8.370%]

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

  • 🟩 throughput [+46134.543op/s; +65789.419op/s] or [+5.340%; +7.615%]

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

  • 🟩 throughput [+71044.784op/s; +101515.744op/s] or [+5.499%; +7.857%]

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

  • 🟩 throughput [+72304.476op/s; +81427.126op/s] or [+7.181%; +8.087%]

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

  • 🟩 throughput [+41136.524op/s; +47560.288op/s] or [+7.470%; +8.636%]

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

  • 🟩 throughput [+27572.938op/s; +37191.469op/s] or [+6.172%; +8.325%]

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

  • 🟩 throughput [+91457.653op/s; +108892.801op/s] or [+10.218%; +12.166%]

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.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.OptimizedCharSlice netcoreapp3.1
  • 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.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog 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.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

@andrewlock
andrewlock merged commit 37b6bcd into master Apr 28, 2026
139 checks passed
@andrewlock
andrewlock deleted the andrew/allow-vendoring-not-dotnet-dependencies branch April 28, 2026 11:53
@github-actions github-actions Bot added this to the vNext-v3 milestone Apr 28, 2026
vandonr pushed a commit that referenced this pull request Apr 30, 2026
## Summary of changes

- Update spdlog to latest
- Fix build issue due to missing `/utf8`

## Reason for change

We want to update spdlog, partly because newer versions of macos (Tahoe)
require a newer version of `fmt`, which spdlog uses.

## Implementation details

- Update the vendored version (from #8529) to use 1.17.0 (current
latest), which also bumps `{fmt}` library to 12.1.0.
- Fix build issue on Windows related to utf-8. The latest version of
`{fmt}` requires narrow string literals to be UTF-8 encoded via a
`static_assert`:

```c++
static_assert(!FMT_UNICODE || use_utf8, "Unicode support requires compiling with /utf-8");
```

`use_utf8` is false on Windows unless `/utf-8` is passed (it tests
whether `"\u00A7"[1] == '\xA7'`, which only holds when narrow literals
are UTF-8). Our Windows native projects compile with the default
execution charset, so this fails.

That gives us two options:
- Define `FMT_UNICODE=0` to disable unicode support in `{fmt}`
- Compile with `/utf-8` to enable unicode support everywhere

Chose `FMT_UNICODE=0` as it preserves the existing execution-charset
behavior — adding `/utf-8` would change the encoding of every narrow
string literal in our codebase, which seems higher risk. We log via
`std::string` (ASCII-only log messages), so disabling fmt's Unicode
requirement should be safe.

## Test coverage

This is the test, if the build works and the tests pass, I'll check the
log files for anything suspicious, but otherwise we should be good.

## Other details

You may want to review the 3 commits separately:
1. Bump the vendored version
2. Run the `UpdateVendors` tool to update the vendored code
3. Fix the build issues

Stacked on [Update UpdateVendors tool to allow vendoring non-C#
code](https://github.com/DataDog/dd-trace-dotnet/pull/8529#top)#8529
@andrewlock andrewlock added the area:vendors Code from other vendors label May 1, 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:vendors Code from other vendors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants