Skip to content

[Runtime Metrics] Enables Runtime Metrics by Default for .NET 6+#8267

Merged
link04 merged 9 commits into
masterfrom
maximo/enable-runtime-metrics-default
Mar 13, 2026
Merged

[Runtime Metrics] Enables Runtime Metrics by Default for .NET 6+#8267
link04 merged 9 commits into
masterfrom
maximo/enable-runtime-metrics-default

Conversation

@link04

@link04 link04 commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Enable runtime metrics by default on .NET 6+ using the Diagnostics listener for services where the config is unset otherwise continue to use EventListener, and default existing explicit users to Diagnostics on .NET 8+ since there is no loss of ASP.NET Core Metrics.

Reason for change

Runtime metrics are currently opt-in. The EventListener/EventPipe implementation has known runtime bugs: shutdown crashes (dotnet/runtime#103480) and CPU/memory leaks (dotnet/runtime#111368). The Diagnostics listener avoids these and has comparable or better performance in our tests.

See RFC: Enabling .NET Runtime Metrics by Default — Option A.

Implementation details

Configuration logic for DD_RUNTIME_METRICS_ENABLED:

  • If explicitly set, use that value
  • If not set, default to true on .NET 6+

Configuration logic for DD_RUNTIME_METRICS_DIAGNOSTICS_METRICS_API_ENABLED:

  • If explicitly set, use that value
  • If not set:
    • .NET 8+: defaults to true (full metric coverage including ASP.NET Core meters)
    • .NET 6/7 with DD_RUNTIME_METRICS_ENABLED not set: defaults to true
    • .NET 6/7 with DD_RUNTIME_METRICS_ENABLED=true: defaults to false (keeps EventListener to preserve ASP.NET Core EventCounter metrics)

The .NET 8 check uses Environment.Version.Major >= 8.

Also fixes RuntimeMetricsWriter to dispose DiagnosticsMetricsRuntimeMetricsListener on .NET 6+ (MeterListener is safe to dispose, unlike EventListener).

The runtime metrics collector selected depends on the runtime version and whether DD_RUNTIME_METRICS_ENABLED was explicitly configured:

Runtime DD_RUNTIME_METRICS_ENABLED Collector used
.NET 8+ not set / invalid Diagnostics (default)
.NET 8+ true Diagnostics (default)
.NET 6/7 not set / invalid Diagnostics (default)
.NET 6/7 true (explicit) EventListener (preserves ASP.NET Core EventCounter metrics not yet available via Diagnostics on < .NET 8)
Any false Disabled
Any OTEL_METRICS_EXPORTER=none Disabled (takes precedence over the default)

Note for .NET 6/7 users who explicitly set DD_RUNTIME_METRICS_ENABLED=true and want to opt into the new Diagnostics-based collector (at the cost of losing ASP.NET Core EventCounter metrics): also set DD_RUNTIME_METRICS_DIAGNOSTICS_METRICS_API_ENABLED=true.

Test coverage

  • Updated conditional [InlineData] in RuntimeMetricsEnabled test to expect true when unset on .NET 6+.
  • Added RuntimeMetrics_DefaultsToDignosticsOnNet6Plus_WhenNotExplicitlySet.
  • Added RuntimeMetrics_ExplicitEnable_RespectsExplicitDiagnosticsFlag (explicit true/false cases).
  • Added RuntimeMetrics_ExplicitEnable_DefaultsToDiagnosticsOnNet8Plus (net8.0 TFM).
  • Added RuntimeMetrics_ExplicitEnable_DefaultsToEventListenerOnNet6And7 (net6.0/net7.0 TFMs).
  • Added RuntimeMetrics_ExplicitDisable_OverridesDefault.
  • Added RuntimeMetrics_InvalidValue_TreatedAsUnset_DefaultsToDiagnostics (codifies that invalid values like DD_RUNTIME_METRICS_ENABLED=blah are treated as unset, not as explicitly configured)

Other details

Part of Enabling .NET Runtime Metrics by Default. Should land after the PRs below are merged which include necessary fixes:

Moving forward

After this lands, monitor:

  1. Telemetry: DD_RUNTIME_METRICS_ENABLED and DD_RUNTIME_METRICS_DIAGNOSTICS_METRICS_API_ENABLED usage to track adoption of the new defaults.
  2. Support tickets: Customers reporting missing metrics on .NET 6/7 (contention_time, ASP.NET Core counters, compacting_gc tag) after upgrading.
  3. Future: Consider defaulting DD_RUNTIME_METRICS_DIAGNOSTICS_METRICS_API_ENABLED=true for all .NET 6+ in a later release once the .NET 6/7 EventCounter gap is documented and communicated.

link04 added 2 commits March 3, 2026 00:30
When DD_RUNTIME_METRICS_ENABLED is not explicitly set and the runtime is
.NET 6+, default to enabled with the System.Diagnostics.Metrics-based
collector. This avoids known EventPipe issues (dotnet/runtime#103480,
dotnet/runtime#111368).

Existing explicit configurations are preserved:
- DD_RUNTIME_METRICS_ENABLED=true keeps EventListener unless
  DD_RUNTIME_METRICS_DIAGNOSTICS_METRICS_API_ENABLED is also set.
- DD_RUNTIME_METRICS_ENABLED=false remains disabled.

Also fix RuntimeMetricsWriter to dispose DiagnosticsMetricsRuntimeMetricsListener
on .NET 6+ (MeterListener is safe to dispose, unlike EventListener).

Made-with: Cursor
@pr-commenter

pr-commenter Bot commented Mar 3, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-03-13 21:08:46

Comparing candidate commit b063425 in PR branch maximo/enable-runtime-metrics-default with baseline commit 7c5b809 in branch master.

Found 9 performance improvements and 9 performance regressions! Performance is the same for 163 metrics, 11 unstable metrics.

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

  • 🟥 execution_time [+82.315ms; +82.446ms] or [+67.755%; +67.862%]

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

  • 🟩 execution_time [-23.881ms; -17.751ms] or [-10.955%; -8.142%]

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

  • 🟥 execution_time [+15.324ms; +21.717ms] or [+7.792%; +11.042%]

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

  • 🟩 execution_time [-21.262ms; -20.201ms] or [-10.520%; -9.995%]

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

  • 🟥 execution_time [+98.050ms; +103.475ms] or [+99.983%; +105.515%]

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

  • 🟥 execution_time [+8.530ms; +13.053ms] or [+5.029%; +7.695%]

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

  • 🟥 execution_time [+63.205ms; +69.382ms] or [+39.818%; +43.710%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSlice net472

  • 🟩 execution_time [-113.115µs; -105.618µs] or [-5.502%; -5.137%]
  • 🟩 throughput [+26.373op/s; +28.287op/s] or [+5.422%; +5.816%]

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

  • 🟥 execution_time [+415.329µs; +421.018µs] or [+40.362%; +40.915%]
  • 🟥 throughput [-282.724op/s; -278.911op/s] or [-29.092%; -28.700%]

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

  • 🟩 throughput [+22891.523op/s; +32215.946op/s] or [+5.606%; +7.890%]

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

  • 🟩 execution_time [-18.386ms; -12.918ms] or [-8.687%; -6.103%]

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

  • 🟩 throughput [+10137.487op/s; +13528.283op/s] or [+5.397%; +7.203%]

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

  • 🟩 throughput [+9520.844op/s; +12250.856op/s] or [+5.588%; +7.190%]

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

  • 🟩 execution_time [-10.880ms; -9.403ms] or [-11.133%; -9.622%]

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

  • 🟥 execution_time [+18.460ms; +22.709ms] or [+9.217%; +11.338%]

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

  • 🟥 execution_time [+17.555ms; +20.784ms] or [+8.879%; +10.512%]

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Mar 4, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8267) 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.42 ± (75.41 - 75.69) ms74.96 ± (74.91 - 75.23) ms-0.6%
.NET Framework 4.8 - Bailout
duration80.67 ± (80.62 - 81.09) ms79.51 ± (79.35 - 79.77) ms-1.4%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1106.61 ± (1107.37 - 1113.88) ms1092.47 ± (1091.50 - 1097.59) ms-1.3%
.NET Core 3.1 - Baseline
process.internal_duration_ms23.28 ± (23.23 - 23.33) ms23.17 ± (23.12 - 23.21) ms-0.5%
process.time_to_main_ms88.33 ± (88.14 - 88.53) ms87.52 ± (87.32 - 87.72) ms-0.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.89 ± (10.89 - 10.90) MB10.92 ± (10.92 - 10.92) MB+0.2%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms23.10 ± (23.04 - 23.16) ms23.05 ± (23.00 - 23.10) ms-0.2%
process.time_to_main_ms90.00 ± (89.80 - 90.20) ms89.47 ± (89.24 - 89.70) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.93 ± (10.93 - 10.94) MB10.95 ± (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_ms227.08 ± (225.56 - 228.60) ms226.24 ± (224.93 - 227.54) ms-0.4%
process.time_to_main_ms504.16 ± (503.30 - 505.01) ms501.72 ± (500.81 - 502.62) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed47.27 ± (47.24 - 47.29) MB47.29 ± (47.26 - 47.32) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.3%
.NET 6 - Baseline
process.internal_duration_ms21.76 ± (21.71 - 21.81) ms21.82 ± (21.79 - 21.86) ms+0.3%✅⬆️
process.time_to_main_ms76.17 ± (75.99 - 76.35) ms75.49 ± (75.31 - 75.66) ms-0.9%
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.64) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.74 ± (21.70 - 21.78) ms21.88 ± (21.83 - 21.93) ms+0.6%✅⬆️
process.time_to_main_ms77.64 ± (77.45 - 77.83) ms77.82 ± (77.64 - 78.00) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.73 - 10.74) MB10.75 ± (10.74 - 10.75) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms220.46 ± (219.12 - 221.80) ms207.88 ± (206.25 - 209.51) ms-5.7%
process.time_to_main_ms482.58 ± (481.74 - 483.42) ms502.99 ± (502.19 - 503.78) ms+4.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.61 ± (48.59 - 48.63) MB49.19 ± (49.14 - 49.23) MB+1.2%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)29 ± (29 - 29)+3.3%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.98 ± (19.94 - 20.01) ms19.95 ± (19.90 - 20.00) ms-0.1%
process.time_to_main_ms75.91 ± (75.75 - 76.08) ms74.97 ± (74.80 - 75.13) ms-1.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.67 - 7.68) MB7.68 ± (7.67 - 7.68) MB+0.0%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms20.10 ± (20.06 - 20.15) ms19.98 ± (19.94 - 20.03) ms-0.6%
process.time_to_main_ms77.61 ± (77.43 - 77.79) ms75.92 ± (75.75 - 76.09) ms-2.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.71 - 7.73) MB7.73 ± (7.72 - 7.74) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms169.82 ± (169.01 - 170.62) ms167.16 ± (166.24 - 168.09) ms-1.6%
process.time_to_main_ms468.76 ± (467.91 - 469.60) ms480.48 ± (479.78 - 481.19) ms+2.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.27 ± (36.24 - 36.29) MB36.60 ± (36.58 - 36.62) MB+0.9%✅⬆️
runtime.dotnet.threads.count27 ± (26 - 27)28 ± (28 - 28)+3.8%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration193.86 ± (193.85 - 194.92) ms194.44 ± (194.29 - 195.18) ms+0.3%✅⬆️
.NET Framework 4.8 - Bailout
duration197.82 ± (197.53 - 198.34) ms197.71 ± (197.64 - 198.24) ms-0.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1151.00 ± (1152.08 - 1160.38) ms1158.30 ± (1159.70 - 1168.62) ms+0.6%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms189.36 ± (188.95 - 189.78) ms189.12 ± (188.75 - 189.50) ms-0.1%
process.time_to_main_ms81.11 ± (80.85 - 81.36) ms81.33 ± (81.10 - 81.55) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.12 ± (16.10 - 16.15) MB16.08 ± (16.06 - 16.11) MB-0.2%
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (19 - 20)-0.1%
.NET Core 3.1 - Bailout
process.internal_duration_ms188.06 ± (187.82 - 188.31) ms191.81 ± (191.34 - 192.28) ms+2.0%✅⬆️
process.time_to_main_ms82.36 ± (82.22 - 82.50) ms83.47 ± (83.24 - 83.69) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.24 ± (16.21 - 16.27) MB16.15 ± (16.13 - 16.17) MB-0.5%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (20 - 21)-0.3%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms395.69 ± (393.94 - 397.44) ms403.23 ± (401.41 - 405.05) ms+1.9%✅⬆️
process.time_to_main_ms475.24 ± (474.54 - 475.93) ms478.52 ± (477.71 - 479.33) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed57.78 ± (57.62 - 57.94) MB58.29 ± (58.20 - 58.39) MB+0.9%✅⬆️
runtime.dotnet.threads.count30 ± (29 - 30)30 ± (30 - 30)+0.3%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms193.37 ± (192.97 - 193.78) ms196.02 ± (195.56 - 196.48) ms+1.4%✅⬆️
process.time_to_main_ms70.35 ± (70.17 - 70.54) ms71.05 ± (70.85 - 71.26) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.33 ± (16.25 - 16.41) MB16.38 ± (16.36 - 16.40) MB+0.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+1.1%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms193.23 ± (192.83 - 193.62) ms193.53 ± (193.14 - 193.92) ms+0.2%✅⬆️
process.time_to_main_ms71.32 ± (71.17 - 71.46) ms71.73 ± (71.59 - 71.88) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.38 ± (16.34 - 16.41) MB16.28 ± (16.18 - 16.39) MB-0.6%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-1.1%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms430.08 ± (428.34 - 431.83) ms429.88 ± (428.35 - 431.41) ms-0.0%
process.time_to_main_ms455.36 ± (454.52 - 456.21) ms479.35 ± (478.54 - 480.16) ms+5.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed59.79 ± (59.69 - 59.89) MB60.26 ± (60.18 - 60.35) MB+0.8%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)31 ± (31 - 31)+3.8%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms190.67 ± (190.24 - 191.11) ms191.04 ± (190.61 - 191.47) ms+0.2%✅⬆️
process.time_to_main_ms70.09 ± (69.85 - 70.33) ms69.96 ± (69.76 - 70.17) ms-0.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.73 ± (11.70 - 11.75) MB11.77 ± (11.74 - 11.80) MB+0.4%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms190.10 ± (189.79 - 190.41) ms189.05 ± (188.76 - 189.34) ms-0.6%
process.time_to_main_ms70.78 ± (70.65 - 70.92) ms70.32 ± (70.22 - 70.41) ms-0.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.77 ± (11.74 - 11.81) MB11.87 ± (11.84 - 11.90) MB+0.8%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.1%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms355.30 ± (353.90 - 356.70) ms354.35 ± (353.05 - 355.64) ms-0.3%
process.time_to_main_ms439.13 ± (438.42 - 439.84) ms453.37 ± (452.69 - 454.05) ms+3.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed48.28 ± (48.24 - 48.33) MB48.49 ± (48.46 - 48.53) MB+0.4%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)30 ± (30 - 30)+3.6%✅⬆️
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 (8267) - mean (75ms)  : 73, 77
    master - mean (76ms)  : 74, 77

    section Bailout
    This PR (8267) - mean (80ms)  : 77, 82
    master - mean (81ms)  : 78, 84

    section CallTarget+Inlining+NGEN
    This PR (8267) - mean (1,095ms)  : 1050, 1139
    master - mean (1,111ms)  : 1064, 1158

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 (8267) - mean (118ms)  : 114, 121
    master - mean (119ms)  : 116, 122

    section Bailout
    This PR (8267) - mean (120ms)  : 117, 122
    master - mean (120ms)  : 117, 123

    section CallTarget+Inlining+NGEN
    This PR (8267) - mean (765ms)  : 741, 788
    master - mean (767ms)  : 745, 789

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

    section Bailout
    This PR (8267) - mean (106ms)  : 103, 109
    master - mean (106ms)  : 103, 109

    section CallTarget+Inlining+NGEN
    This PR (8267) - mean (747ms)  : 706, 788
    master - mean (735ms)  : 692, 778

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8267) - mean (103ms)  : 100, 106
    master - mean (104ms)  : 101, 107

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

    section CallTarget+Inlining+NGEN
    This PR (8267) - mean (687ms)  : 662, 712
    master - mean (669ms)  : 648, 690

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 (8267) - mean (195ms)  : 190, 200
    master - mean (194ms)  : 189, 200

    section Bailout
    This PR (8267) - mean (198ms)  : 195, 201
    master - mean (198ms)  : 194, 202

    section CallTarget+Inlining+NGEN
    This PR (8267) - mean (1,164ms)  : 1100, 1228
    master - mean (1,156ms)  : 1094, 1218

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 (8267) - mean (279ms)  : 270, 287
    master - mean (279ms)  : 273, 285

    section Bailout
    This PR (8267) - mean (284ms)  : 274, 294
    master - mean (278ms)  : 274, 282

    section CallTarget+Inlining+NGEN
    This PR (8267) - mean (913ms)  : 877, 949
    master - mean (903ms)  : 868, 938

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8267) - mean (275ms)  : 265, 286
    master - mean (272ms)  : 266, 278

    section Bailout
    This PR (8267) - mean (273ms)  : 268, 278
    master - mean (273ms)  : 268, 277

    section CallTarget+Inlining+NGEN
    This PR (8267) - mean (942ms)  : 910, 974
    master - mean (916ms)  : 884, 948

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

    section Bailout
    This PR (8267) - mean (269ms)  : 265, 272
    master - mean (270ms)  : 266, 274

    section CallTarget+Inlining+NGEN
    This PR (8267) - mean (837ms)  : 806, 869
    master - mean (825ms)  : 801, 849

