Skip to content

Add support for Microsoft.Data.SqlClient 7.0.0#8345

Closed
bouwkast wants to merge 1 commit intomasterfrom
steven/update-sql-7
Closed

Add support for Microsoft.Data.SqlClient 7.0.0#8345
bouwkast wants to merge 1 commit intomasterfrom
steven/update-sql-7

Conversation

@bouwkast
Copy link
Copy Markdown
Collaborator

Summary of changes

Adds support for V7 of Microsoft.Data.SqlClient as it just released a new major version.

Just a simple version bump was needed

Reason for change

Microsoft.Data.SqlClient 7.0.0 just released on the 17th and we don't support it and would like to.

Implementation details

Bumped the version, ran tracer/build.ps1 GeneratePackageVersions -IncludePackages Microsoft.Data.SqlClient, ran tests

Test coverage

I manually ran the tests locally against V7 for: .NET Framework 4.8, .NET 8.0, .NET 9.0, .NET 10.0 and all passed

Other details

Utilized the AutoInstrumentationGenerator.CLI tool to grab the latest version and compare our current methods to the new methods and it reported that there are not changes with the methods that we instrument. See: #8313

Was able to use tracer/build.ps1 GeneratePackageVersions -IncludePackages Microsoft.Data.SqlClient and it only included the necessary changes 😃 🚀

@bouwkast bouwkast added the area:automatic-instrumentation Automatic instrumentation managed C# code (Datadog.Trace.ClrProfiler.Managed) label Mar 19, 2026
@dd-trace-dotnet-ci-bot
Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8345) 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
duration75.49 ± (75.52 - 75.90) ms75.82 ± (75.68 - 76.01) ms+0.4%✅⬆️
.NET Framework 4.8 - Bailout
duration80.45 ± (80.33 - 80.71) ms79.85 ± (79.75 - 80.12) ms-0.7%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1099.15 ± (1099.59 - 1104.82) ms1097.86 ± (1098.19 - 1104.02) ms-0.1%
.NET Core 3.1 - Baseline
process.internal_duration_ms23.30 ± (23.25 - 23.36) ms23.35 ± (23.30 - 23.41) ms+0.2%✅⬆️
process.time_to_main_ms89.23 ± (89.02 - 89.43) ms88.72 ± (88.51 - 88.93) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.88 ± (10.88 - 10.89) MB10.90 ± (10.90 - 10.91) MB+0.2%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms23.24 ± (23.18 - 23.31) ms23.23 ± (23.18 - 23.28) ms-0.1%
process.time_to_main_ms89.80 ± (89.54 - 90.05) ms90.01 ± (89.76 - 90.25) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.93 - 10.94) MB10.93 ± (10.93 - 10.94) MB-0.0%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms227.18 ± (226.12 - 228.24) ms226.70 ± (225.32 - 228.08) ms-0.2%
process.time_to_main_ms501.91 ± (500.96 - 502.86) ms506.81 ± (506.00 - 507.62) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed47.18 ± (47.16 - 47.20) MB47.15 ± (47.13 - 47.18) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 6 - Baseline
process.internal_duration_ms21.70 ± (21.65 - 21.74) ms21.98 ± (21.93 - 22.03) ms+1.3%✅⬆️
process.time_to_main_ms76.27 ± (76.09 - 76.45) ms77.12 ± (76.93 - 77.30) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.61 ± (10.61 - 10.62) MB10.63 ± (10.63 - 10.64) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.71 ± (21.66 - 21.77) ms21.71 ± (21.67 - 21.76) ms+0.0%✅⬆️
process.time_to_main_ms77.97 ± (77.78 - 78.16) ms77.34 ± (77.13 - 77.54) ms-0.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.69 ± (10.69 - 10.70) 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_ms211.13 ± (209.48 - 212.78) ms211.15 ± (209.56 - 212.74) ms+0.0%✅⬆️
process.time_to_main_ms502.57 ± (501.79 - 503.34) ms501.78 ± (500.95 - 502.61) ms-0.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.16 ± (49.13 - 49.19) MB49.16 ± (49.13 - 49.20) MB+0.0%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.0%
.NET 8 - Baseline
process.internal_duration_ms20.10 ± (20.05 - 20.14) ms19.95 ± (19.90 - 20.00) ms-0.7%
process.time_to_main_ms76.29 ± (76.10 - 76.48) ms75.76 ± (75.58 - 75.94) ms-0.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.69 ± (7.68 - 7.70) MB7.68 ± (7.67 - 7.68) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms20.12 ± (20.07 - 20.18) ms19.91 ± (19.86 - 19.95) ms-1.1%
process.time_to_main_ms77.37 ± (77.22 - 77.52) ms76.15 ± (75.97 - 76.33) ms-1.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.72 - 7.73) MB7.77 ± (7.76 - 7.78) MB+0.6%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms167.66 ± (166.71 - 168.62) ms168.20 ± (167.17 - 169.22) ms+0.3%✅⬆️
process.time_to_main_ms484.62 ± (483.93 - 485.30) ms482.15 ± (481.37 - 482.93) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.42 ± (36.40 - 36.44) MB36.51 ± (36.50 - 36.53) MB+0.3%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.4%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration196.53 ± (196.57 - 197.52) ms200.40 ± (199.76 - 201.12) ms+2.0%✅⬆️
.NET Framework 4.8 - Bailout
duration200.74 ± (201.08 - 202.08) ms201.03 ± (201.18 - 202.21) ms+0.1%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1159.75 ± (1164.51 - 1174.47) ms1159.73 ± (1161.70 - 1169.15) ms-0.0%
.NET Core 3.1 - Baseline
process.internal_duration_ms188.44 ± (188.06 - 188.83) ms191.13 ± (190.67 - 191.59) ms+1.4%✅⬆️
process.time_to_main_ms81.48 ± (81.26 - 81.70) ms82.14 ± (81.91 - 82.38) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.05 ± (16.02 - 16.08) MB16.05 ± (16.03 - 16.07) MB-0.0%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (19 - 20)-0.5%
.NET Core 3.1 - Bailout
process.internal_duration_ms188.04 ± (187.69 - 188.39) ms189.53 ± (189.10 - 189.97) ms+0.8%✅⬆️
process.time_to_main_ms82.39 ± (82.25 - 82.52) ms83.33 ± (83.12 - 83.54) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.12 ± (16.10 - 16.15) MB16.19 ± (16.16 - 16.21) MB+0.4%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+0.4%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms396.44 ± (394.70 - 398.19) ms396.25 ± (394.53 - 397.97) ms-0.0%
process.time_to_main_ms476.89 ± (476.12 - 477.66) ms478.53 ± (477.78 - 479.28) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.05 ± (57.92 - 58.18) MB58.05 ± (57.92 - 58.18) MB+0.0%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (29 - 30)-0.3%
.NET 6 - Baseline
process.internal_duration_ms194.05 ± (193.59 - 194.51) ms193.89 ± (193.46 - 194.32) ms-0.1%
process.time_to_main_ms70.89 ± (70.67 - 71.12) ms70.73 ± (70.53 - 70.92) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.35 ± (16.29 - 16.41) MB16.33 ± (16.25 - 16.41) MB-0.1%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.5%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms193.26 ± (192.87 - 193.65) ms193.90 ± (193.41 - 194.38) ms+0.3%✅⬆️
process.time_to_main_ms71.58 ± (71.44 - 71.72) ms71.83 ± (71.66 - 71.99) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.33 ± (16.24 - 16.43) MB16.26 ± (16.16 - 16.35) MB-0.4%
runtime.dotnet.threads.count20 ± (20 - 20)19 ± (19 - 20)-2.4%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms430.95 ± (429.28 - 432.62) ms430.80 ± (429.23 - 432.36) ms-0.0%
process.time_to_main_ms478.16 ± (477.40 - 478.92) ms481.87 ± (480.84 - 482.90) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed60.14 ± (60.07 - 60.22) MB60.17 ± (60.10 - 60.25) MB+0.1%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.0%
.NET 8 - Baseline
process.internal_duration_ms191.75 ± (191.35 - 192.15) ms192.16 ± (191.76 - 192.57) ms+0.2%✅⬆️
process.time_to_main_ms70.41 ± (70.20 - 70.62) ms70.66 ± (70.45 - 70.87) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.76 ± (11.74 - 11.79) MB11.73 ± (11.71 - 11.76) MB-0.3%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.4%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms191.14 ± (190.84 - 191.44) ms193.58 ± (193.10 - 194.05) ms+1.3%✅⬆️
process.time_to_main_ms71.36 ± (71.24 - 71.49) ms72.19 ± (72.01 - 72.36) ms+1.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.84 ± (11.82 - 11.87) MB11.75 ± (11.73 - 11.77) MB-0.8%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.2%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms358.68 ± (357.44 - 359.92) ms359.29 ± (357.69 - 360.90) ms+0.2%✅⬆️
process.time_to_main_ms457.60 ± (456.84 - 458.36) ms461.51 ± (460.47 - 462.54) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed48.38 ± (48.34 - 48.41) MB48.47 ± (48.43 - 48.50) MB+0.2%✅⬆️
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 (8345) - mean (76ms)  : 73, 78
    master - mean (76ms)  : 73, 78

    section Bailout
    This PR (8345) - mean (80ms)  : 78, 82
    master - mean (81ms)  : 78, 83

    section CallTarget+Inlining+NGEN
    This PR (8345) - mean (1,101ms)  : 1058, 1144
    master - mean (1,102ms)  : 1065, 1140

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 (8345) - mean (119ms)  : 115, 123
    master - mean (120ms)  : 116, 123

    section Bailout
    This PR (8345) - mean (120ms)  : 118, 123
    master - mean (120ms)  : 117, 123

    section CallTarget+Inlining+NGEN
    This PR (8345) - mean (769ms)  : 738, 800
    master - mean (766ms)  : 733, 799

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8345) - mean (106ms)  : 103, 109
    master - mean (105ms)  : 101, 108

    section Bailout
    This PR (8345) - mean (106ms)  : 102, 109
    master - mean (106ms)  : 104, 109

    section CallTarget+Inlining+NGEN
    This PR (8345) - mean (750ms)  : 707, 793
    master - mean (751ms)  : 711, 791

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

    section Bailout
    This PR (8345) - mean (104ms)  : 102, 106
    master - mean (106ms)  : 103, 108

    section CallTarget+Inlining+NGEN
    This PR (8345) - mean (689ms)  : 663, 716
    master - mean (695ms)  : 669, 720

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 (8345) - mean (200ms)  : 190, 211
    master - mean (197ms)  : 190, 204

    section Bailout
    This PR (8345) - mean (202ms)  : 194, 209
    master - mean (202ms)  : 194, 209

    section CallTarget+Inlining+NGEN
    This PR (8345) - mean (1,165ms)  : 1112, 1219
    master - mean (1,169ms)  : 1092, 1247

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 (8345) - mean (282ms)  : 274, 291
    master - mean (279ms)  : 272, 285

    section Bailout
    This PR (8345) - mean (282ms)  : 276, 287
    master - mean (279ms)  : 275, 283

    section CallTarget+Inlining+NGEN
    This PR (8345) - mean (908ms)  : 873, 943
    master - mean (906ms)  : 873, 939

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8345) - mean (272ms)  : 267, 278
    master - mean (274ms)  : 266, 281

    section Bailout
    This PR (8345) - mean (274ms)  : 267, 281
    master - mean (273ms)  : 268, 278

    section CallTarget+Inlining+NGEN
    This PR (8345) - mean (946ms)  : 903, 989
    master - mean (943ms)  : 905, 980

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8345) - mean (273ms)  : 267, 278
    master - mean (272ms)  : 266, 278

    section Bailout
    This PR (8345) - mean (276ms)  : 265, 287
    master - mean (272ms)  : 268, 277

    section CallTarget+Inlining+NGEN
    This PR (8345) - mean (854ms)  : 814, 894
    master - mean (848ms)  : 816, 879

Loading

@pr-commenter
Copy link
Copy Markdown

pr-commenter bot commented Mar 19, 2026

Benchmarks

Benchmark execution time: 2026-03-19 19:40:10

Comparing candidate commit b5a25e4 in PR branch steven/update-sql-7 with baseline commit a9e4caf in branch master.

Found 8 performance improvements and 10 performance regressions! Performance is the same for 162 metrics, 12 unstable metrics.

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

  • 🟥 throughput [-8590.828op/s; -6373.653op/s] or [-6.748%; -5.006%]

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

  • 🟥 execution_time [+15.679ms; +22.050ms] or [+8.171%; +11.491%]

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

  • 🟥 execution_time [+12.849ms; +18.630ms] or [+6.545%; +9.490%]

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

  • 🟥 execution_time [+18.827ms; +20.560ms] or [+10.361%; +11.314%]

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

  • 🟩 execution_time [-24.497ms; -22.776ms] or [-12.725%; -11.831%]
  • 🟩 throughput [+179.326op/s; +192.978op/s] or [+13.484%; +14.511%]

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

  • 🟩 execution_time [-28.792ms; -20.281ms] or [-13.631%; -9.601%]

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

  • 🟩 execution_time [-83.906µs; -76.987µs] or [-5.820%; -5.340%]
  • 🟩 throughput [+39.269op/s; +42.719op/s] or [+5.661%; +6.158%]

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

  • 🟥 execution_time [+114.172µs; +119.108µs] or [+11.148%; +11.630%]
  • 🟥 throughput [-101.898op/s; -97.760op/s] or [-10.436%; -10.012%]

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

  • 🟥 throughput [-4320.821op/s; -2534.831op/s] or [-20.210%; -11.856%]

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

  • 🟩 execution_time [-28.502ms; -27.275ms] or [-14.234%; -13.621%]

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

  • 🟩 throughput [+14625720.512op/s; +15604402.792op/s] or [+6.484%; +6.918%]

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

  • 🟥 execution_time [+15.060ms; +20.711ms] or [+7.638%; +10.504%]

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

  • 🟩 execution_time [-17.905ms; -12.559ms] or [-8.402%; -5.893%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • 🟥 throughput [-42083.577op/s; -35649.313op/s] or [-5.989%; -5.073%]

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

  • 🟥 execution_time [+18.941ms; +23.559ms] or [+9.684%; +12.044%]

@bouwkast
Copy link
Copy Markdown
Collaborator Author

Closing in favor of #8346

@bouwkast bouwkast closed this Mar 20, 2026
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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant