Skip to content

[Debugger] Prevent expression member access from invoking getters#8878

Merged
dudikeleti merged 2 commits into
masterfrom
dudik/el/property-getter-fix
Jul 8, 2026
Merged

[Debugger] Prevent expression member access from invoking getters#8878
dudikeleti merged 2 commits into
masterfrom
dudik/el/property-getter-fix

Conversation

@dudikeleti

Copy link
Copy Markdown
Contributor

Summary

  • Prevent Live Debugger expression member access from invoking customer property getters.
  • Resolve getmember / ref member access to fields or verified compiler-generated auto-property backing fields, failing closed to UndefinedValue for unsafe or uncertain property shapes.
  • Preserve dictionary redaction behavior and keep dictionary iterator getter access limited to exact BCL Key / Value members.

Motivation

Probe expressions can run on customer hot paths. Calling arbitrary property getters from getmember can trigger side effects such as lazy loading, sync body reads, or customer code execution. This change keeps expression member access side-effect-safe while preserving field and C# auto-property scenarios through direct backing-field reads.

Implementation Notes

  • Replaces broad Type.GetMember(...).FirstOrDefault() / Expression.PropertyOrField() member access with a fail-closed resolver.
  • Performs reflection only during expression parse/compile, not at probe-hit evaluation time.
  • Avoids LINQ and emitted runtime helper calls in the resolver path.
  • Leaves broader customer-code execution surfaces like collection enumeration, indexers, Count, ToString, and exception dump behavior out of scope.

Test Plan

  • Added focused regression coverage in DebuggerExpressionLanguageTests for:
    • private auto-property backing-field expression compilation
    • instance and inherited auto-property access
    • side-effecting getter blocking
    • ref fallback blocking
    • static property getter blocking
    • dictionary value redaction tracking
  • Updated expression Verify snapshots to show backing-field access.

@dudikeleti
dudikeleti requested a review from a team as a code owner July 8, 2026 14:43
@dudikeleti
dudikeleti requested review from P403n1x87 and jpbempel July 8, 2026 14:44
@dudikeleti
dudikeleti removed the request for review from jpbempel July 8, 2026 14:47
@dudikeleti
dudikeleti enabled auto-merge (squash) July 8, 2026 14:47

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

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.Collection.cs Outdated
@dudikeleti
dudikeleti disabled auto-merge July 8, 2026 15:09
@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8878) 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
duration71.53 ± (71.31 - 71.91) ms72.19 ± (72.11 - 72.57) ms+0.9%✅⬆️
.NET Framework 4.8 - Bailout
duration73.61 ± (73.55 - 73.87) ms74.59 ± (74.61 - 74.98) ms+1.3%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1077.60 ± (1081.75 - 1090.15) ms1079.01 ± (1076.38 - 1082.01) ms+0.1%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.25 ± (22.21 - 22.30) ms22.37 ± (22.33 - 22.42) ms+0.5%✅⬆️
process.time_to_main_ms81.72 ± (81.46 - 81.98) ms82.84 ± (82.55 - 83.13) ms+1.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.93 - 10.94) 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_ms21.98 ± (21.95 - 22.02) ms21.99 ± (21.95 - 22.03) ms+0.0%✅⬆️
process.time_to_main_ms81.58 ± (81.45 - 81.70) ms81.81 ± (81.68 - 81.95) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.99 ± (10.98 - 10.99) MB10.95 ± (10.95 - 10.96) MB-0.3%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms209.33 ± (208.51 - 210.15) ms210.86 ± (209.83 - 211.89) ms+0.7%✅⬆️
process.time_to_main_ms531.65 ± (530.35 - 532.95) ms533.38 ± (532.30 - 534.45) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.26 ± (49.23 - 49.29) MB49.24 ± (49.20 - 49.27) MB-0.1%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.3%
.NET 6 - Baseline
process.internal_duration_ms21.21 ± (21.16 - 21.25) ms20.89 ± (20.85 - 20.93) ms-1.5%
process.time_to_main_ms72.22 ± (71.97 - 72.48) ms70.27 ± (70.09 - 70.45) ms-2.7%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.66 ± (10.66 - 10.66) MB10.63 ± (10.63 - 10.64) MB-0.3%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.82 ± (20.79 - 20.86) ms20.74 ± (20.71 - 20.78) ms-0.4%
process.time_to_main_ms71.54 ± (71.41 - 71.67) ms70.50 ± (70.40 - 70.59) ms-1.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.77 ± (10.77 - 10.78) MB10.77 ± (10.77 - 10.77) MB-0.0%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms372.07 ± (370.11 - 374.03) ms369.51 ± (367.31 - 371.70) ms-0.7%
process.time_to_main_ms535.94 ± (534.79 - 537.09) ms536.29 ± (535.11 - 537.48) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.30 ± (50.28 - 50.32) MB50.20 ± (50.18 - 50.23) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.21 ± (19.17 - 19.24) ms19.39 ± (19.35 - 19.43) ms+0.9%✅⬆️
process.time_to_main_ms68.78 ± (68.66 - 68.91) ms70.98 ± (70.70 - 71.26) ms+3.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.70 ± (7.70 - 7.71) MB7.68 ± (7.68 - 7.69) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.38 ± (19.34 - 19.42) ms19.25 ± (19.21 - 19.28) ms-0.7%
process.time_to_main_ms72.38 ± (72.14 - 72.61) ms72.72 ± (72.49 - 72.95) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.75 ± (7.75 - 7.76) MB7.74 ± (7.73 - 7.74) MB-0.2%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms297.15 ± (295.02 - 299.28) ms298.37 ± (296.00 - 300.73) ms+0.4%✅⬆️
process.time_to_main_ms484.34 ± (483.44 - 485.24) ms483.89 ± (482.99 - 484.80) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.71 ± (37.67 - 37.74) MB37.80 ± (37.78 - 37.83) MB+0.3%✅⬆️
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
duration198.54 ± (198.22 - 199.21) ms201.45 ± (201.23 - 202.08) ms+1.5%✅⬆️
.NET Framework 4.8 - Bailout
duration202.03 ± (201.56 - 202.48) ms204.81 ± (204.58 - 205.38) ms+1.4%✅⬆️
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1195.91 ± (1194.77 - 1200.69) ms1204.66 ± (1203.44 - 1209.11) ms+0.7%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms194.32 ± (193.88 - 194.77) ms193.57 ± (193.23 - 193.91) ms-0.4%
process.time_to_main_ms84.59 ± (84.23 - 84.96) ms83.90 ± (83.57 - 84.23) ms-0.8%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.04 ± (16.02 - 16.06) MB16.06 ± (16.03 - 16.09) MB+0.1%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.2%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms194.93 ± (194.59 - 195.26) ms194.55 ± (194.06 - 195.03) ms-0.2%
process.time_to_main_ms85.98 ± (85.77 - 86.18) ms85.55 ± (85.25 - 85.85) ms-0.5%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.05 ± (16.02 - 16.08) MB16.11 ± (16.09 - 16.14) MB+0.4%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 21)21 ± (21 - 21)+0.5%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms388.15 ± (386.76 - 389.55) ms386.02 ± (384.62 - 387.42) ms-0.5%
process.time_to_main_ms546.10 ± (545.03 - 547.16) ms541.44 ± (540.40 - 542.48) ms-0.9%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.69 ± (58.45 - 58.92) MB57.93 ± (57.75 - 58.12) MB-1.3%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.8%
.NET 6 - Baseline
process.internal_duration_ms200.13 ± (199.66 - 200.59) ms199.28 ± (198.85 - 199.72) ms-0.4%
process.time_to_main_ms73.67 ± (73.39 - 73.95) ms72.93 ± (72.58 - 73.29) ms-1.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.35 ± (16.32 - 16.38) MB16.36 ± (16.33 - 16.39) MB+0.1%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+1.2%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms203.60 ± (202.27 - 204.93) ms199.16 ± (198.84 - 199.48) ms-2.2%
process.time_to_main_ms75.79 ± (75.37 - 76.21) ms74.61 ± (74.38 - 74.84) ms-1.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.35 ± (16.32 - 16.37) MB16.44 ± (16.41 - 16.47) MB+0.6%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)-0.8%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms584.64 ± (582.56 - 586.73) ms585.67 ± (582.97 - 588.37) ms+0.2%✅⬆️
process.time_to_main_ms550.83 ± (549.78 - 551.89) ms550.86 ± (549.78 - 551.94) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.41 ± (61.32 - 61.49) MB61.48 ± (61.39 - 61.57) MB+0.1%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.2%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms196.46 ± (196.08 - 196.84) ms197.82 ± (197.39 - 198.25) ms+0.7%✅⬆️
process.time_to_main_ms72.18 ± (71.97 - 72.40) ms73.08 ± (72.79 - 73.37) ms+1.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.82 ± (11.80 - 11.84) MB11.73 ± (11.71 - 11.75) MB-0.7%
runtime.dotnet.threads.count18 ± (18 - 18)19 ± (18 - 19)+1.7%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms196.50 ± (196.05 - 196.95) ms197.60 ± (197.24 - 197.96) ms+0.6%✅⬆️
process.time_to_main_ms73.53 ± (73.33 - 73.72) ms74.04 ± (73.86 - 74.22) ms+0.7%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.80 ± (11.78 - 11.82) MB11.76 ± (11.74 - 11.78) MB-0.4%
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.0%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms513.43 ± (510.62 - 516.23) ms510.84 ± (508.00 - 513.68) ms-0.5%
process.time_to_main_ms501.30 ± (500.47 - 502.13) ms503.91 ± (503.15 - 504.67) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.20 ± (51.17 - 51.24) MB51.14 ± (51.11 - 51.18) MB-0.1%
runtime.dotnet.threads.count30 ± (29 - 30)30 ± (30 - 30)+0.8%✅⬆️
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 (8878) - mean (72ms)  : 69, 76
    master - mean (72ms)  : 67, 76

    section Bailout
    This PR (8878) - mean (75ms)  : 72, 77
    master - mean (74ms)  : 72, 75

    section CallTarget+Inlining+NGEN
    This PR (8878) - mean (1,079ms)  : 1037, 1121
    master - mean (1,086ms)  : 1023, 1149

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 (8878) - mean (113ms)  : 106, 119
    master - mean (111ms)  : 105, 118

    section Bailout
    This PR (8878) - mean (110ms)  : 108, 112
    master - mean (110ms)  : 108, 112

    section CallTarget+Inlining+NGEN
    This PR (8878) - mean (782ms)  : 757, 807
    master - mean (778ms)  : 753, 804

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

    section Bailout
    This PR (8878) - mean (97ms)  : 95, 99
    master - mean (99ms)  : 95, 103

    section CallTarget+Inlining+NGEN
    This PR (8878) - mean (938ms)  : 901, 974
    master - mean (943ms)  : 902, 984

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8878) - mean (98ms)  : 92, 103
    master - mean (95ms)  : 92, 98

    section Bailout
    This PR (8878) - mean (100ms)  : 95, 104
    master - mean (99ms)  : 94, 105

    section CallTarget+Inlining+NGEN
    This PR (8878) - mean (815ms)  : 773, 856
    master - mean (810ms)  : 777, 844

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 (8878) - mean (202ms)  : 197, 207
    master - mean (199ms)  : 194, 204

    section Bailout
    This PR (8878) - mean (205ms)  : 201, 209
    master - mean (202ms)  : 197, 207

    section CallTarget+Inlining+NGEN
    This PR (8878) - mean (1,206ms)  : 1171, 1242
    master - mean (1,198ms)  : 1155, 1241

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 (8878) - mean (287ms)  : 283, 292
    master - mean (289ms)  : 283, 296

    section Bailout
    This PR (8878) - mean (290ms)  : 283, 297
    master - mean (290ms)  : 286, 295

    section CallTarget+Inlining+NGEN
    This PR (8878) - mean (970ms)  : 942, 997
    master - mean (976ms)  : 956, 996

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

    section Bailout
    This PR (8878) - mean (283ms)  : 279, 288
    master - mean (289ms)  : 263, 316

    section CallTarget+Inlining+NGEN
    This PR (8878) - mean (1,169ms)  : 1135, 1204
    master - mean (1,165ms)  : 1134, 1197

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8878) - mean (281ms)  : 274, 289
    master - mean (279ms)  : 274, 284

    section Bailout
    This PR (8878) - mean (282ms)  : 278, 286
    master - mean (280ms)  : 275, 286

    section CallTarget+Inlining+NGEN
    This PR (8878) - mean (1,048ms)  : 1008, 1088
    master - mean (1,046ms)  : 1001, 1091

Loading

@pr-commenter

pr-commenter Bot commented Jul 8, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-08 17:26:43

Comparing candidate commit 671c4aa in PR branch dudik/el/property-getter-fix with baseline commit 7ce005f in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 62 known flaky benchmarks, 64 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.Trace.DbCommandBenchmark.ExecuteNonQuery net472

  • 🟥 throughput [-26233.859op/s; -22531.935op/s] or [-7.389%; -6.346%]

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 [-7625.940op/s; -7087.800op/s] or [-9.042%; -8.404%]

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

  • 🟥 throughput [-6335.256op/s; -4994.555op/s] or [-6.442%; -5.078%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+316.221ms; +322.574ms] or [+156.920%; +160.072%]
  • 🟥 throughput [-41.672op/s; -37.954op/s] or [-7.498%; -6.829%]

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

  • 🟥 execution_time [+380.194ms; +381.296ms] or [+300.377%; +301.248%]
  • 🟩 throughput [+92.137op/s; +94.045op/s] or [+12.148%; +12.400%]

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

  • 🟥 execution_time [+396.010ms; +399.394ms] or [+350.453%; +353.448%]

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 [+471 bytes; +472 bytes] or [+9.976%; +9.987%]
  • 🟩 execution_time [-15.994ms; -11.801ms] or [-7.470%; -5.511%]
  • 🟩 throughput [+8044.774op/s; +10856.242op/s] or [+5.872%; +7.924%]

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

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

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

  • 🟥 allocated_mem [+1.307KB; +1.307KB] or [+105.743%; +105.758%]
  • 🟥 throughput [-257998.207op/s; -250955.999op/s] or [-26.343%; -25.624%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-26.441ms; -21.576ms] or [-11.792%; -9.622%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-153469.629op/s; -137534.971op/s] or [-22.051%; -19.761%]

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

  • 🟩 throughput [+9552.405op/s; +12503.234op/s] or [+6.078%; +7.956%]

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

  • 🟩 throughput [+9134.467op/s; +11802.778op/s] or [+7.277%; +9.402%]

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

  • 🟩 throughput [+455358.140op/s; +491453.780op/s] or [+15.184%; +16.387%]

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

  • 🟩 execution_time [-19.136ms; -14.739ms] or [-8.821%; -6.794%]
  • 🟩 throughput [+127461.729op/s; +186512.941op/s] or [+5.059%; +7.403%]

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

  • 🟥 execution_time [+299.751ms; +300.586ms] or [+149.775%; +150.193%]

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

  • 🟥 execution_time [+298.586ms; +311.309ms] or [+150.578%; +156.994%]

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

  • 🟥 execution_time [+301.156ms; +304.349ms] or [+151.699%; +153.307%]

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

  • 🟥 execution_time [+297.656ms; +298.386ms] or [+146.197%; +146.555%]

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

  • 🟥 execution_time [+293.479ms; +295.390ms] or [+143.471%; +144.405%]

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

  • 🟥 execution_time [+301.512ms; +303.557ms] or [+150.695%; +151.717%]

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

  • 🟥 execution_time [+28.169µs; +55.297µs] or [+6.460%; +12.682%]
  • 🟥 throughput [-267.010op/s; -145.006op/s] or [-11.609%; -6.304%]

scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark netcoreapp3.1

  • 🟥 throughput [-195.551op/s; -112.057op/s] or [-9.027%; -5.173%]

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

  • 🟥 execution_time [+33.634µs; +57.755µs] or [+10.738%; +18.438%]
  • 🟥 throughput [-520.948op/s; -318.845op/s] or [-16.239%; -9.939%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.743ms; +300.694ms] or [+149.602%; +150.077%]

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

  • unstable execution_time [+418.530ms; +427.809ms] or [+454.750%; +464.832%]

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

  • unstable execution_time [+249.846ms; +312.469ms] or [+189.706%; +237.255%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+256.202ms; +333.259ms] or [+117.799%; +153.229%]
  • 🟥 throughput [-574.111op/s; -514.115op/s] or [-52.020%; -46.584%]

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

  • unstable execution_time [+204.866ms; +338.153ms] or [+87.305%; +144.106%]
  • 🟥 throughput [-668.525op/s; -584.995op/s] or [-44.591%; -39.019%]

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

  • 🟥 execution_time [+332.210ms; +347.220ms] or [+198.700%; +207.678%]
  • 🟥 throughput [-380.448op/s; -343.446op/s] or [-26.490%; -23.914%]

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

  • 🟩 execution_time [-192.813µs; -142.229µs] or [-9.767%; -7.205%]
  • 🟩 throughput [+41.406op/s; +54.946op/s] or [+8.174%; +10.847%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+300.690ms; +302.590ms] or [+151.422%; +152.378%]

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

  • 🟥 execution_time [+303.145ms; +304.473ms] or [+151.906%; +152.572%]

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

  • 🟥 execution_time [+301.541ms; +304.944ms] or [+151.482%; +153.191%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+302.159ms; +303.353ms] or [+151.734%; +152.334%]

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

  • 🟥 execution_time [+299.919ms; +301.299ms] or [+148.296%; +148.979%]

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

  • 🟥 execution_time [+301.681ms; +305.318ms] or [+152.905%; +154.749%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+300.454ms; +303.200ms] or [+150.801%; +152.179%]

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

  • 🟥 execution_time [+301.712ms; +303.701ms] or [+150.376%; +151.367%]
  • 🟩 throughput [+47662.691op/s; +52043.884op/s] or [+9.464%; +10.334%]

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

  • 🟥 execution_time [+298.351ms; +300.932ms] or [+148.427%; +149.711%]

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

  • 🟩 execution_time [-16.325ms; -12.678ms] or [-7.591%; -5.895%]

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

  • unstable execution_time [+23.381µs; +72.202µs] or [+5.775%; +17.834%]
  • 🟥 throughput [-358.935op/s; -132.070op/s] or [-14.444%; -5.315%]

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

  • 🟩 allocated_mem [-18.319KB; -18.297KB] or [-6.682%; -6.674%]
  • unstable execution_time [-27.175µs; +31.582µs] or [-5.371%; +6.242%]
  • unstable throughput [-110.993op/s; +92.070op/s] or [-5.539%; +4.594%]

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

  • 🟩 allocated_mem [-28.438KB; -28.420KB] or [-10.367%; -10.360%]
  • unstable execution_time [-53.009µs; +9.811µs] or [-9.186%; +1.700%]

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

  • unstable execution_time [+11.774µs; +17.913µs] or [+27.829%; +42.341%]
  • 🟥 throughput [-6937.613op/s; -4784.928op/s] or [-29.205%; -20.143%]

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

  • unstable execution_time [-13.852µs; -5.682µs] or [-21.490%; -8.816%]
  • unstable throughput [+1458.041op/s; +3211.072op/s] or [+8.946%; +19.701%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.214ms; +302.317ms] or [+152.250%; +152.808%]

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

  • 🟥 execution_time [+303.136ms; +305.949ms] or [+154.295%; +155.727%]

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

  • 🟥 execution_time [+300.153ms; +302.316ms] or [+150.264%; +151.346%]

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

  • 🟩 throughput [+34542.134op/s; +37574.455op/s] or [+6.538%; +7.112%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+298.309ms; +300.459ms] or [+148.680%; +149.752%]

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

  • 🟥 execution_time [+303.176ms; +305.558ms] or [+152.240%; +153.436%]

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

  • 🟥 execution_time [+303.274ms; +305.950ms] or [+153.801%; +155.158%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.825ms; +300.955ms] or [+149.554%; +150.118%]
  • 🟩 throughput [+66042569.313op/s; +66406003.540op/s] or [+48.096%; +48.361%]

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

  • 🟥 execution_time [+421.493ms; +425.416ms] or [+524.202%; +529.080%]

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

  • 🟥 execution_time [+300.147ms; +301.273ms] or [+149.706%; +150.268%]
  • 🟩 throughput [+17861750.942op/s; +18844101.198op/s] or [+7.912%; +8.347%]

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

  • 🟩 throughput [+85487.087op/s; +93145.468op/s] or [+7.982%; +8.697%]

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

  • 🟩 throughput [+54936.881op/s; +75002.148op/s] or [+6.359%; +8.681%]

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

  • 🟩 throughput [+72820.629op/s; +104138.198op/s] or [+5.636%; +8.060%]

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

  • 🟩 throughput [+84939.860op/s; +95586.564op/s] or [+8.436%; +9.493%]

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

  • 🟩 throughput [+41563.150op/s; +50238.028op/s] or [+7.547%; +9.122%]

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

  • 🟩 throughput [+85182.716op/s; +102562.068op/s] or [+9.517%; +11.459%]

Known flaky benchmarks without significant changes:

  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_GetContext_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.ActivityBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_AddEvent_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_GetContext_Sampled net6.0
  • 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_RecordException_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_RecordException_Sampled netcoreapp3.1
  • 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_SetAttributes_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_SetStatus_Sampled netcoreapp3.1
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net472
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled net6.0
  • scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TelemetrySpanBenchmark.StartSpan_UpdateName_Sampled netcoreapp3.1
  • scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net6.0
  • 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.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.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.SpanBenchmark.StartFinishTwoScopes netcoreapp3.1
  • scenario:Benchmarks.Trace.TraceAnnotationsBenchmark.RunOnMethodBegin 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

This PR hardens the Live Debugger probe expression evaluator by ensuring getmember/ref member access does not invoke customer property getters (avoiding side effects), while still allowing safe reads via fields and verified C# auto-property backing fields.

Changes:

  • Introduced a fail-closed member resolver that prefers fields and validated compiler-generated auto-property backing fields, and blocks unsafe property getter access (including static getter access that may trigger type initialization).
  • Updated collection/dictionary iterator member handling to keep Key/Value access constrained to expected BCL shapes and preserve dictionary redaction tracking.
  • Added regression tests and updated approval snapshots to reflect backing-field-based member access and new failure behavior.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.General.cs Adds safe member resolution logic and replaces prior reflection/LINQ-based member lookup with fail-closed field/backing-field access.
tracer/src/Datadog.Trace/Debugger/Expressions/ProbeExpressionParser.Collection.cs Routes redacted dictionary value member access through the safe resolver and tightens iterator property access.
tracer/test/Datadog.Trace.Tests/Debugger/DebuggerExpressionLanguageTests.cs Adds focused tests covering backing-field access and getter-blocking behavior (including static getter/cctor scenarios).
tracer/test/Datadog.Trace.Tests/Debugger/ProbeExpressionsResources/Approvals/DebuggerExpressionLanguageTests.RefGetMemberTwoLevels.verified.txt Updates snapshot to show nested auto-property backing-field access.
tracer/test/Datadog.Trace.Tests/Debugger/ProbeExpressionsResources/Approvals/DebuggerExpressionLanguageTests.RefGetMember.verified.txt Updates snapshot to show auto-property backing-field access.
tracer/test/Datadog.Trace.Tests/Debugger/ProbeExpressionsResources/Approvals/DebuggerExpressionLanguageTests.ParentPrivateMember.verified.txt Updates snapshot reflecting resolved inherited/private member access behavior.
tracer/test/Datadog.Trace.Tests/Debugger/ProbeExpressionsResources/Approvals/DebuggerExpressionLanguageTests.NotEqual.verified.txt Updates snapshot to show backing-field-based evaluation.
tracer/test/Datadog.Trace.Tests/Debugger/ProbeExpressionsResources/Approvals/DebuggerExpressionLanguageTests.NestedFieldAccess.verified.txt Updates snapshot to show backing-field member access in nested scenarios.
tracer/test/Datadog.Trace.Tests/Debugger/ProbeExpressionsResources/Approvals/DebuggerExpressionLanguageTests.IsEmpty.verified.txt Updates snapshot to show backing-field member access for isEmpty.
tracer/test/Datadog.Trace.Tests/Debugger/ProbeExpressionsResources/Approvals/DebuggerExpressionLanguageTests.HasAnyCustomObject.verified.txt Updates snapshot to show backing-field access within LINQ predicate compilation.
tracer/test/Datadog.Trace.Tests/Debugger/ProbeExpressionsResources/Approvals/DebuggerExpressionLanguageTests.AccessNullObject.verified.txt Updates snapshot to show backing-field access (and associated null-reference evaluation error).

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

@dudikeleti
dudikeleti requested a review from Copilot July 8, 2026 16:26
@dudikeleti

Copy link
Copy Markdown
Contributor Author

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

Pull request overview

Copilot reviewed 18 out of 18 changed files in this pull request and generated no new comments.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 671c4aae09

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

@dudikeleti
dudikeleti enabled auto-merge (squash) July 8, 2026 16:59
@dudikeleti
dudikeleti merged commit 3881af1 into master Jul 8, 2026
142 of 143 checks passed
@dudikeleti
dudikeleti deleted the dudik/el/property-getter-fix branch July 8, 2026 17:45
@github-actions github-actions Bot added this to the vNext-v3 milestone Jul 8, 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.

4 participants