Loading

@andrewlock andrewlock added the AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos label Mar 4, 2026

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

LGTM, just some minor suggestions on wording and cleanup

Comment thread tracer/src/Datadog.Trace/Configuration/supported-configurations.yaml Outdated
Comment thread tracer/src/Datadog.Trace/Configuration/supported-configurations.yaml Outdated
Comment thread tracer/src/Datadog.Trace/Configuration/TracerSettings.cs
Comment thread tracer/src/Datadog.Trace/Configuration/TracerSettings.cs Outdated
Comment thread tracer/src/Datadog.Trace/Configuration/TracerSettings.cs
@link04 link04 marked this pull request as ready for review March 5, 2026 17:12
@link04 link04 requested review from a team as code owners March 5, 2026 17:12

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

Copy link
Copy Markdown

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.

Reviewed commit: febef96826

ℹ️ 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".

Comment thread tracer/src/Datadog.Trace/Configuration/TracerSettings.cs Outdated
Comment thread tracer/src/Datadog.Trace/Configuration/TracerSettings.cs Outdated
Comment thread tracer/test/Datadog.Trace.Tests/Configuration/TracerSettingsTests.cs Outdated
Comment thread tracer/src/Datadog.Trace/Configuration/supported-configurations.yaml Outdated
Comment thread tracer/src/Datadog.Trace/Configuration/TracerSettings.cs

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

Looks good! I have some small comments that I'd like to see resolved and incorporated before merging

@link04 link04 added the docker_image_artifacts Use to label PRs for which you would need a Docker Image created for. label Mar 10, 2026
@link04 link04 merged commit 8eb0b71 into master Mar 13, 2026
141 checks passed
@link04 link04 deleted the maximo/enable-runtime-metrics-default branch March 13, 2026 22:24
@github-actions github-actions Bot added this to the vNext-v3 milestone Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos area:runtime-metrics docker_image_artifacts Use to label PRs for which you would need a Docker Image created for.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants