Skip to content

[Dynamic Instrumentation] DEBUG-4089 Support file-based debugger probes#7833

Merged
dudikeleti merged 7 commits into
masterfrom
dudik/load-probe-from-file
Apr 30, 2026
Merged

[Dynamic Instrumentation] DEBUG-4089 Support file-based debugger probes#7833
dudikeleti merged 7 commits into
masterfrom
dudik/load-probe-from-file

Conversation

@dudikeleti

@dudikeleti dudikeleti commented Nov 17, 2025

Copy link
Copy Markdown
Contributor

Summary of changes

Added support to load log/metric/span/span‑decoration probes from a JSON file (DebuggerSettings.ProbeFile)

Reason for change

Dynamic Instrumentation only worked with RCM‑delivered probes. There was no support for loading probes from a local file, and the internal configuration state wasn’t designed for combining file and RCM probes or handling file‑only

Implementation details

  • Added support to load log/metric/span/span‑decoration probes from a JSON file (DebuggerSettings.ProbeFile) during DynamicInstrumentation initialization.
  • Ensured Dynamic Instrumentation can operate in three modes: RCM‑only, file‑only, and combined file+RCM.
  • Implemented source‑level merge (MergeProbes) where RCM wins on ID conflicts with file probes, and configuration‑level union (MergeConfigurations).
  • Updated initialization to start background processing and status/snapshot upload when either RCM is available or file probes exist.

Test coverage

Updated DynamicInstrumentationTests to cover file probe loading (multiple probe types, invalid/missing/empty files, no file configured, partially valid file entries, and duplicate IDs within a file) and merge semantics between file and RCM probes.

@dudikeleti
dudikeleti requested a review from a team as a code owner November 17, 2025 15:52
@dudikeleti dudikeleti changed the title Support file-based debugger probes and merge with RCM [Dynamic Instrumentation] DEBUG-4089 Support file-based debugger probes Nov 17, 2025
@datadog-datadog-prod-us1

This comment has been minimized.

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Nov 17, 2025

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (7833) 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
duration72.87 ± (73.01 - 73.56) ms72.64 ± (72.61 - 73.03) ms-0.3%
.NET Framework 4.8 - Bailout
duration77.27 ± (77.21 - 77.55) ms76.49 ± (76.46 - 76.81) ms-1.0%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1119.35 ± (1120.24 - 1127.31) ms1126.02 ± (1124.32 - 1131.43) ms+0.6%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.45 ± (22.41 - 22.50) ms22.47 ± (22.43 - 22.51) ms+0.1%✅⬆️
process.time_to_main_ms84.30 ± (84.10 - 84.50) ms84.88 ± (84.66 - 85.11) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.90 ± (10.90 - 10.90) MB10.92 ± (10.91 - 10.92) MB+0.1%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.84 ± (22.77 - 22.92) ms22.70 ± (22.65 - 22.76) ms-0.6%
process.time_to_main_ms89.38 ± (89.03 - 89.73) ms88.05 ± (87.73 - 88.36) ms-1.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.87 ± (10.86 - 10.87) MB10.95 ± (10.95 - 10.95) MB+0.8%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms204.16 ± (203.65 - 204.68) ms206.83 ± (206.28 - 207.38) ms+1.3%✅⬆️
process.time_to_main_ms564.44 ± (563.05 - 565.83) ms570.77 ± (569.26 - 572.28) ms+1.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.73 ± (49.70 - 49.76) MB49.72 ± (49.69 - 49.75) MB-0.0%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+1.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.57 ± (21.51 - 21.63) ms21.82 ± (21.76 - 21.88) ms+1.2%✅⬆️
process.time_to_main_ms75.37 ± (75.06 - 75.68) ms76.45 ± (76.14 - 76.77) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.60 ± (10.60 - 10.60) MB10.62 ± (10.62 - 10.63) MB+0.2%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.29 ± (21.24 - 21.33) ms21.45 ± (21.40 - 21.51) ms+0.8%✅⬆️
process.time_to_main_ms74.94 ± (74.69 - 75.19) ms75.69 ± (75.43 - 75.95) ms+1.0%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.71 ± (10.71 - 10.72) MB10.74 ± (10.74 - 10.74) MB+0.2%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms350.48 ± (348.38 - 352.58) ms353.63 ± (351.40 - 355.86) ms+0.9%✅⬆️
process.time_to_main_ms560.92 ± (559.44 - 562.41) ms562.44 ± (561.04 - 563.85) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.81 ± (50.79 - 50.83) MB51.06 ± (51.04 - 51.08) MB+0.5%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.45 ± (19.41 - 19.49) ms19.49 ± (19.45 - 19.53) ms+0.2%✅⬆️
process.time_to_main_ms72.66 ± (72.47 - 72.85) ms73.13 ± (72.96 - 73.30) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.67) MB7.65 ± (7.64 - 7.66) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.87 ± (19.81 - 19.93) ms19.97 ± (19.91 - 20.03) ms+0.5%✅⬆️
process.time_to_main_ms76.75 ± (76.44 - 77.06) ms77.44 ± (77.15 - 77.73) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.72 ± (7.72 - 7.73) MB7.70 ± (7.70 - 7.71) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms280.71 ± (277.85 - 283.56) ms278.94 ± (276.56 - 281.32) ms-0.6%
process.time_to_main_ms519.92 ± (518.50 - 521.34) ms519.92 ± (518.63 - 521.21) ms-0.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.80 ± (37.78 - 37.83) MB37.79 ± (37.76 - 37.81) MB-0.0%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.3%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration201.20 ± (201.31 - 202.57) ms200.56 ± (200.04 - 201.08) ms-0.3%
.NET Framework 4.8 - Bailout
duration204.76 ± (205.18 - 206.36) ms204.64 ± (204.00 - 205.00) ms-0.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1238.63 ± (1239.33 - 1246.44) ms1229.35 ± (1227.99 - 1233.99) ms-0.7%
.NET Core 3.1 - Baseline
process.internal_duration_ms196.77 ± (196.13 - 197.40) ms193.73 ± (193.30 - 194.16) ms-1.5%
process.time_to_main_ms85.28 ± (85.01 - 85.55) ms84.30 ± (84.04 - 84.55) ms-1.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed15.95 ± (15.93 - 15.97) MB15.99 ± (15.97 - 16.01) MB+0.3%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.3%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms195.84 ± (195.33 - 196.36) ms192.65 ± (192.18 - 193.13) ms-1.6%
process.time_to_main_ms86.55 ± (86.30 - 86.80) ms85.35 ± (85.11 - 85.59) ms-1.4%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.06 ± (16.04 - 16.08) MB16.04 ± (16.01 - 16.07) MB-0.1%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)-0.7%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms379.37 ± (377.78 - 380.97) ms376.19 ± (375.05 - 377.32) ms-0.8%
process.time_to_main_ms563.78 ± (562.21 - 565.34) ms564.21 ± (562.82 - 565.59) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.33 ± (58.26 - 58.41) MB58.48 ± (58.44 - 58.52) MB+0.3%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.2%
.NET 6 - Baseline
process.internal_duration_ms201.70 ± (201.23 - 202.16) ms198.49 ± (198.08 - 198.90) ms-1.6%
process.time_to_main_ms74.29 ± (74.05 - 74.52) ms73.31 ± (73.07 - 73.55) ms-1.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.29 ± (16.27 - 16.31) MB16.32 ± (16.29 - 16.34) MB+0.2%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.5%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms200.14 ± (199.68 - 200.60) ms198.26 ± (197.81 - 198.70) ms-0.9%
process.time_to_main_ms74.85 ± (74.61 - 75.10) ms74.45 ± (74.25 - 74.65) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.32 ± (16.29 - 16.34) MB16.34 ± (16.32 - 16.36) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.5%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms571.66 ± (568.90 - 574.41) ms566.28 ± (563.88 - 568.69) ms-0.9%
process.time_to_main_ms560.29 ± (558.84 - 561.75) ms557.94 ± (556.62 - 559.25) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.76 ± (61.72 - 61.81) MB61.84 ± (61.80 - 61.87) MB+0.1%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.4%
.NET 8 - Baseline
process.internal_duration_ms199.11 ± (198.63 - 199.59) ms196.62 ± (196.16 - 197.08) ms-1.3%
process.time_to_main_ms73.26 ± (73.02 - 73.50) ms72.35 ± (72.13 - 72.57) ms-1.2%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.66 ± (11.65 - 11.67) MB11.64 ± (11.62 - 11.66) MB-0.2%
runtime.dotnet.threads.count19 ± (18 - 19)18 ± (18 - 18)-1.0%
.NET 8 - Bailout
process.internal_duration_ms199.58 ± (199.11 - 200.05) ms195.75 ± (195.29 - 196.21) ms-1.9%
process.time_to_main_ms74.89 ± (74.67 - 75.11) ms73.62 ± (73.41 - 73.84) ms-1.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.71 ± (11.70 - 11.72) MB11.70 ± (11.68 - 11.72) MB-0.1%
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 19)-1.1%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms496.09 ± (492.68 - 499.50) ms498.83 ± (495.86 - 501.80) ms+0.6%✅⬆️
process.time_to_main_ms518.36 ± (517.21 - 519.51) ms514.94 ± (513.69 - 516.20) ms-0.7%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.52 ± (51.49 - 51.55) MB51.53 ± (51.51 - 51.56) MB+0.0%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 30)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 (7833) - mean (73ms)  : 70, 76
    master - mean (73ms)  : 69, 78

    section Bailout
    This PR (7833) - mean (77ms)  : 75, 79
    master - mean (77ms)  : 75, 80

    section CallTarget+Inlining+NGEN
    This PR (7833) - mean (1,128ms)  : 1075, 1181
    master - mean (1,124ms)  : 1074, 1174

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 (7833) - mean (114ms)  : 110, 118
    master - mean (114ms)  : 109, 118

    section Bailout
    This PR (7833) - mean (118ms)  : 112, 124
    master - mean (119ms)  : 112, 127

    section CallTarget+Inlining+NGEN
    This PR (7833) - mean (815ms)  : 784, 847
    master - mean (805ms)  : 780, 831

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7833) - mean (105ms)  : 99, 111
    master - mean (104ms)  : 97, 111

    section Bailout
    This PR (7833) - mean (104ms)  : 98, 110
    master - mean (103ms)  : 98, 108

    section CallTarget+Inlining+NGEN
    This PR (7833) - mean (944ms)  : 902, 985
    master - mean (942ms)  : 899, 985

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

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

    section CallTarget+Inlining+NGEN
    This PR (7833) - mean (830ms)  : 785, 876
    master - mean (840ms)  : 766, 914

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 (7833) - mean (201ms)  : 194, 207
    master - mean (202ms)  : 192, 212

    section Bailout
    This PR (7833) - mean (204ms)  : 199, 210
    master - mean (206ms)  : 197, 215

    section CallTarget+Inlining+NGEN
    This PR (7833) - mean (1,231ms)  : 1195, 1267
    master - mean (1,243ms)  : 1191, 1294

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 (7833) - mean (288ms)  : 278, 297
    master - mean (292ms)  : 279, 305

    section Bailout
    This PR (7833) - mean (287ms)  : 279, 294
    master - mean (292ms)  : 281, 303

    section CallTarget+Inlining+NGEN
    This PR (7833) - mean (982ms)  : 954, 1009
    master - mean (985ms)  : 958, 1011

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7833) - mean (280ms)  : 271, 289
    master - mean (285ms)  : 274, 297

    section Bailout
    This PR (7833) - mean (281ms)  : 273, 290
    master - mean (284ms)  : 275, 293

    section CallTarget+Inlining+NGEN
    This PR (7833) - mean (1,154ms)  : 1115, 1194
    master - mean (1,162ms)  : 1124, 1200

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7833) - mean (280ms)  : 272, 287
    master - mean (283ms)  : 273, 294

    section Bailout
    This PR (7833) - mean (280ms)  : 271, 288
    master - mean (285ms)  : 274, 297

    section CallTarget+Inlining+NGEN
    This PR (7833) - mean (1,044ms)  : 998, 1090
    master - mean (1,045ms)  : 992, 1099

Loading

@dudikeleti
dudikeleti force-pushed the dudik/load-probe-from-file branch from 1004977 to 438cd74 Compare April 28, 2026 21:50
@dudikeleti
dudikeleti requested review from a team as code owners April 28, 2026 21:50
@pr-commenter

pr-commenter Bot commented Apr 28, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-04-29 23:51:12

Comparing candidate commit 739a50f in PR branch dudik/load-probe-from-file with baseline commit 26249cd in branch master.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 60 known flaky benchmarks, 27 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 ----------------------------------'

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.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-4965.873op/s; -4529.708op/s] or [-5.888%; -5.371%]

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

  • 🟩 throughput [+11061.667op/s; +13196.046op/s] or [+9.298%; +11.092%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+310.004ms; +314.599ms] or [+153.835%; +156.115%]
  • 🟥 throughput [-47.395op/s; -42.953op/s] or [-8.527%; -7.728%]

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

  • 🟥 execution_time [+376.434ms; +378.254ms] or [+297.406%; +298.844%]
  • 🟩 throughput [+97.334op/s; +100.460op/s] or [+12.833%; +13.245%]

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

  • 🟥 execution_time [+390.530ms; +391.758ms] or [+345.604%; +346.691%]

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

  • 🟥 allocated_mem [+1.308KB; +1.308KB] or [+27.529%; +27.541%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+9.977%; +9.987%]
  • 🟩 execution_time [-16.225ms; -12.042ms] or [-7.578%; -5.624%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+27.502%; +27.510%]

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.746%; +105.759%]
  • 🟥 throughput [-271669.890op/s; -268584.313op/s] or [-27.739%; -27.424%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-25.706ms; -20.805ms] or [-11.464%; -9.278%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • 🟥 throughput [-136045.924op/s; -120166.737op/s] or [-19.547%; -17.266%]

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

  • 🟩 throughput [+9592.815op/s; +12584.762op/s] or [+6.104%; +8.007%]

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

  • 🟩 throughput [+351772.634op/s; +376533.580op/s] or [+11.730%; +12.555%]

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

  • 🟩 execution_time [-18.173ms; -13.745ms] or [-8.377%; -6.336%]
  • 🟩 throughput [+184729.181op/s; +238532.071op/s] or [+7.332%; +9.468%]

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

  • 🟥 execution_time [+299.686ms; +300.353ms] or [+149.743%; +150.076%]

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

  • 🟥 execution_time [+299.889ms; +303.009ms] or [+151.235%; +152.808%]

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

  • 🟥 execution_time [+300.360ms; +302.762ms] or [+151.298%; +152.508%]

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

  • 🟥 execution_time [+297.513ms; +298.333ms] or [+146.127%; +146.529%]

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

  • 🟥 execution_time [+296.973ms; +299.945ms] or [+145.179%; +146.632%]

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

  • 🟥 execution_time [+301.736ms; +303.358ms] or [+150.807%; +151.618%]

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

  • 🟥 execution_time [+21.126µs; +44.697µs] or [+6.745%; +14.269%]
  • 🟥 throughput [-417.738op/s; -219.362op/s] or [-13.022%; -6.838%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.814ms; +300.460ms] or [+149.638%; +149.961%]

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

  • unstable execution_time [+374.993ms; +406.426ms] or [+407.445%; +441.599%]
  • 🟩 throughput [+1036.517op/s; +1187.471op/s] or [+8.517%; +9.758%]

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

  • unstable execution_time [+278.071ms; +321.096ms] or [+211.137%; +243.805%]
  • 🟩 throughput [+655.248op/s; +855.020op/s] or [+6.343%; +8.277%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+307.274ms; +348.674ms] or [+141.281%; +160.317%]
  • 🟥 throughput [-567.535op/s; -523.000op/s] or [-51.424%; -47.389%]

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

  • unstable execution_time [+204.195ms; +337.422ms] or [+87.019%; +143.795%]
  • 🟥 throughput [-670.483op/s; -586.953op/s] or [-44.721%; -39.150%]

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

  • 🟥 execution_time [+342.457ms; +350.138ms] or [+204.829%; +209.423%]
  • 🟥 throughput [-409.180op/s; -373.788op/s] or [-28.491%; -26.026%]

scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1

  • unstable throughput [-1.519op/s; +52.141op/s] or [-0.284%; +9.733%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+303.089ms; +304.552ms] or [+152.630%; +153.367%]

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

  • 🟥 execution_time [+302.092ms; +303.493ms] or [+151.379%; +152.081%]

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

  • 🟥 execution_time [+303.062ms; +306.342ms] or [+152.245%; +153.893%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+302.257ms; +303.726ms] or [+151.783%; +152.521%]

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

  • 🟥 execution_time [+298.822ms; +300.398ms] or [+147.754%; +148.534%]

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

  • 🟥 execution_time [+303.042ms; +306.757ms] or [+153.595%; +155.478%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+303.198ms; +304.939ms] or [+152.178%; +153.052%]

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

  • 🟥 execution_time [+299.507ms; +307.449ms] or [+149.277%; +153.235%]
  • 🟩 throughput [+27487.589op/s; +36337.427op/s] or [+5.458%; +7.215%]

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

  • 🟥 execution_time [+299.655ms; +309.809ms] or [+149.076%; +154.127%]

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

  • 🟩 execution_time [-16.143ms; -12.508ms] or [-7.507%; -5.816%]

scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatAspectBenchmark net472

  • unstable execution_time [+6.007µs; +48.384µs] or [+1.484%; +11.951%]

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

  • 🟩 allocated_mem [-20.597KB; -20.577KB] or [-7.513%; -7.506%]
  • unstable execution_time [-31.586µs; +22.235µs] or [-6.243%; +4.395%]

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

  • unstable execution_time [+14.625µs; +135.104µs] or [+2.534%; +23.413%]
  • unstable throughput [-161.811op/s; +42.460op/s] or [-9.245%; +2.426%]

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

  • 🟥 execution_time [+5.966µs; +9.869µs] or [+14.101%; +23.327%]
  • 🟥 throughput [-4561.083op/s; -2818.176op/s] or [-19.201%; -11.864%]

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

  • unstable execution_time [-13.612µs; -6.194µs] or [-21.119%; -9.609%]
  • 🟩 throughput [+1619.932op/s; +3146.389op/s] or [+9.939%; +19.304%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.339ms; +302.994ms] or [+152.313%; +153.150%]

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

  • 🟥 execution_time [+303.935ms; +306.178ms] or [+154.702%; +155.844%]

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

  • 🟥 execution_time [+299.954ms; +302.206ms] or [+150.164%; +151.291%]

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

  • 🟩 throughput [+31292.379op/s; +34548.472op/s] or [+5.923%; +6.539%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+299.420ms; +301.122ms] or [+149.234%; +150.082%]

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

  • 🟥 execution_time [+301.470ms; +302.770ms] or [+151.384%; +152.037%]

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

  • 🟥 execution_time [+302.735ms; +305.098ms] or [+153.528%; +154.726%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+300.003ms; +300.606ms] or [+149.643%; +149.944%]
  • 🟩 throughput [+61395812.398op/s; +61661463.001op/s] or [+44.712%; +44.906%]

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

  • unstable execution_time [+352.961ms; +393.639ms] or [+438.969%; +489.561%]
  • 🟩 throughput [+900.289op/s; +1087.032op/s] or [+6.960%; +8.403%]

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

  • 🟥 execution_time [+299.458ms; +300.396ms] or [+149.363%; +149.830%]

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

  • 🟩 throughput [+92974.480op/s; +105000.632op/s] or [+8.681%; +9.804%]

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

  • 🟩 throughput [+46445.289op/s; +65938.218op/s] or [+5.376%; +7.632%]

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

  • 🟩 throughput [+67575.923op/s; +100792.761op/s] or [+5.230%; +7.802%]

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

  • 🟩 throughput [+83907.858op/s; +91725.754op/s] or [+8.333%; +9.110%]

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

  • 🟩 throughput [+53385.285op/s; +58635.249op/s] or [+9.694%; +10.647%]

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

  • 🟩 throughput [+33240.206op/s; +42948.623op/s] or [+7.440%; +9.613%]

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

  • 🟩 throughput [+93865.600op/s; +110957.832op/s] or [+10.487%; +12.397%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecBodyBenchmark.ObjectExtractorMoreComplexBody netcoreapp3.1
  • 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 net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice netcoreapp3.1
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.Iast.StringAspectsBenchmark.StringConcatBenchmark net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive netcoreapp3.1
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishScope net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishSpan net472
  • scenario:Benchmarks.Trace.SpanBenchmark.StartFinishTwoScopes net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin netcoreapp3.1

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

Approving for the tracer side - I glanced over some of the debugger stuff, mostly just to point out a few opportunities for perf improvements. One general comment is that I think most of the "helper" classes should all have their own dedicated unit tests for their behaviour, so we can cover all the edge cases, without going through the "full" dynamic instrumentation initialization code

Comment thread tracer/src/Datadog.Trace/Debugger/Configurations/ConfigurationUpdater.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/Configurations/ProbeConfigurationUtils.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/DynamicInstrumentation.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/Configurations/ProbeConfigurationFileLoader.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/Configurations/ProbeConfigurationFileLoader.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/Configurations/ProbeConfigurationFileLoader.cs Outdated
Comment thread tracer/src/Datadog.Trace/Debugger/Configurations/ProbeConfigurationUtils.cs Outdated
dudikeleti and others added 5 commits April 29, 2026 23:21
Apply file-loaded probes through the owning DynamicInstrumentation instance instead of the global manager lookup, and only start the DI runtime for file probes that survive configuration filters. Add focused tests for actual file probe application and filtered-out file probes.
@dudikeleti
dudikeleti force-pushed the dudik/load-probe-from-file branch from 438cd74 to dca07cf Compare April 29, 2026 22:13
@dudikeleti
dudikeleti enabled auto-merge (squash) April 29, 2026 22:41
@dudikeleti
dudikeleti merged commit 25fccca into master Apr 30, 2026
142 checks passed
@dudikeleti
dudikeleti deleted the dudik/load-probe-from-file branch April 30, 2026 13:00
@github-actions github-actions Bot added this to the vNext-v3 milestone Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants