Skip to content

Conversation

@vandonr
Copy link
Contributor

@vandonr vandonr commented Nov 26, 2025

Summary of changes

add process tags as constant tags for both runtime metrics and the metrics sent by dynamic instrumentation probes

Reason for change

AIDM-195

Implementation details

Test coverage

Will append existing integration tests

Other details

… probes

# Conflicts:
#	tracer/src/Datadog.Trace/Debugger/DebuggerFactory.cs
#	tracer/src/Datadog.Trace/TracerManagerFactory.cs
@dd-trace-dotnet-ci-bot
Copy link

dd-trace-dotnet-ci-bot bot commented Jan 8, 2026

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (7871) 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
duration68.02 ± (68.08 - 68.28) ms68.69 ± (68.69 - 68.94) ms+1.0%✅⬆️
.NET Framework 4.8 - Bailout
duration71.95 ± (71.88 - 72.08) ms72.41 ± (72.34 - 72.54) ms+0.6%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1003.26 ± (1004.17 - 1009.93) ms1006.56 ± (1007.97 - 1013.30) ms+0.3%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.00 ± (21.96 - 22.04) ms22.00 ± (21.97 - 22.04) ms+0.0%✅⬆️
process.time_to_main_ms78.68 ± (78.54 - 78.82) ms79.13 ± (78.99 - 79.28) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.90 - 10.91) MB10.92 ± (10.92 - 10.93) MB+0.2%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms21.88 ± (21.86 - 21.90) ms21.92 ± (21.89 - 21.94) ms+0.2%✅⬆️
process.time_to_main_ms79.66 ± (79.56 - 79.76) ms80.37 ± (80.28 - 80.46) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.95 ± (10.95 - 10.96) MB10.96 ± (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_ms228.37 ± (224.62 - 232.13) ms238.86 ± (234.66 - 243.06) ms+4.6%✅⬆️
process.time_to_main_ms469.63 ± (469.13 - 470.13) ms471.70 ± (471.23 - 472.16) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.24 ± (48.21 - 48.26) MB48.25 ± (48.23 - 48.27) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.2%
.NET 6 - Baseline
process.internal_duration_ms20.51 ± (20.48 - 20.53) ms20.76 ± (20.73 - 20.79) ms+1.2%✅⬆️
process.time_to_main_ms67.85 ± (67.72 - 67.97) ms68.40 ± (68.27 - 68.52) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.61 - 10.62) MB10.64 ± (10.64 - 10.65) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.53 ± (20.50 - 20.55) ms20.70 ± (20.68 - 20.72) ms+0.8%✅⬆️
process.time_to_main_ms68.88 ± (68.82 - 68.94) ms69.24 ± (69.19 - 69.28) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.71 ± (10.69 - 10.72) MB10.74 ± (10.73 - 10.74) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms241.40 ± (238.73 - 244.06) ms244.09 ± (241.65 - 246.53) ms+1.1%✅⬆️
process.time_to_main_ms438.63 ± (438.17 - 439.09) ms442.43 ± (442.05 - 442.81) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.67 ± (48.64 - 48.70) MB48.69 ± (48.66 - 48.72) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.5%
.NET 8 - Baseline
process.internal_duration_ms18.80 ± (18.77 - 18.83) ms18.81 ± (18.79 - 18.84) ms+0.1%✅⬆️
process.time_to_main_ms67.01 ± (66.91 - 67.11) ms67.07 ± (66.97 - 67.16) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.65 - 7.67) MB7.69 ± (7.68 - 7.70) MB+0.4%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms18.83 ± (18.79 - 18.86) ms18.89 ± (18.86 - 18.91) ms+0.3%✅⬆️
process.time_to_main_ms68.09 ± (68.03 - 68.16) ms68.26 ± (68.19 - 68.33) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.73) MB7.74 ± (7.73 - 7.75) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms178.05 ± (177.20 - 178.91) ms178.78 ± (177.95 - 179.61) ms+0.4%✅⬆️
process.time_to_main_ms424.87 ± (424.22 - 425.51) ms426.78 ± (426.16 - 427.40) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.34 ± (36.31 - 36.37) MB36.40 ± (36.37 - 36.43) MB+0.2%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.2%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration192.32 ± (192.27 - 193.08) ms193.69 ± (193.69 - 194.64) ms+0.7%✅⬆️
.NET Framework 4.8 - Bailout
duration196.25 ± (196.03 - 196.44) ms196.88 ± (196.87 - 197.72) ms+0.3%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1107.64 ± (1110.58 - 1117.53) ms1118.11 ± (1118.90 - 1127.63) ms+0.9%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms187.79 ± (187.41 - 188.17) ms187.90 ± (187.61 - 188.19) ms+0.1%✅⬆️
process.time_to_main_ms80.26 ± (80.07 - 80.45) ms80.50 ± (80.26 - 80.73) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.05 ± (16.03 - 16.07) MB16.16 ± (16.13 - 16.19) MB+0.7%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+0.3%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms186.91 ± (186.60 - 187.21) ms187.16 ± (186.90 - 187.43) ms+0.1%✅⬆️
process.time_to_main_ms81.40 ± (81.30 - 81.51) ms81.77 ± (81.62 - 81.93) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.23 ± (16.20 - 16.26) MB16.21 ± (16.18 - 16.23) MB-0.2%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.9%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms418.30 ± (414.95 - 421.66) ms420.57 ± (417.21 - 423.93) ms+0.5%✅⬆️
process.time_to_main_ms472.39 ± (471.82 - 472.95) ms474.07 ± (473.47 - 474.66) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.72 ± (58.61 - 58.83) MB58.66 ± (58.54 - 58.79) MB-0.1%
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 30)+0.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms193.12 ± (192.67 - 193.57) ms193.13 ± (192.71 - 193.55) ms+0.0%✅⬆️
process.time_to_main_ms69.81 ± (69.63 - 70.00) ms69.87 ± (69.61 - 70.14) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.32 ± (16.25 - 16.38) MB16.29 ± (16.20 - 16.38) MB-0.2%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.4%
.NET 6 - Bailout
process.internal_duration_ms191.32 ± (191.03 - 191.61) ms191.64 ± (191.30 - 191.99) ms+0.2%✅⬆️
process.time_to_main_ms70.49 ± (70.39 - 70.58) ms70.41 ± (70.30 - 70.52) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.16 ± (16.03 - 16.30) MB16.12 ± (15.97 - 16.26) MB-0.3%
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 19)-3.1%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms456.08 ± (453.84 - 458.32) ms451.00 ± (448.04 - 453.96) ms-1.1%
process.time_to_main_ms444.85 ± (444.33 - 445.37) ms445.26 ± (444.76 - 445.76) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.23 ± (58.11 - 58.35) MB58.29 ± (58.17 - 58.42) MB+0.1%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 30)+0.0%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms190.26 ± (189.94 - 190.58) ms190.57 ± (190.17 - 190.97) ms+0.2%✅⬆️
process.time_to_main_ms69.38 ± (69.17 - 69.59) ms69.34 ± (69.12 - 69.56) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.75 ± (11.73 - 11.78) MB11.71 ± (11.69 - 11.74) MB-0.3%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms189.73 ± (189.42 - 190.04) ms189.99 ± (189.64 - 190.35) ms+0.1%✅⬆️
process.time_to_main_ms70.01 ± (69.91 - 70.12) ms70.45 ± (70.36 - 70.55) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.84 ± (11.81 - 11.87) MB11.79 ± (11.76 - 11.82) MB-0.4%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.3%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms362.07 ± (360.71 - 363.44) ms364.08 ± (362.56 - 365.60) ms+0.6%✅⬆️
process.time_to_main_ms427.99 ± (427.31 - 428.67) ms430.97 ± (430.38 - 431.55) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed47.98 ± (47.94 - 48.02) MB48.05 ± (48.02 - 48.08) MB+0.1%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-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 (7871) - mean (69ms)  : 67, 70
    master - mean (68ms)  : 67, 70

    section Bailout
    This PR (7871) - mean (72ms)  : 71, 73
    master - mean (72ms)  : 71, 73

    section CallTarget+Inlining+NGEN
    This PR (7871) - mean (1,011ms)  : 972, 1049
    master - mean (1,007ms)  : 966, 1048

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 (7871) - mean (107ms)  : 104, 109
    master - mean (106ms)  : 103, 109

    section Bailout
    This PR (7871) - mean (108ms)  : 106, 109
    master - mean (107ms)  : 105, 108

    section CallTarget+Inlining+NGEN
    This PR (7871) - mean (738ms)  : 665, 811
    master - mean (723ms)  : 668, 779

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7871) - mean (94ms)  : 92, 96
    master - mean (93ms)  : 91, 95

    section Bailout
    This PR (7871) - mean (95ms)  : 94, 95
    master - mean (94ms)  : 93, 95

    section CallTarget+Inlining+NGEN
    This PR (7871) - mean (713ms)  : 676, 750
    master - mean (703ms)  : 657, 749

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7871) - mean (92ms)  : 90, 94
    master - mean (92ms)  : 89, 94

    section Bailout
    This PR (7871) - mean (93ms)  : 92, 94
    master - mean (93ms)  : 92, 94

    section CallTarget+Inlining+NGEN
    This PR (7871) - mean (633ms)  : 618, 649
    master - mean (632ms)  : 616, 647

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 (7871) - mean (194ms)  : 189, 199
    master - mean (193ms)  : 189, 197

    section Bailout
    This PR (7871) - mean (197ms)  : 193, 202
    master - mean (196ms)  : 194, 198

    section CallTarget+Inlining+NGEN
    This PR (7871) - mean (1,123ms)  : 1060, 1187
    master - mean (1,114ms)  : 1064, 1164

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 (7871) - mean (277ms)  : 272, 281
    master - mean (276ms)  : 271, 281

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

    section CallTarget+Inlining+NGEN
    This PR (7871) - mean (923ms)  : 867, 978
    master - mean (921ms)  : 865, 976

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7871) - mean (271ms)  : 265, 277
    master - mean (271ms)  : 264, 278

    section Bailout
    This PR (7871) - mean (270ms)  : 266, 274
    master - mean (270ms)  : 267, 273

    section CallTarget+Inlining+NGEN
    This PR (7871) - mean (927ms)  : 883, 971
    master - mean (930ms)  : 894, 966

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

    section Bailout
    This PR (7871) - mean (270ms)  : 265, 274
    master - mean (269ms)  : 265, 273

    section CallTarget+Inlining+NGEN
    This PR (7871) - mean (826ms)  : 804, 848
    master - mean (821ms)  : 802, 840

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants