Skip to content

[SymDB] Defer SymDB startup work#8548

Merged
dudikeleti merged 18 commits into
masterfrom
dudik/symdb/default-on-fixes
May 11, 2026
Merged

[SymDB] Defer SymDB startup work#8548
dudikeleti merged 18 commits into
masterfrom
dudik/symdb/default-on-fixes

Conversation

@dudikeleti

Copy link
Copy Markdown
Contributor

Summary of changes

  • Gate debugger startup so DD_SYMBOL_DATABASE_UPLOAD_ENABLED only opens the debugger path when Remote Configuration is available.
  • Defer SymDB uploader creation until the LIVE_DEBUGGING_SYMBOL_DB remote config payload enables upload_symbols=true.

Reason for change

  • SymDB uploads should not affect startup unless RCM is available and explicitly enables symbol upload.

Implementation details

  • Added Instrumentation.ShouldInitializeDebugger() to keep the top-level debugger gate closed for SymDB when RCM is unavailable.
  • Added SymDbRemoteConfig to subscribe only to LIVE_DEBUGGING_SYMBOL_DB and parse upload_symbols updates without constructing SymbolsUploader.

@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: c129294227

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

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented May 1, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8548) 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.68 ± (74.67 - 75.30) ms72.49 ± (72.47 - 72.79) ms-2.9%
.NET Framework 4.8 - Bailout
duration77.76 ± (77.79 - 78.20) ms79.88 ± (79.47 - 80.04) ms+2.7%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1125.14 ± (1124.78 - 1130.94) ms1092.57 ± (1093.56 - 1101.74) ms-2.9%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.51 ± (22.46 - 22.56) ms22.86 ± (22.80 - 22.92) ms+1.5%✅⬆️
process.time_to_main_ms85.36 ± (85.07 - 85.64) ms87.43 ± (87.08 - 87.77) ms+2.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.85 ± (10.84 - 10.85) MB10.92 ± (10.92 - 10.92) MB+0.7%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.38 ± (22.34 - 22.42) ms22.81 ± (22.76 - 22.86) ms+1.9%✅⬆️
process.time_to_main_ms86.11 ± (85.91 - 86.31) ms88.81 ± (88.50 - 89.13) ms+3.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.94 - 10.94) MB10.95 ± (10.94 - 10.95) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms205.88 ± (205.33 - 206.44) ms212.42 ± (211.57 - 213.27) ms+3.2%✅⬆️
process.time_to_main_ms568.57 ± (567.21 - 569.92) ms538.89 ± (537.51 - 540.27) ms-5.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.84 ± (49.82 - 49.86) MB48.13 ± (48.10 - 48.15) MB-3.4%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.8%
.NET 6 - Baseline
process.internal_duration_ms21.11 ± (21.07 - 21.14) ms21.27 ± (21.22 - 21.31) ms+0.8%✅⬆️
process.time_to_main_ms73.15 ± (72.98 - 73.32) ms74.12 ± (73.93 - 74.31) ms+1.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.61 ± (10.60 - 10.61) MB10.64 ± (10.64 - 10.64) MB+0.3%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.01 ± (20.97 - 21.05) ms21.69 ± (21.63 - 21.75) ms+3.2%✅⬆️
process.time_to_main_ms73.97 ± (73.81 - 74.12) ms78.62 ± (78.34 - 78.89) ms+6.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.73 ± (10.72 - 10.73) MB10.75 ± (10.75 - 10.76) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms353.03 ± (350.93 - 355.13) ms378.31 ± (376.48 - 380.13) ms+7.2%✅⬆️
process.time_to_main_ms564.28 ± (563.00 - 565.57) ms538.60 ± (537.29 - 539.91) ms-4.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.96 ± (50.94 - 50.99) MB49.61 ± (49.58 - 49.63) MB-2.7%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.7%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.90 ± (19.84 - 19.97) ms19.46 ± (19.42 - 19.50) ms-2.2%
process.time_to_main_ms76.08 ± (75.78 - 76.38) ms73.24 ± (73.05 - 73.43) ms-3.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.66 ± (7.66 - 7.67) MB7.65 ± (7.65 - 7.66) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.49 ± (19.44 - 19.53) ms19.71 ± (19.66 - 19.76) ms+1.1%✅⬆️
process.time_to_main_ms74.26 ± (74.06 - 74.46) ms75.93 ± (75.64 - 76.22) ms+2.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.71 ± (7.71 - 7.72) MB7.71 ± (7.71 - 7.72) MB-0.0%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms284.58 ± (280.87 - 288.29) ms299.58 ± (297.27 - 301.88) ms+5.3%✅⬆️
process.time_to_main_ms525.30 ± (524.03 - 526.57) ms500.23 ± (498.91 - 501.54) ms-4.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.89 ± (37.86 - 37.91) MB36.60 ± (36.57 - 36.63) MB-3.4%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.4%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration207.60 ± (209.38 - 212.24) ms209.64 ± (210.62 - 212.61) ms+1.0%✅⬆️
.NET Framework 4.8 - Bailout
duration211.11 ± (212.63 - 215.45) ms215.84 ± (217.09 - 219.49) ms+2.2%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1308.19 ± (1311.81 - 1323.56) ms1260.23 ± (1261.22 - 1271.38) ms-3.7%
.NET Core 3.1 - Baseline
process.internal_duration_ms201.23 ± (200.21 - 202.25) ms206.98 ± (205.81 - 208.15) ms+2.9%✅⬆️
process.time_to_main_ms87.80 ± (87.29 - 88.31) ms90.41 ± (89.78 - 91.03) ms+3.0%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.95 ± (15.93 - 15.97) MB15.92 ± (15.90 - 15.94) MB-0.2%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+1.8%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms201.32 ± (200.31 - 202.33) ms204.83 ± (203.66 - 206.00) ms+1.7%✅⬆️
process.time_to_main_ms88.58 ± (88.12 - 89.04) ms90.23 ± (89.68 - 90.78) ms+1.9%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.99 ± (15.97 - 16.01) MB15.93 ± (15.91 - 15.95) MB-0.4%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.4%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms385.94 ± (384.67 - 387.21) ms392.82 ± (391.64 - 394.00) ms+1.8%✅⬆️
process.time_to_main_ms585.81 ± (583.95 - 587.66) ms564.52 ± (562.70 - 566.34) ms-3.6%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.75 ± (58.62 - 58.88) MB58.47 ± (58.30 - 58.64) MB-0.5%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms210.46 ± (209.45 - 211.46) ms208.35 ± (207.24 - 209.46) ms-1.0%
process.time_to_main_ms77.40 ± (77.05 - 77.75) ms76.66 ± (76.22 - 77.10) ms-1.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.18 ± (16.16 - 16.20) MB16.24 ± (16.22 - 16.26) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 19)-0.6%
.NET 6 - Bailout
process.internal_duration_ms210.05 ± (209.03 - 211.07) ms208.00 ± (206.83 - 209.17) ms-1.0%
process.time_to_main_ms78.73 ± (78.33 - 79.13) ms78.16 ± (77.70 - 78.62) ms-0.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.19 ± (16.17 - 16.21) MB16.32 ± (16.30 - 16.34) MB+0.8%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 21)21 ± (20 - 21)+0.2%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms585.55 ± (580.24 - 590.87) ms595.06 ± (592.62 - 597.50) ms+1.6%✅⬆️
process.time_to_main_ms590.15 ± (587.73 - 592.57) ms560.91 ± (559.10 - 562.71) ms-5.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.98 ± (61.91 - 62.06) MB61.03 ± (60.93 - 61.13) MB-1.5%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.2%
.NET 8 - Baseline
process.internal_duration_ms211.23 ± (209.71 - 212.76) ms209.70 ± (208.59 - 210.81) ms-0.7%
process.time_to_main_ms77.28 ± (76.86 - 77.70) ms77.52 ± (77.06 - 77.98) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.52 ± (11.50 - 11.54) MB11.53 ± (11.51 - 11.55) MB+0.1%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.3%
.NET 8 - Bailout
process.internal_duration_ms210.28 ± (208.88 - 211.68) ms212.28 ± (210.88 - 213.67) ms+0.9%✅⬆️
process.time_to_main_ms78.58 ± (78.15 - 79.00) ms78.85 ± (78.39 - 79.31) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.57 ± (11.55 - 11.59) MB11.57 ± (11.55 - 11.59) MB-0.0%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.1%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms536.47 ± (528.50 - 544.43) ms545.17 ± (537.69 - 552.65) ms+1.6%✅⬆️
process.time_to_main_ms545.02 ± (542.71 - 547.33) ms525.13 ± (523.26 - 527.00) ms-3.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.67 ± (51.60 - 51.74) MB50.58 ± (50.49 - 50.66) MB-2.1%
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 (8548) - mean (73ms)  : 70, 75
    master - mean (75ms)  : 70, 80

    section Bailout
    This PR (8548) - mean (80ms)  : 75, 84
    master - mean (78ms)  : 75, 81

    section CallTarget+Inlining+NGEN
    This PR (8548) - mean (1,098ms)  : 1036, 1159
    master - mean (1,128ms)  : 1084, 1172

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 (8548) - mean (117ms)  : 111, 124
    master - mean (115ms)  : 108, 121

    section Bailout
    This PR (8548) - mean (119ms)  : 113, 124
    master - mean (115ms)  : 112, 119

    section CallTarget+Inlining+NGEN
    This PR (8548) - mean (791ms)  : 762, 820
    master - mean (813ms)  : 780, 846

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

    section Bailout
    This PR (8548) - mean (107ms)  : crit, 102, 112
    master - mean (101ms)  : 99, 103

    section CallTarget+Inlining+NGEN
    This PR (8548) - mean (948ms)  : 913, 984
    master - mean (946ms)  : 903, 990

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

    section Bailout
    This PR (8548) - mean (103ms)  : 98, 109
    master - mean (101ms)  : 98, 105

    section CallTarget+Inlining+NGEN
    This PR (8548) - mean (828ms)  : 787, 868
    master - mean (840ms)  : 784, 895

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 (8548) - mean (212ms)  : 197, 226
    master - mean (211ms)  : 190, 231

    section Bailout
    This PR (8548) - mean (218ms)  : 200, 237
    master - mean (214ms)  : 194, 234

    section CallTarget+Inlining+NGEN
    This PR (8548) - mean (1,266ms)  : 1189, 1344
    master - mean (1,318ms)  : 1228, 1407

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 (8548) - mean (309ms)  : 280, 337
    master - mean (304ms)  : 270, 338

    section Bailout
    This PR (8548) - mean (307ms)  : 279, 335
    master - mean (301ms)  : 277, 325

    section CallTarget+Inlining+NGEN
    This PR (8548) - mean (999ms)  : 972, 1026
    master - mean (1,018ms)  : 976, 1060

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8548) - mean (297ms)  : 271, 322
    master - mean (299ms)  : 274, 325

    section Bailout
    This PR (8548) - mean (296ms)  : 273, 319
    master - mean (301ms)  : 275, 326

    section CallTarget+Inlining+NGEN
    This PR (8548) - mean (1,191ms)  : 1128, 1253
    master - mean (1,213ms)  : 1134, 1293

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8548) - mean (300ms)  : 274, 326
    master - mean (300ms)  : 273, 326

    section Bailout
    This PR (8548) - mean (305ms)  : 271, 338
    master - mean (303ms)  : 271, 335

    section CallTarget+Inlining+NGEN
    This PR (8548) - mean (1,110ms)  : 998, 1222
    master - mean (1,122ms)  : 994, 1251

