Skip to content

Conversation

@andrewlock
Copy link
Member

Summary of changes

Adds support for recently release Npgsql 10

Reason for change

We want to support the latest versions

Implementation details

Just bump some version numbers. Note that it looks like IAST was incorrectly not supporting 9.0.0, so bumped that to latest as well.

Test coverage

Removed 8.0.0 (2 major versions back) from regular testing, as it seems unnecessary at this point (we already test 4 major versions)

Other details

10.0.0 dropped support for <= .NET 8, so updated that too

@andrewlock andrewlock requested review from a team as code owners November 24, 2025 12:22
@andrewlock andrewlock added area:automatic-instrumentation Automatic instrumentation managed C# code (Datadog.Trace.ClrProfiler.Managed) area:dependabot dependabot updates area:integrations labels Nov 24, 2025
Copy link

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

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

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

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

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

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

@dd-trace-dotnet-ci-bot
Copy link

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (7855) 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.99 ± (74.96 - 75.69) ms75.27 ± (75.19 - 75.74) ms+0.4%✅⬆️
.NET Framework 4.8 - Bailout
duration79.50 ± (79.08 - 79.63) ms80.44 ± (80.47 - 81.22) ms+1.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1054.21 ± (1054.88 - 1064.33) ms1058.45 ± (1061.51 - 1073.63) ms+0.4%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.98 ± (22.90 - 23.06) ms22.96 ± (22.87 - 23.05) ms-0.1%
process.time_to_main_ms86.72 ± (86.39 - 87.04) ms87.88 ± (87.52 - 88.23) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.92 ± (10.92 - 10.93) MB10.90 ± (10.90 - 10.90) MB-0.2%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.88 ± (22.82 - 22.94) ms22.90 ± (22.82 - 22.97) ms+0.1%✅⬆️
process.time_to_main_ms89.60 ± (89.25 - 89.94) ms89.27 ± (88.90 - 89.64) ms-0.4%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.96 ± (10.96 - 10.97) MB10.94 ± (10.94 - 10.95) MB-0.2%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms219.28 ± (218.00 - 220.56) ms220.96 ± (219.46 - 222.46) ms+0.8%✅⬆️
process.time_to_main_ms497.57 ± (496.51 - 498.63) ms498.60 ± (497.47 - 499.74) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed47.73 ± (47.70 - 47.75) MB47.70 ± (47.68 - 47.72) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.93 ± (21.85 - 22.00) ms21.80 ± (21.73 - 21.87) ms-0.6%
process.time_to_main_ms77.47 ± (77.12 - 77.82) ms76.74 ± (76.38 - 77.11) ms-0.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.60 ± (10.59 - 10.60) 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.67 ± (21.61 - 21.73) ms21.78 ± (21.70 - 21.85) ms+0.5%✅⬆️
process.time_to_main_ms76.84 ± (76.51 - 77.18) ms76.98 ± (76.65 - 77.31) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.64 ± (10.64 - 10.65) MB10.67 ± (10.67 - 10.67) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms210.56 ± (209.19 - 211.93) ms210.58 ± (209.32 - 211.84) ms+0.0%✅⬆️
process.time_to_main_ms465.15 ± (464.20 - 466.09) ms467.10 ± (466.11 - 468.08) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.04 ± (48.02 - 48.07) MB48.09 ± (48.06 - 48.11) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms20.00 ± (19.92 - 20.07) ms19.81 ± (19.71 - 19.91) ms-0.9%
process.time_to_main_ms75.42 ± (75.06 - 75.78) ms75.25 ± (74.73 - 75.77) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.65 ± (7.65 - 7.66) MB7.67 ± (7.66 - 7.67) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.90 ± (19.84 - 19.95) ms19.89 ± (19.82 - 19.96) ms-0.0%
process.time_to_main_ms76.06 ± (75.78 - 76.33) ms76.41 ± (76.13 - 76.69) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.70 ± (7.70 - 7.71) MB7.73 ± (7.72 - 7.74) MB+0.4%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms191.06 ± (190.13 - 191.98) ms192.28 ± (191.47 - 193.09) ms+0.6%✅⬆️
process.time_to_main_ms453.35 ± (452.57 - 454.14) ms456.15 ± (455.13 - 457.17) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.36 ± (36.31 - 36.40) MB36.40 ± (36.37 - 36.44) MB+0.1%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.1%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration191.33 ± (191.17 - 191.92) ms191.96 ± (191.77 - 192.59) ms+0.3%✅⬆️
.NET Framework 4.8 - Bailout
duration195.81 ± (195.54 - 196.39) ms195.50 ± (195.02 - 195.53) ms-0.2%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1102.50 ± (1107.10 - 1116.52) ms1104.00 ± (1108.60 - 1118.63) ms+0.1%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms186.75 ± (186.46 - 187.04) ms187.06 ± (186.71 - 187.41) ms+0.2%✅⬆️
process.time_to_main_ms80.21 ± (80.01 - 80.41) ms80.00 ± (79.80 - 80.20) ms-0.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.08 - 16.13) MB16.15 ± (16.12 - 16.18) MB+0.3%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (19 - 20)-0.3%
.NET Core 3.1 - Bailout
process.internal_duration_ms186.61 ± (186.31 - 186.90) ms186.15 ± (185.83 - 186.46) ms-0.2%
process.time_to_main_ms81.47 ± (81.34 - 81.60) ms81.35 ± (81.21 - 81.49) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.17 ± (16.14 - 16.20) MB16.19 ± (16.16 - 16.22) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 21)21 ± (21 - 21)+0.8%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms399.27 ± (396.73 - 401.82) ms401.24 ± (398.20 - 404.29) ms+0.5%✅⬆️
process.time_to_main_ms468.60 ± (467.86 - 469.34) ms468.29 ± (467.61 - 468.97) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.59 ± (58.47 - 58.71) MB58.38 ± (58.24 - 58.52) MB-0.4%
runtime.dotnet.threads.count30 ± (29 - 30)29 ± (29 - 29)-0.2%
.NET 6 - Baseline
process.internal_duration_ms191.50 ± (191.19 - 191.80) ms190.51 ± (190.25 - 190.78) ms-0.5%
process.time_to_main_ms69.85 ± (69.68 - 70.02) ms69.39 ± (69.22 - 69.55) ms-0.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.89 ± (15.72 - 16.06) MB15.93 ± (15.75 - 16.10) MB+0.2%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.3%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms190.10 ± (189.89 - 190.32) ms189.75 ± (189.45 - 190.04) ms-0.2%
process.time_to_main_ms70.42 ± (70.35 - 70.49) ms70.29 ± (70.19 - 70.38) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.24 ± (16.10 - 16.38) MB15.78 ± (15.61 - 15.95) MB-2.8%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-1.6%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms415.11 ± (411.93 - 418.28) ms410.72 ± (408.16 - 413.29) ms-1.1%
process.time_to_main_ms439.76 ± (439.25 - 440.27) ms439.43 ± (438.83 - 440.03) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.68 ± (58.53 - 58.83) MB58.42 ± (58.28 - 58.57) MB-0.4%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.2%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms189.85 ± (189.48 - 190.22) ms189.13 ± (188.80 - 189.47) ms-0.4%
process.time_to_main_ms69.41 ± (69.22 - 69.60) ms69.28 ± (69.11 - 69.45) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.79 ± (11.77 - 11.81) MB11.74 ± (11.71 - 11.77) MB-0.4%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.7%
.NET 8 - Bailout
process.internal_duration_ms188.25 ± (188.02 - 188.49) ms188.05 ± (187.81 - 188.29) ms-0.1%
process.time_to_main_ms70.20 ± (70.09 - 70.31) ms69.88 ± (69.78 - 69.98) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.85 ± (11.78 - 11.91) MB11.61 ± (11.51 - 11.71) MB-2.0%
runtime.dotnet.threads.count19 ± (18 - 19)18 ± (18 - 19)-1.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms363.66 ± (362.36 - 364.96) ms361.61 ± (359.99 - 363.23) ms-0.6%
process.time_to_main_ms427.55 ± (427.04 - 428.07) ms427.13 ± (426.67 - 427.58) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed47.87 ± (47.83 - 47.90) MB47.82 ± (47.79 - 47.85) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-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 (7855) - mean (75ms)  : 72, 79
    master - mean (75ms)  : 70, 81

    section Bailout
    This PR (7855) - mean (81ms)  : 75, 87
    master - mean (79ms)  : 75, 83

    section CallTarget+Inlining+NGEN
    This PR (7855) - mean (1,068ms)  : 981, 1154
    master - mean (1,060ms)  : 992, 1127

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 (7855) - mean (118ms)  : 111, 125
    master - mean (117ms)  : 111, 123

    section Bailout
    This PR (7855) - mean (120ms)  : 112, 128
    master - mean (120ms)  : 114, 125

    section CallTarget+Inlining+NGEN
    This PR (7855) - mean (757ms)  : 710, 804
    master - mean (753ms)  : 720, 786

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7855) - mean (106ms)  : 98, 113
    master - mean (106ms)  : 100, 113

    section Bailout
    This PR (7855) - mean (106ms)  : 100, 112
    master - mean (106ms)  : 100, 111

    section CallTarget+Inlining+NGEN
    This PR (7855) - mean (707ms)  : 672, 743
    master - mean (704ms)  : 670, 738

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

    section Bailout
    This PR (7855) - mean (105ms)  : 98, 111
    master - mean (105ms)  : 99, 110

    section CallTarget+Inlining+NGEN
    This PR (7855) - mean (684ms)  : 656, 713
    master - mean (681ms)  : 649, 714

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 (7855) - mean (192ms)  : 188, 196
    master - mean (192ms)  : 188, 195

    section Bailout
    This PR (7855) - mean (195ms)  : 193, 198
    master - mean (196ms)  : 192, 200

    section CallTarget+Inlining+NGEN
    This PR (7855) - mean (1,114ms)  : 1040, 1187
    master - mean (1,112ms)  : 1040, 1184

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 (7855) - mean (275ms)  : 271, 280
    master - mean (275ms)  : 270, 280

    section Bailout
    This PR (7855) - mean (276ms)  : 272, 279
    master - mean (276ms)  : 272, 280

    section CallTarget+Inlining+NGEN
    This PR (7855) - mean (902ms)  : 849, 956
    master - mean (901ms)  : 854, 947

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

    section Bailout
    This PR (7855) - mean (268ms)  : 265, 271
    master - mean (268ms)  : 266, 270

    section CallTarget+Inlining+NGEN
    This PR (7855) - mean (886ms)  : 837, 934
    master - mean (888ms)  : 830, 946

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7855) - mean (268ms)  : 262, 274
    master - mean (269ms)  : 264, 274

    section Bailout
    This PR (7855) - mean (267ms)  : 265, 270
    master - mean (268ms)  : 265, 271

    section CallTarget+Inlining+NGEN
    This PR (7855) - mean (819ms)  : 797, 841
    master - mean (821ms)  : 798, 844

Loading

@andrewlock andrewlock merged commit c6a2350 into master Nov 25, 2025
155 checks passed
@andrewlock andrewlock deleted the andrew/npgsql-10 branch November 25, 2025 15:48
@github-actions github-actions bot added this to the vNext-v3 milestone Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:automatic-instrumentation Automatic instrumentation managed C# code (Datadog.Trace.ClrProfiler.Managed) area:dependabot dependabot updates area:integrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants