Skip to content

[Dynamic Instrumentation] DEBUG-5104 support case-insensitive line probe source paths#8542

Merged
dudikeleti merged 2 commits into
masterfrom
dudik/line-probe-support-case-insensitive
May 1, 2026
Merged

[Dynamic Instrumentation] DEBUG-5104 support case-insensitive line probe source paths#8542
dudikeleti merged 2 commits into
masterfrom
dudik/line-probe-support-case-insensitive

Conversation

@dudikeleti

Copy link
Copy Markdown
Contributor

Summary of changes

  • Support case-insensitive source path matching for Dynamic Instrumentation line probes.
  • Preserve the original PDB document path when resolving matched probes.
  • Add focused coverage for case-insensitive exact suffix and fallback path matching.

Reason for change

  • Valid line probes can remain unbound when the configured probe path casing differs from the casing in PDB document paths, e.g. Controllers/DebuggerController.cs vs controllers/debuggercontroller.cs.

Implementation details

  • Keep the existing trie lookup as the fast path for exact suffix matches.
  • On trie miss, use the existing suffix matcher to find a full-query case-insensitive match while preserving ambiguity handling.
  • Compare path segments with StringComparison.OrdinalIgnoreCase.
  • Convert ClosestPathBySuffixResult to a readonly struct to avoid adding allocation in this warm probe-resolution path.

Test coverage

  • LineProbeResolverTest

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Apr 30, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8542) 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
duration73.49 ± (73.18 - 73.61) ms73.88 ± (73.86 - 74.49) ms+0.5%✅⬆️
.NET Framework 4.8 - Bailout
duration79.08 ± (78.93 - 79.49) ms78.23 ± (78.19 - 78.74) ms-1.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1119.03 ± (1120.08 - 1126.10) ms1124.31 ± (1124.18 - 1132.42) ms+0.5%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.84 ± (22.78 - 22.90) ms23.07 ± (23.01 - 23.13) ms+1.0%✅⬆️
process.time_to_main_ms86.86 ± (86.57 - 87.16) ms87.57 ± (87.26 - 87.87) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.91 ± (10.91 - 10.91) MB10.92 ± (10.92 - 10.93) MB+0.1%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.79 ± (22.72 - 22.85) ms22.52 ± (22.48 - 22.56) ms-1.2%
process.time_to_main_ms88.10 ± (87.83 - 88.37) ms85.83 ± (85.66 - 86.01) ms-2.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.88 ± (10.88 - 10.89) MB10.96 ± (10.95 - 10.96) MB+0.7%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms204.68 ± (204.10 - 205.26) ms205.71 ± (205.16 - 206.27) ms+0.5%✅⬆️
process.time_to_main_ms564.37 ± (562.93 - 565.80) ms568.69 ± (567.41 - 569.97) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.74 ± (49.72 - 49.77) MB49.77 ± (49.74 - 49.80) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.0%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms21.21 ± (21.17 - 21.25) ms21.36 ± (21.32 - 21.41) ms+0.7%✅⬆️
process.time_to_main_ms73.08 ± (72.89 - 73.26) ms73.96 ± (73.75 - 74.16) ms+1.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.63) MB10.63 ± (10.63 - 10.63) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.25 ± (21.21 - 21.29) ms21.56 ± (21.50 - 21.62) ms+1.5%✅⬆️
process.time_to_main_ms74.97 ± (74.73 - 75.22) ms77.54 ± (77.22 - 77.87) ms+3.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.68 ± (10.67 - 10.68) MB10.75 ± (10.74 - 10.75) MB+0.7%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms352.79 ± (350.66 - 354.93) ms356.27 ± (354.13 - 358.40) ms+1.0%✅⬆️
process.time_to_main_ms558.38 ± (557.09 - 559.68) ms561.02 ± (559.66 - 562.37) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.87 ± (50.85 - 50.90) MB51.04 ± (51.02 - 51.06) MB+0.3%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.45 ± (19.39 - 19.50) ms19.45 ± (19.42 - 19.49) ms+0.0%✅⬆️
process.time_to_main_ms73.75 ± (73.53 - 73.98) ms72.87 ± (72.70 - 73.04) ms-1.2%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.67 ± (7.66 - 7.68) MB7.66 ± (7.66 - 7.67) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.27 ± (19.23 - 19.31) ms19.72 ± (19.67 - 19.77) ms+2.3%✅⬆️
process.time_to_main_ms73.90 ± (73.73 - 74.07) ms75.18 ± (74.92 - 75.44) ms+1.7%✅⬆️
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_ms279.57 ± (277.23 - 281.90) ms282.07 ± (278.90 - 285.24) ms+0.9%✅⬆️
process.time_to_main_ms519.73 ± (518.54 - 520.92) ms521.43 ± (520.17 - 522.68) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.84 ± (37.81 - 37.87) MB37.81 ± (37.78 - 37.84) MB-0.1%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)+0.2%✅⬆️

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration198.35 ± (197.94 - 198.87) ms198.05 ± (197.90 - 198.77) ms-0.2%
.NET Framework 4.8 - Bailout
duration203.74 ± (203.27 - 204.20) ms200.69 ± (200.65 - 201.60) ms-1.5%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1220.11 ± (1219.27 - 1225.58) ms1220.16 ± (1218.36 - 1225.60) ms+0.0%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms191.81 ± (191.34 - 192.27) ms190.35 ± (189.89 - 190.81) ms-0.8%
process.time_to_main_ms84.05 ± (83.80 - 84.29) ms82.81 ± (82.59 - 83.03) ms-1.5%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.03 ± (16.01 - 16.05) MB16.14 ± (16.12 - 16.16) MB+0.7%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.0%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms192.27 ± (191.78 - 192.76) ms189.18 ± (188.73 - 189.62) ms-1.6%
process.time_to_main_ms85.61 ± (85.39 - 85.82) ms83.73 ± (83.50 - 83.95) ms-2.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.18 ± (16.16 - 16.19) MB16.16 ± (16.13 - 16.19) MB-0.1%
runtime.dotnet.threads.count21 ± (21 - 21)21 ± (21 - 21)+0.9%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms375.85 ± (374.65 - 377.04) ms373.98 ± (372.85 - 375.10) ms-0.5%
process.time_to_main_ms560.36 ± (558.81 - 561.91) ms558.43 ± (557.03 - 559.83) ms-0.3%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.47 ± (58.42 - 58.52) MB58.48 ± (58.43 - 58.53) MB+0.0%✅⬆️
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms196.47 ± (195.95 - 196.99) ms195.74 ± (195.28 - 196.19) ms-0.4%
process.time_to_main_ms72.61 ± (72.38 - 72.85) ms72.31 ± (72.08 - 72.54) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.36 ± (16.34 - 16.38) MB16.30 ± (16.28 - 16.32) MB-0.4%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-1.4%
.NET 6 - Bailout
process.internal_duration_ms194.77 ± (194.25 - 195.28) ms195.42 ± (194.96 - 195.88) ms+0.3%✅⬆️
process.time_to_main_ms73.45 ± (73.21 - 73.68) ms73.18 ± (72.99 - 73.36) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.41 ± (16.38 - 16.43) MB16.35 ± (16.33 - 16.37) MB-0.3%
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.5%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms570.05 ± (567.42 - 572.68) ms570.33 ± (567.77 - 572.88) ms+0.0%✅⬆️
process.time_to_main_ms553.28 ± (552.10 - 554.47) ms553.36 ± (552.19 - 554.53) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.96 ± (61.92 - 62.00) MB61.87 ± (61.83 - 61.91) MB-0.1%
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.5%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms194.22 ± (193.77 - 194.66) ms193.66 ± (193.20 - 194.12) ms-0.3%
process.time_to_main_ms71.69 ± (71.51 - 71.88) ms71.35 ± (71.15 - 71.56) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.70 ± (11.68 - 11.72) MB11.68 ± (11.66 - 11.70) MB-0.2%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.1%
.NET 8 - Bailout
process.internal_duration_ms197.36 ± (196.70 - 198.02) ms193.19 ± (192.69 - 193.70) ms-2.1%
process.time_to_main_ms74.56 ± (74.27 - 74.84) ms72.37 ± (72.22 - 72.53) ms-2.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.78 ± (11.76 - 11.79) MB11.73 ± (11.71 - 11.75) MB-0.4%
runtime.dotnet.threads.count20 ± (19 - 20)19 ± (19 - 19)-1.7%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms491.70 ± (489.25 - 494.15) ms490.00 ± (487.07 - 492.93) ms-0.3%
process.time_to_main_ms512.02 ± (510.93 - 513.11) ms508.92 ± (507.83 - 510.01) ms-0.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.64 ± (51.60 - 51.67) MB51.53 ± (51.50 - 51.56) MB-0.2%
runtime.dotnet.threads.count29 ± (29 - 29)30 ± (30 - 30)+0.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 (8542) - mean (74ms)  : 69, 79
    master - mean (73ms)  : 70, 77

    section Bailout
    This PR (8542) - mean (78ms)  : 74, 83
    master - mean (79ms)  : 75, 84

    section CallTarget+Inlining+NGEN
    This PR (8542) - mean (1,128ms)  : 1069, 1187
    master - mean (1,123ms)  : 1080, 1166

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 (8542) - mean (118ms)  : 112, 123
    master - mean (117ms)  : 111, 123

    section Bailout
    This PR (8542) - mean (115ms)  : 112, 118
    master - mean (118ms)  : 113, 122

    section CallTarget+Inlining+NGEN
    This PR (8542) - mean (812ms)  : 789, 835
    master - mean (806ms)  : 777, 836

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

    section Bailout
    This PR (8542) - mean (106ms)  : 100, 113
    master - mean (103ms)  : 98, 107

    section CallTarget+Inlining+NGEN
    This PR (8542) - mean (948ms)  : 901, 994
    master - mean (941ms)  : 903, 980

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

    section Bailout
    This PR (8542) - mean (103ms)  : 97, 108
    master - mean (101ms)  : 98, 103

    section CallTarget+Inlining+NGEN
    This PR (8542) - mean (832ms)  : 778, 886
    master - mean (829ms)  : 789, 868

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 (8542) - mean (198ms)  : 193, 204
    master - mean (198ms)  : 192, 205

    section Bailout
    This PR (8542) - mean (201ms)  : 195, 207
    master - mean (204ms)  : 199, 208

    section CallTarget+Inlining+NGEN
    This PR (8542) - mean (1,222ms)  : 1169, 1275
    master - mean (1,222ms)  : 1177, 1268

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 (8542) - mean (282ms)  : 273, 292
    master - mean (285ms)  : 276, 294

    section Bailout
    This PR (8542) - mean (282ms)  : 276, 288
    master - mean (287ms)  : 278, 296

    section CallTarget+Inlining+NGEN
    This PR (8542) - mean (972ms)  : 948, 997
    master - mean (976ms)  : 954, 999

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8542) - mean (276ms)  : 268, 284
    master - mean (278ms)  : 268, 288

    section Bailout
    This PR (8542) - mean (278ms)  : 267, 288
    master - mean (276ms)  : 270, 283

    section CallTarget+Inlining+NGEN
    This PR (8542) - mean (1,152ms)  : 1119, 1185
    master - mean (1,153ms)  : 1109, 1198

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8542) - mean (275ms)  : 266, 284
    master - mean (276ms)  : 268, 285

    section Bailout
    This PR (8542) - mean (275ms)  : 265, 286
    master - mean (283ms)  : 268, 297

    section CallTarget+Inlining+NGEN
    This PR (8542) - mean (1,030ms)  : 982, 1078
    master - mean (1,037ms)  : 997, 1077

Loading

@pr-commenter

pr-commenter Bot commented Apr 30, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-05-01 13:12:49

Comparing candidate commit efc44a5 in PR branch dudik/line-probe-support-case-insensitive with baseline commit 02c091f in branch master.

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

  • 🟩 throughput [+7371.634op/s; +9596.123op/s] or [+6.196%; +8.066%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+309.628ms; +314.940ms] or [+153.648%; +156.284%]
  • 🟥 throughput [-43.915op/s; -40.172op/s] or [-7.901%; -7.228%]

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

  • 🟥 execution_time [+378.478ms; +381.172ms] or [+299.021%; +301.149%]
  • 🟩 throughput [+92.552op/s; +97.002op/s] or [+12.203%; +12.789%]

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

  • 🟥 execution_time [+389.794ms; +392.404ms] or [+344.953%; +347.263%]

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.252ms; -12.072ms] or [-7.590%; -5.638%]

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 [-262582.291op/s; -257564.264op/s] or [-26.811%; -26.299%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.558%; +38.566%]
  • 🟩 execution_time [-25.915ms; -21.066ms] or [-11.557%; -9.394%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.292%; +105.304%]
  • 🟥 throughput [-147248.070op/s; -130224.197op/s] or [-21.157%; -18.711%]

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

  • 🟩 throughput [+9985.509op/s; +12941.679op/s] or [+6.354%; +8.235%]

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

  • 🟩 throughput [+6616.998op/s; +9308.772op/s] or [+5.271%; +7.416%]

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

  • 🟩 throughput [+288878.079op/s; +323783.832op/s] or [+9.632%; +10.796%]

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

  • 🟩 execution_time [-19.243ms; -14.873ms] or [-8.870%; -6.856%]
  • 🟩 throughput [+214793.336op/s; +268517.325op/s] or [+8.526%; +10.658%]

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

  • 🟥 execution_time [+299.744ms; +300.467ms] or [+149.772%; +150.133%]

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

  • 🟥 execution_time [+299.532ms; +302.867ms] or [+151.055%; +152.736%]

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

  • 🟥 execution_time [+300.244ms; +302.706ms] or [+151.240%; +152.480%]

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

  • 🟥 execution_time [+296.440ms; +297.183ms] or [+145.599%; +145.965%]

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

  • 🟥 execution_time [+296.384ms; +299.368ms] or [+144.891%; +146.350%]

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

  • 🟥 execution_time [+301.390ms; +303.148ms] or [+150.634%; +151.513%]

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

  • 🟥 execution_time [+25.114µs; +48.745µs] or [+8.018%; +15.562%]
  • 🟥 throughput [-450.701op/s; -251.914op/s] or [-14.050%; -7.853%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.738ms; +300.391ms] or [+149.600%; +149.926%]

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

  • 🟥 execution_time [+409.811ms; +416.689ms] or [+445.277%; +452.749%]
  • 🟩 throughput [+1092.321op/s; +1234.974op/s] or [+8.976%; +10.148%]

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

  • unstable execution_time [+251.199ms; +297.268ms] or [+190.733%; +225.712%]
  • 🟩 throughput [+538.797op/s; +739.515op/s] or [+5.216%; +7.159%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+301.977ms; +341.817ms] or [+138.846%; +157.164%]
  • 🟥 throughput [-528.975op/s; -490.391op/s] or [-47.930%; -44.434%]

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

  • unstable execution_time [+206.263ms; +339.490ms] or [+87.901%; +144.676%]
  • 🟥 throughput [-674.037op/s; -590.559op/s] or [-44.958%; -39.390%]

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

  • 🟥 execution_time [+337.082ms; +348.132ms] or [+201.614%; +208.223%]
  • 🟥 throughput [-407.782op/s; -371.848op/s] or [-28.393%; -25.891%]

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

  • 🟩 execution_time [-155.771µs; -115.271µs] or [-7.891%; -5.839%]
  • 🟩 throughput [+33.547op/s; +44.105op/s] or [+6.622%; +8.707%]

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

  • 🟩 throughput [+12.858op/s; +36.976op/s] or [+5.070%; +14.581%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+303.954ms; +305.187ms] or [+153.065%; +153.686%]

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

  • 🟥 execution_time [+301.805ms; +304.717ms] or [+151.235%; +152.694%]

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

  • 🟥 execution_time [+300.289ms; +303.491ms] or [+150.852%; +152.461%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+301.261ms; +302.582ms] or [+151.283%; +151.947%]

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

  • 🟥 execution_time [+297.550ms; +299.200ms] or [+147.125%; +147.941%]

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

  • 🟥 execution_time [+302.957ms; +306.810ms] or [+153.552%; +155.505%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+302.418ms; +304.194ms] or [+151.786%; +152.678%]

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

  • 🟥 execution_time [+300.775ms; +302.380ms] or [+149.909%; +150.709%]
  • 🟩 throughput [+33995.564op/s; +38590.224op/s] or [+6.750%; +7.663%]

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

  • 🟥 execution_time [+301.852ms; +304.293ms] or [+150.169%; +151.383%]

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

  • 🟩 execution_time [-15.681ms; -11.805ms] or [-7.292%; -5.490%]

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

  • unstable execution_time [+7.995µs; +48.731µs] or [+1.975%; +12.037%]

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

  • 🟩 allocated_mem [-20.279KB; -20.258KB] or [-7.397%; -7.390%]
  • unstable execution_time [-44.918µs; +7.631µs] or [-8.878%; +1.508%]

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

  • 🟥 allocated_mem [+44.827KB; +44.844KB] or [+16.341%; +16.348%]
  • unstable execution_time [+5.970µs; +123.955µs] or [+1.034%; +21.481%]
  • unstable throughput [-140.157op/s; +63.012op/s] or [-8.007%; +3.600%]

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

  • 🟥 allocated_mem [+8.190KB; +8.196KB] or [+16.663%; +16.674%]

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

  • unstable execution_time [+7.425µs; +11.865µs] or [+17.551%; +28.046%]
  • 🟥 throughput [-5131.805op/s; -3318.338op/s] or [-21.603%; -13.969%]

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

  • unstable execution_time [-12.691µs; -5.477µs] or [-19.689%; -8.498%]
  • 🟩 throughput [+1304.199op/s; +2808.577op/s] or [+8.002%; +17.232%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+302.877ms; +303.820ms] or [+153.091%; +153.568%]

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

  • 🟥 execution_time [+303.168ms; +305.223ms] or [+154.312%; +155.358%]

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

  • 🟥 execution_time [+299.781ms; +301.720ms] or [+150.078%; +151.048%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+300.783ms; +302.460ms] or [+149.913%; +150.749%]

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

  • 🟥 execution_time [+302.373ms; +303.621ms] or [+151.838%; +152.464%]

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

  • 🟥 execution_time [+303.722ms; +305.983ms] or [+154.029%; +155.175%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.755ms; +300.581ms] or [+149.520%; +149.931%]
  • 🟩 throughput [+61135836.851op/s; +61420681.081op/s] or [+44.523%; +44.730%]

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

  • unstable execution_time [+351.940ms; +393.992ms] or [+437.700%; +489.999%]
  • 🟩 throughput [+898.527op/s; +1085.975op/s] or [+6.946%; +8.395%]

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

  • 🟥 execution_time [+299.435ms; +300.476ms] or [+149.351%; +149.870%]

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

  • 🟩 throughput [+107459.068op/s; +115298.092op/s] or [+10.033%; +10.765%]

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

  • 🟩 throughput [+47926.647op/s; +67257.864op/s] or [+5.547%; +7.785%]

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

  • 🟩 throughput [+90149.861op/s; +121202.021op/s] or [+6.978%; +9.381%]

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

  • 🟩 throughput [+67258.841op/s; +75122.142op/s] or [+6.680%; +7.461%]

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

  • 🟩 throughput [+57035.295op/s; +62283.044op/s] or [+10.357%; +11.309%]

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

  • 🟩 throughput [+27722.431op/s; +37637.829op/s] or [+6.205%; +8.425%]

scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin net472

  • 🟥 throughput [-44794.604op/s; -41208.721op/s] or [-6.556%; -6.031%]

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

  • 🟩 throughput [+84552.612op/s; +101469.468op/s] or [+9.447%; +11.337%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild netcoreapp3.1
  • 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 net6.0
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OptimizedCharSliceWithPool netcoreapp3.1
  • scenario:Benchmarks.Trace.CharSliceBenchmark.OriginalCharSlice net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog net472
  • scenario:Benchmarks.Trace.ILoggerBenchmark.EnrichedLog netcoreapp3.1
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472
  • scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net6.0
  • 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 netcoreapp3.1

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.

Pull request overview

Adds case-insensitive source path matching for Dynamic Instrumentation line probes while preserving the original PDB document path returned from resolution, reducing cases where valid probes remain unbound due to casing differences.

Changes:

  • Extend FilePathLookup.FindPathThatEndsWith with a case-insensitive full-suffix fallback when the trie fast-path misses.
  • Make trailing-segment matching case-insensitive (StringComparison.OrdinalIgnoreCase) and convert ClosestPathBySuffixResult to a readonly struct.
  • Add/adjust integration tests covering case-insensitive matching, ambiguity handling, and segment-count mismatch behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tracer/src/Datadog.Trace/Debugger/LineProbeResolver.cs Implements case-insensitive fallback suffix matching on trie miss and returns the original PDB path; switches suffix-segment comparisons to OrdinalIgnoreCase; refactors result carrier to a readonly struct.
tracer/test/Datadog.Trace.Debugger.IntegrationTests/LineProbeResolverTest.cs Adds focused coverage for case-insensitive exact-suffix behavior, ambiguity rejection, and query/document segment-count mismatch; updates prior test expectation for case-only differences.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tracer/src/Datadog.Trace/Debugger/LineProbeResolver.cs
@dudikeleti
dudikeleti force-pushed the dudik/line-probe-support-case-insensitive branch from c64a2df to efc44a5 Compare May 1, 2026 09:49
@dudikeleti
dudikeleti requested a review from Copilot May 1, 2026 09:50

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tracer/src/Datadog.Trace/Debugger/LineProbeResolver.cs

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dudikeleti
dudikeleti enabled auto-merge (squash) May 1, 2026 12:37
@dudikeleti
dudikeleti removed the request for review from jpbempel May 1, 2026 14:57
@dudikeleti
dudikeleti merged commit 55c9bc1 into master May 1, 2026
150 checks passed
@dudikeleti
dudikeleti deleted the dudik/line-probe-support-case-insensitive branch May 1, 2026 15:10
@github-actions github-actions Bot added this to the vNext-v3 milestone May 1, 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