Loading

@pr-commenter

pr-commenter Bot commented May 1, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-11 11:57:40

Comparing candidate commit a674cdf in PR branch dudik/symdb/default-on-fixes with baseline commit b9b7af8 in branch master.

Some scenarios are present only in baseline or only in candidate runs. If you didn't create or remove some scenarios in your branch, this maybe a sign of crashed benchmarks 💥💥💥
Check Gitlab CI job log to find if any benchmark has crashed.

Scenarios present only in baseline:

  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • Benchmarks.OpenTelemetry.Api.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1

Found 2 performance improvements and 2 performance regressions! Performance is the same for 53 metrics, 15 unstable metrics, 88 known flaky benchmarks, 38 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 ----------------------------------'

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_GetCurrentSpan net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+10.108%; +10.117%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartSpan_SetActive net6.0

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-7.321%; -7.312%]

scenario:Benchmarks.Trace.HttpClientBenchmark.SendAsync net6.0

  • 🟥 throughput [-73921.265op/s; -67160.256op/s] or [-50.216%; -45.623%]
  • 🟩 execution_time [-31.181ms; -16.537ms] or [-15.474%; -8.207%]

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.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0

  • unstable execution_time [+37.189ms; +69.957ms] or [+25.637%; +48.227%]
  • unstable throughput [-52784.951op/s; -28249.137op/s] or [-31.299%; -16.750%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1

  • unstable execution_time [+7.409ms; +32.165ms] or [+8.044%; +34.920%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0

  • unstable execution_time [+6.586ms; +22.250ms] or [+5.148%; +17.393%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1

  • unstable execution_time [-33.335ms; -8.650ms] or [-30.107%; -7.812%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0

  • unstable execution_time [+18.492ms; +52.462ms] or [+14.923%; +42.337%]
  • unstable throughput [-37733.851op/s; -15001.423op/s] or [-19.883%; -7.904%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1

  • unstable execution_time [-16.201ms; +19.025ms] or [-14.657%; +17.212%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0

  • unstable execution_time [-10.911ms; +19.131ms] or [-7.194%; +12.614%]
  • unstable throughput [-7856.774op/s; +9824.953op/s] or [-6.072%; +7.593%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1

  • unstable execution_time [-18155.973µs; +16262.141µs] or [-15.917%; +14.257%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0

  • unstable execution_time [+17.647ms; +38.835ms] or [+13.802%; +30.374%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1

  • unstable execution_time [-43.996ms; -4.707ms] or [-32.505%; -3.477%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0

  • unstable execution_time [-31.565ms; -7.210ms] or [-21.027%; -4.803%]
  • unstable throughput [+1879.023op/s; +30477.054op/s] or [+1.127%; +18.275%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1

  • unstable execution_time [-41.875ms; -2.371ms] or [-31.335%; -1.775%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-9.188%; -9.180%]
  • unstable execution_time [-9.864ms; +29.130ms] or [-6.370%; +18.810%]
  • unstable throughput [-16484.326op/s; +13620.801op/s] or [-10.801%; +8.925%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1

  • unstable execution_time [+9.260ms; +34.747ms] or [+10.359%; +38.870%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0

  • 🟩 allocated_mem [-144 bytes; -143 bytes] or [-7.698%; -7.691%]
  • unstable execution_time [+20.022ms; +41.291ms] or [+15.515%; +31.997%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1

  • unstable execution_time [-81.737ms; -49.556ms] or [-53.056%; -32.167%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0

  • unstable execution_time [+10.149ms; +43.333ms] or [+8.096%; +34.565%]
  • unstable throughput [-25389.090op/s; -4709.487op/s] or [-15.174%; -2.815%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net6.0

  • 🟥 allocated_mem [+143 bytes; +144 bytes] or [+5.487%; +5.496%]
  • unstable execution_time [-23.036ms; +7.609ms] or [-15.526%; +5.128%]
  • unstable throughput [-10931.927op/s; +10849.283op/s] or [-10.584%; +10.504%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1

  • unstable execution_time [+7.285ms; +33.649ms] or [+8.080%; +37.320%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1

  • unstable execution_time [+2.952ms; +41.309ms] or [+2.643%; +36.978%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0

  • unstable execution_time [-33.174ms; +2.809ms] or [-21.657%; +1.834%]
  • unstable throughput [-1387.907op/s; +21854.837op/s] or [-0.985%; +15.515%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0

  • unstable execution_time [-87.182ms; -48.716ms] or [-45.467%; -25.407%]
  • unstable throughput [+24641.290op/s; +51590.830op/s] or [+17.366%; +36.359%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1

  • unstable execution_time [-21574.714µs; +21484.666µs] or [-16.086%; +16.019%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-8895.534op/s; -7787.682op/s] or [-10.547%; -9.234%]

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

  • 🟩 execution_time [-87.996ms; -74.820ms] or [-43.901%; -37.328%]
  • 🟥 throughput [-30610.595op/s; -21325.317op/s] or [-25.729%; -17.925%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1

  • unstable execution_time [-91.250ms; -67.959ms] or [-45.896%; -34.181%]
  • 🟥 throughput [-6719.479op/s; -5314.629op/s] or [-6.832%; -5.404%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+314.871ms; +330.426ms] or [+156.250%; +163.969%]
  • 🟥 throughput [-54.512op/s; -41.770op/s] or [-9.808%; -7.515%]

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

  • 🟥 execution_time [+98.301ms; +99.724ms] or [+77.663%; +78.788%]
  • 🟩 throughput [+90.121op/s; +95.415op/s] or [+11.882%; +12.580%]

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

  • 🟥 execution_time [+83.449ms; +84.294ms] or [+73.849%; +74.597%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleMoreComplexBody net472

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.528%; +27.540%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+9.299%; +9.310%]
  • 🟩 execution_time [-76.354ms; -60.118ms] or [-35.660%; -28.077%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.500%; +27.510%]
  • 🟩 execution_time [-62.556ms; -42.507ms] or [-29.789%; -20.241%]

scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.AllCycleSimpleBody net472

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-269303.505op/s; -261901.652op/s] or [-27.497%; -26.741%]

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

  • 🟥 allocated_mem [+439 bytes; +440 bytes] or [+35.945%; +35.954%]
  • 🟩 execution_time [-116.611ms; -111.480ms] or [-52.003%; -49.715%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟩 execution_time [-76.656ms; -56.647ms] or [-38.263%; -28.276%]
  • 🟥 throughput [-132694.455op/s; -116194.700op/s] or [-19.066%; -16.695%]

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

  • 🟥 throughput [-40839.573op/s; -28096.080op/s] or [-25.986%; -17.877%]

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

  • 🟩 execution_time [-47.981ms; -28.883ms] or [-24.462%; -14.726%]
  • 🟩 throughput [+9270.822op/s; +12065.683op/s] or [+7.385%; +9.612%]

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

  • 🟩 execution_time [-57.367ms; -39.022ms] or [-28.364%; -19.294%]
  • unstable throughput [-247727.634op/s; +63661.474op/s] or [-8.260%; +2.123%]

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

  • 🟩 execution_time [-43.778ms; -22.342ms] or [-20.180%; -10.299%]
  • 🟩 throughput [+153408.991op/s; +208737.107op/s] or [+6.089%; +8.285%]

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

  • 🟥 execution_time [+300.971ms; +314.946ms] or [+150.385%; +157.368%]

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

  • unstable execution_time [+178.784ms; +223.901ms] or [+90.161%; +112.914%]

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

  • unstable execution_time [+213.883ms; +260.061ms] or [+107.738%; +130.999%]

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

  • 🟥 execution_time [+298.006ms; +311.701ms] or [+146.369%; +153.095%]

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

  • 🟥 execution_time [+235.787ms; +243.340ms] or [+115.268%; +118.960%]

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

  • 🟥 execution_time [+267.613ms; +282.752ms] or [+133.753%; +141.319%]

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

  • 🟥 execution_time [+22.794µs; +46.423µs] or [+7.277%; +14.821%]
  • 🟥 throughput [-432.063op/s; -233.241op/s] or [-13.469%; -7.271%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+300.001ms; +301.142ms] or [+149.731%; +150.301%]

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

  • unstable execution_time [+363.614ms; +380.180ms] or [+395.081%; +413.081%]
  • 🟥 throughput [-7020.356op/s; -6823.601op/s] or [-57.687%; -56.071%]

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

  • unstable execution_time [+267.381ms; +332.243ms] or [+203.020%; +252.269%]
  • 🟥 throughput [-1230.737op/s; -1004.325op/s] or [-11.914%; -9.723%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+310.158ms; +329.151ms] or [+142.608%; +151.340%]
  • 🟥 throughput [-688.520op/s; -670.191op/s] or [-62.387%; -60.726%]

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

  • unstable execution_time [-53.427ms; +80.475ms] or [-22.768%; +34.295%]
  • 🟥 throughput [-700.326op/s; -608.032op/s] or [-46.712%; -40.556%]

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

  • 🟥 allocated_mem [+2.305KB; +2.308KB] or [+5.442%; +5.450%]
  • 🟥 execution_time [+342.027ms; +351.008ms] or [+204.572%; +209.943%]
  • 🟥 throughput [-730.423op/s; -695.978op/s] or [-50.858%; -48.460%]

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

  • 🟩 execution_time [-79.939µs; -74.415µs] or [-7.414%; -6.902%]
  • 🟩 throughput [+69.014op/s; +74.026op/s] or [+7.441%; +7.982%]

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

  • 🟩 execution_time [-202.171µs; -172.038µs] or [-10.241%; -8.715%]
  • 🟩 throughput [+48.933op/s; +58.126op/s] or [+9.660%; +11.475%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+305.396ms; +316.333ms] or [+153.792%; +159.299%]

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

  • 🟥 execution_time [+242.924ms; +257.127ms] or [+121.730%; +128.847%]

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

  • 🟥 execution_time [+301.005ms; +307.726ms] or [+151.212%; +154.588%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+305.795ms; +318.175ms] or [+153.560%; +159.777%]

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

  • 🟥 execution_time [+207.431ms; +216.492ms] or [+102.565%; +107.045%]

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

  • 🟥 execution_time [+305.314ms; +312.901ms] or [+154.746%; +158.592%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+303.918ms; +317.927ms] or [+152.539%; +159.571%]

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

  • unstable execution_time [+228.237ms; +285.309ms] or [+113.755%; +142.200%]

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

  • 🟥 execution_time [+303.040ms; +310.163ms] or [+150.760%; +154.303%]

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

  • 🟩 execution_time [-114.504ms; -110.374ms] or [-53.245%; -51.324%]

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

  • unstable execution_time [-90.908ms; -67.857ms] or [-45.601%; -34.038%]

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

  • 🟩 allocated_mem [-18.709KB; -18.686KB] or [-6.825%; -6.816%]
  • unstable execution_time [-82.610µs; -27.116µs] or [-16.327%; -5.359%]
  • unstable throughput [+136.535op/s; +338.107op/s] or [+6.813%; +16.872%]

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

  • 🟩 allocated_mem [-18.635KB; -18.617KB] or [-6.793%; -6.787%]
  • unstable execution_time [-2.620µs; +191.927µs] or [-0.454%; +33.260%]
  • unstable throughput [-167.828op/s; +149.995op/s] or [-9.588%; +8.569%]

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

  • unstable execution_time [+2.402µs; +7.245µs] or [+5.677%; +17.125%]
  • 🟥 throughput [-3266.564op/s; -1252.750op/s] or [-13.751%; -5.274%]

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

  • unstable execution_time [-14.610µs; -5.152µs] or [-22.667%; -7.993%]
  • unstable throughput [+1637.412op/s; +3648.595op/s] or [+10.046%; +22.385%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+303.952ms; +318.164ms] or [+153.634%; +160.818%]

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

  • 🟥 execution_time [+304.357ms; +311.391ms] or [+154.917%; +158.497%]

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

  • 🟥 execution_time [+302.172ms; +306.162ms] or [+151.275%; +153.272%]

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

  • unstable execution_time [-63.162ms; -23.735ms] or [-31.571%; -11.864%]
  • unstable throughput [-197659.672op/s; -118348.220op/s] or [-37.413%; -22.401%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1

  • unstable execution_time [-79.174ms; -48.416ms] or [-40.133%; -24.542%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.204ms; +313.576ms] or [+149.625%; +156.290%]

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

  • unstable execution_time [+259.848ms; +293.009ms] or [+130.483%; +147.135%]

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

  • 🟥 execution_time [+306.618ms; +313.160ms] or [+155.497%; +158.815%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.077ms; +300.684ms] or [+149.680%; +149.983%]
  • 🟩 throughput [+65006562.482op/s; +65261491.040op/s] or [+47.342%; +47.527%]

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

  • unstable execution_time [+379.329ms; +389.773ms] or [+471.763%; +484.752%]
  • 🟥 throughput [-7400.408op/s; -7205.683op/s] or [-57.209%; -55.703%]

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

  • 🟥 execution_time [+297.305ms; +298.996ms] or [+148.289%; +149.132%]
  • 🟥 throughput [-18005952.083op/s; -16916473.342op/s] or [-7.975%; -7.493%]

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

  • unstable execution_time [-76.655ms; -49.378ms] or [-37.544%; -24.185%]
  • unstable throughput [-77858.010op/s; +47121.410op/s] or [-7.269%; +4.400%]

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

  • unstable execution_time [-87.641ms; -64.873ms] or [-44.347%; -32.826%]

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

  • 🟩 execution_time [-91.552ms; -87.370ms] or [-47.699%; -45.520%]
  • 🟩 throughput [+89073.066op/s; +118897.471op/s] or [+6.894%; +9.203%]

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

  • unstable execution_time [-76.310ms; -48.572ms] or [-37.492%; -23.864%]
  • 🟩 throughput [+72815.894op/s; +84355.652op/s] or [+7.232%; +8.378%]

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

  • unstable execution_time [-53.114ms; -27.271ms] or [-26.525%; -13.619%]
  • unstable throughput [-164245.214op/s; -86525.610op/s] or [-29.824%; -15.711%]

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

  • unstable execution_time [-87.690ms; -65.518ms] or [-44.059%; -32.919%]

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

  • unstable execution_time [-52.002ms; -14.485ms] or [-26.010%; -7.245%]
  • unstable throughput [-333988.820op/s; -176517.881op/s] or [-37.315%; -19.721%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

  • unstable execution_time [-54.727ms; -26.307ms] or [-27.795%; -13.361%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • 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 net6.0
  • 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 netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

dudikeleti added a commit that referenced this pull request May 1, 2026
…8550)

## Summary of changes

- Reverts #8510.

## Reason for change

- We observed a startup-time performance impact from initializing SymDB
independently of Dynamic Instrumentation. We want to investigate that
impact before merging this behavior to `master`.

## Implementation details

- Reverted the squash commit `01f5157075e90003af48a52c534dd3e6eceac57b`.

## Other details

- Follow-up performance improvement PR: #8548

Co-authored-by: Cursor <[email protected]>

@jpbempel jpbempel 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 from Debugger POV
non-blocking comments on concurrency stuffs :D

Comment thread tracer/src/Datadog.Trace/Debugger/Symbols/SymDbRemoteConfig.cs
Comment thread tracer/src/Datadog.Trace/Debugger/DebuggerManager.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/DebuggerManager.cs Outdated
dudikeleti added a commit that referenced this pull request May 6, 2026
…8565)

## Summary of changes

- Reapplies #8510, which was previously reverted by #8550.
- Restores the change so `Datadog.Trace` enables SymDB upload
independently of Dynamic Instrumentation being enabled.

## Reason for change

- We want SymDB to upload symbols even when DI is disabled (DEBUG-5086).
- The original PR #8510 was reverted in #8550 because of an observed
startup-time impact when SymDB was initialized independently of DI.

## Implementation details

- Pure revert of revert commit
`587c0655017587728bfd90fbc842bf448491af07` (#8550).
- Restores the original logic from #8510 in `Instrumentation.cs`,
`DebuggerManager.cs`, `DebuggerSettings.cs`, and the corresponding unit
tests in `DebuggerManagerTests`, `DebuggerManagerDynamicTests`, and
`DebuggerSettingsTests`.
- No additional changes on top of the original #8510.

## Test coverage

- No new tests added beyond what was restored from #8510 (those tests
are reapplied as-is).
- Tests not run locally for this revert-of-revert; relying on CI.

## Other details

- The startup-time concern that motivated #8550 is being addressed in
the open follow-up #8548 ("[SymDB] Defer SymDB startup work until remote
enablement"). This PR should not be merged with #8548 lands (or the perf
concern is otherwise resolved), otherwise we will reintroduce the
regression that triggered the original revert.
<!-- Fixes DEBUG-5086 -->
@dudikeleti dudikeleti changed the title [SymDB] Defer SymDB startup work until remote enablement [SymDB] Defer SymDB startup work May 6, 2026
@dudikeleti
dudikeleti force-pushed the dudik/symdb/default-on-fixes branch from 9970321 to 82207b4 Compare May 6, 2026 15:32
@dudikeleti
dudikeleti enabled auto-merge (squash) May 6, 2026 19:13
@dudikeleti
dudikeleti disabled auto-merge May 6, 2026 21:17
@dudikeleti
dudikeleti force-pushed the dudik/symdb/default-on-fixes branch from 7a40dcc to 2d4f8ff Compare May 6, 2026 21:58
Comment thread tracer/src/Datadog.Trace/Debugger/DebuggerManager.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/DebuggerManager.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/Symbols/SymbolsUploader.cs Outdated
@dudikeleti
dudikeleti force-pushed the dudik/symdb/default-on-fixes branch from 2d4f8ff to 176cfae Compare May 7, 2026 08:53
@dudikeleti
dudikeleti requested a review from Copilot May 7, 2026 09:08

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@dudikeleti
dudikeleti force-pushed the dudik/symdb/default-on-fixes branch 2 times, most recently from f99b978 to cf090ae Compare May 8, 2026 10:19
@dudikeleti
dudikeleti force-pushed the dudik/symdb/default-on-fixes branch from bbfda31 to ce2e19b Compare May 8, 2026 17:51
dudikeleti added 18 commits May 11, 2026 10:39
… so debugger integration tests can exercise symbol uploads without parsing multipart data as traces.
- Mark `_symDbRemoteConfig` as `volatile`; drop now-redundant
  `Volatile.Read`/`Write` call sites.
- Replace `Interlocked.Exchange(ref _symDbInitialized, 0)` with
  `Volatile.Write`; the prior value was discarded.
This is a temporary diagnostic-only change and should be reverted after the investigation.
With SymDB defaulting to on, the debugger lifecycle paths run on every
process start. Tighten the "is there anything to do?" gates so the
all-off case is genuinely free.
@dudikeleti
dudikeleti force-pushed the dudik/symdb/default-on-fixes branch from ce2e19b to a674cdf Compare May 11, 2026 08:41
@dudikeleti
dudikeleti enabled auto-merge (squash) May 11, 2026 10:22
@dudikeleti
dudikeleti merged commit c6a0af6 into master May 11, 2026
141 checks passed
@dudikeleti
dudikeleti deleted the dudik/symdb/default-on-fixes branch May 11, 2026 11:58
@github-actions github-actions Bot added this to the vNext-v3 milestone May 11, 2026
@andrewlock andrewlock added the type:performance Performance, speed, latency, resource usage (CPU, memory) label May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:debugger type:performance Performance, speed, latency, resource usage (CPU, memory)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants