Skip to content

[AAP] Cap recursion depth in ObjectExtractor's list/dictionary paths - #8958

Merged
dromanol merged 4 commits into
masterfrom
dani/aap/fix_object_extractor_vuln
Jul 30, 2026
Merged

[AAP] Cap recursion depth in ObjectExtractor's list/dictionary paths#8958
dromanol merged 4 commits into
masterfrom
dani/aap/fix_object_extractor_vuln

Conversation

@dromanol

Copy link
Copy Markdown
Contributor

Summary

An internal codex security review found that ObjectExtractor's object-property extraction (ExtractProperties) enforces WafConstants.MaxContainerDepth, but the list/dictionary recursion paths (ExtractListOrArray, ExtractDictionary, ExtractDictionaryAsKeyValuePairs, ExtractNonGenericDictionary) increment depth on recursion without ever checking it against the limit. A deeply nested (acyclic) enumerable or dictionary graph can therefore recurse until StackOverflowException, which is process-fatal in .NET.

This became more reachable after #8706 broadened the IEnumerable routing to any enumerable type (not just arrays/List<T>), widening what data can reach the unbounded recursion (e.g. HashSet<T>, custom IEnumerable wrappers, JSON-like collection types) via AAP request/response extraction.

  • Adds the same depth-cap check used by ExtractProperties to all four container-recursion paths.
  • Confirmed the vulnerability directly: reverting the fix and running a new regression test with 100k nested lists reliably crashed the test host process with a genuine stack overflow.

Test plan

  • Added TestDeeplyNestedAcyclicListDoesNotStackOverflow — 100k nested lists, asserts no crash (crashes the process without the fix).
  • Added TestNestedListRespectsMaxContainerDepth — asserts the list is truncated to empty exactly at MaxContainerDepth, mirroring the existing TestNestedObjectsAboveLimit object-property test.
  • Ran full ObjectExtractorTests suite across all target frameworks — all passing.

🤖 Generated with Claude Code

ExtractProperties enforces WafConstants.MaxContainerDepth, but
ExtractListOrArray, ExtractDictionary, ExtractDictionaryAsKeyValuePairs,
and ExtractNonGenericDictionary incremented depth on recursion without
checking it, so a deeply nested (acyclic) enumerable/dictionary graph
could recurse until StackOverflowException. This became more reachable
after #8706 broadened extraction to any IEnumerable, not just
arrays/List<T>.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dromanol
dromanol requested a review from a team as a code owner July 29, 2026 18:43
@dd-trace-dotnet-ci-bot

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

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (8958) and master.

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration75.11 ± (75.01 - 75.70) ms73.34 ± (73.30 - 73.84) ms-2.4%
.NET Framework 4.8 - Bailout
duration80.27 ± (80.06 - 80.73) ms76.99 ± (76.83 - 77.36) ms-4.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1089.50 ± (1087.56 - 1093.37) ms1091.55 ± (1091.09 - 1099.99) ms+0.2%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms22.39 ± (22.35 - 22.43) ms22.18 ± (22.14 - 22.23) ms-0.9%
process.time_to_main_ms84.46 ± (84.17 - 84.75) ms83.23 ± (82.93 - 83.54) ms-1.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.02 ± (11.02 - 11.03) MB11.00 ± (10.99 - 11.00) MB-0.2%
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms22.00 ± (21.97 - 22.03) ms21.93 ± (21.90 - 21.96) ms-0.3%
process.time_to_main_ms82.90 ± (82.74 - 83.07) ms82.43 ± (82.25 - 82.62) ms-0.6%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed11.05 ± (11.05 - 11.06) MB11.03 ± (11.03 - 11.04) MB-0.2%
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms209.93 ± (208.96 - 210.90) ms207.72 ± (206.69 - 208.76) ms-1.1%
process.time_to_main_ms536.18 ± (534.85 - 537.50) ms533.65 ± (532.60 - 534.70) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.47 ± (49.44 - 49.51) MB49.50 ± (49.46 - 49.54) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.2%
.NET 6 - Baseline
process.internal_duration_ms21.07 ± (21.02 - 21.12) ms20.99 ± (20.94 - 21.04) ms-0.4%
process.time_to_main_ms73.05 ± (72.77 - 73.34) ms73.25 ± (73.01 - 73.48) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.74 ± (10.74 - 10.74) MB10.71 ± (10.71 - 10.71) MB-0.2%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.06 ± (21.02 - 21.10) ms20.69 ± (20.66 - 20.72) ms-1.8%
process.time_to_main_ms74.94 ± (74.70 - 75.17) ms72.06 ± (71.94 - 72.19) ms-3.8%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.87 ± (10.86 - 10.87) MB10.83 ± (10.83 - 10.83) MB-0.3%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms371.47 ± (369.23 - 373.71) ms370.70 ± (368.48 - 372.92) ms-0.2%
process.time_to_main_ms543.40 ± (542.17 - 544.63) ms543.26 ± (542.30 - 544.22) ms-0.0%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.63 ± (50.60 - 50.65) MB50.66 ± (50.63 - 50.68) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 8 - Baseline
process.internal_duration_ms19.02 ± (19.00 - 19.05) ms19.09 ± (19.06 - 19.12) ms+0.4%✅⬆️
process.time_to_main_ms69.85 ± (69.72 - 69.98) ms70.13 ± (69.99 - 70.26) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.78 ± (7.77 - 7.78) MB7.77 ± (7.76 - 7.77) MB-0.1%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms19.15 ± (19.12 - 19.18) ms19.25 ± (19.21 - 19.29) ms+0.5%✅⬆️
process.time_to_main_ms73.30 ± (73.06 - 73.54) ms73.89 ± (73.67 - 74.10) ms+0.8%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.82 ± (7.81 - 7.82) MB7.81 ± (7.80 - 7.82) MB-0.1%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms297.41 ± (295.08 - 299.75) ms296.76 ± (294.44 - 299.08) ms-0.2%
process.time_to_main_ms496.91 ± (495.95 - 497.86) ms492.52 ± (491.54 - 493.50) ms-0.9%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed38.06 ± (38.03 - 38.09) MB38.01 ± (37.98 - 38.04) MB-0.1%
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.6%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration191.28 ± (191.20 - 191.89) ms191.53 ± (191.41 - 192.22) ms+0.1%✅⬆️
.NET Framework 4.8 - Bailout
duration195.22 ± (195.00 - 195.41) ms194.95 ± (194.82 - 195.27) ms-0.1%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1167.33 ± (1167.39 - 1173.05) ms1168.34 ± (1168.76 - 1174.76) ms+0.1%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms183.82 ± (183.49 - 184.15) ms184.03 ± (183.70 - 184.36) ms+0.1%✅⬆️
process.time_to_main_ms80.23 ± (80.02 - 80.45) ms80.65 ± (80.41 - 80.89) ms+0.5%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.18 ± (16.07 - 16.28) MB16.27 ± (16.18 - 16.36) MB+0.6%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 20)+1.2%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms183.26 ± (183.00 - 183.52) ms183.41 ± (183.18 - 183.63) ms+0.1%✅⬆️
process.time_to_main_ms81.32 ± (81.22 - 81.42) ms81.67 ± (81.57 - 81.76) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.22 ± (16.13 - 16.31) MB16.28 ± (16.17 - 16.39) MB+0.4%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)20 ± (20 - 20)-2.1%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms371.90 ± (370.58 - 373.21) ms373.82 ± (372.72 - 374.92) ms+0.5%✅⬆️
process.time_to_main_ms524.67 ± (523.84 - 525.50) ms523.91 ± (522.97 - 524.86) ms-0.1%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.00 ± (57.94 - 58.06) MB58.00 ± (57.94 - 58.06) MB-0.0%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms188.75 ± (188.48 - 189.01) ms188.43 ± (188.22 - 188.64) ms-0.2%
process.time_to_main_ms70.50 ± (70.34 - 70.66) ms70.49 ± (70.33 - 70.64) ms-0.0%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.96 ± (15.78 - 16.14) MB15.94 ± (15.77 - 16.11) MB-0.1%
runtime.dotnet.threads.count18 ± (17 - 18)18 ± (18 - 18)+1.1%✅⬆️
.NET 6 - Bailout
process.internal_duration_ms187.84 ± (187.67 - 188.02) ms187.48 ± (187.29 - 187.68) ms-0.2%
process.time_to_main_ms71.36 ± (71.30 - 71.42) ms71.37 ± (71.30 - 71.44) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed15.82 ± (15.64 - 15.99) MB16.24 ± (16.07 - 16.40) MB+2.7%✅⬆️
runtime.dotnet.threads.count19 ± (18 - 19)19 ± (19 - 19)+2.0%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms578.03 ± (574.17 - 581.89) ms580.01 ± (576.79 - 583.23) ms+0.3%✅⬆️
process.time_to_main_ms532.15 ± (531.39 - 532.92) ms533.33 ± (532.45 - 534.21) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.57 ± (61.51 - 61.63) MB61.71 ± (61.65 - 61.77) MB+0.2%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms186.56 ± (186.31 - 186.82) ms186.18 ± (185.94 - 186.42) ms-0.2%
process.time_to_main_ms69.98 ± (69.81 - 70.15) ms69.79 ± (69.61 - 69.98) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.95 ± (11.86 - 12.04) MB11.94 ± (11.85 - 12.02) MB-0.1%
runtime.dotnet.threads.count18 ± (17 - 18)18 ± (17 - 18)+0.1%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms186.17 ± (186.00 - 186.33) ms185.95 ± (185.76 - 186.14) ms-0.1%
process.time_to_main_ms71.13 ± (71.07 - 71.19) ms70.86 ± (70.80 - 70.93) ms-0.4%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.84 ± (11.74 - 11.94) MB11.95 ± (11.88 - 12.03) MB+0.9%✅⬆️
runtime.dotnet.threads.count18 ± (18 - 19)19 ± (18 - 19)+0.9%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms510.67 ± (507.98 - 513.36) ms506.79 ± (504.04 - 509.54) ms-0.8%
process.time_to_main_ms484.04 ± (483.41 - 484.67) ms484.43 ± (483.83 - 485.03) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed51.38 ± (51.35 - 51.42) MB51.44 ± (51.41 - 51.47) MB+0.1%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.0%
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 (8958) - mean (74ms)  : 70, 78
    master - mean (75ms)  : 70, 80

    section Bailout
    This PR (8958) - mean (77ms)  : 73, 81
    master - mean (80ms)  : 76, 85

    section CallTarget+Inlining+NGEN
    This PR (8958) - mean (1,096ms)  : 1028, 1163
    master - mean (1,090ms)  : 1049, 1132

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 (8958) - mean (112ms)  : 105, 119
    master - mean (114ms)  : 109, 119

    section Bailout
    This PR (8958) - mean (110ms)  : 107, 114
    master - mean (112ms)  : 109, 114

    section CallTarget+Inlining+NGEN
    This PR (8958) - mean (777ms)  : 754, 800
    master - mean (782ms)  : 760, 803

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

    section Bailout
    This PR (8958) - mean (98ms)  : 96, 100
    master - mean (103ms)  : 98, 108

    section CallTarget+Inlining+NGEN
    This PR (8958) - mean (944ms)  : 904, 983
    master - mean (943ms)  : 903, 984

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8958) - mean (96ms)  : 93, 99
    master - mean (96ms)  : 93, 99

    section Bailout
    This PR (8958) - mean (101ms)  : 96, 105
    master - mean (100ms)  : 95, 105

    section CallTarget+Inlining+NGEN
    This PR (8958) - mean (819ms)  : 784, 853
    master - mean (822ms)  : 786, 859

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 (8958) - mean (192ms)  : 188, 196
    master - mean (192ms)  : 188, 195

    section Bailout
    This PR (8958) - mean (195ms)  : 193, 197
    master - mean (195ms)  : 193, 197

    section CallTarget+Inlining+NGEN
    This PR (8958) - mean (1,172ms)  : 1129, 1214
    master - mean (1,170ms)  : 1129, 1211

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 (8958) - mean (273ms)  : 269, 277
    master - mean (272ms)  : 267, 278

    section Bailout
    This PR (8958) - mean (273ms)  : 271, 276
    master - mean (272ms)  : 269, 275

    section CallTarget+Inlining+NGEN
    This PR (8958) - mean (940ms)  : 926, 954
    master - mean (938ms)  : 919, 956

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8958) - mean (267ms)  : 265, 270
    master - mean (268ms)  : 263, 272

    section Bailout
    This PR (8958) - mean (267ms)  : 264, 270
    master - mean (267ms)  : 265, 270

    section CallTarget+Inlining+NGEN
    This PR (8958) - mean (1,141ms)  : 1081, 1202
    master - mean (1,143ms)  : 1096, 1191

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8958) - mean (265ms)  : 261, 270
    master - mean (267ms)  : 264, 270

    section Bailout
    This PR (8958) - mean (266ms)  : 264, 268
    master - mean (267ms)  : 265, 270

    section CallTarget+Inlining+NGEN
    This PR (8958) - mean (1,024ms)  : 982, 1065
    master - mean (1,025ms)  : 972, 1079

Loading

@pr-commenter

pr-commenter Bot commented Jul 29, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-30 09:17:41

Comparing candidate commit 30f4aba in PR branch dani/aap/fix_object_extractor_vuln with baseline commit 7bdf71e in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 63 known flaky benchmarks, 63 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.HttpClientBenchmark.SendAsync net472

  • 🟥 throughput [-6963.464op/s; -6420.857op/s] or [-7.949%; -7.330%]

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 [-9425.021op/s; -9023.508op/s] or [-11.175%; -10.699%]

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

  • 🟥 throughput [-10628.801op/s; -9185.844op/s] or [-10.807%; -9.340%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+302.098ms; +309.433ms] or [+149.912%; +153.551%]
  • 🟥 throughput [-46.619op/s; -43.051op/s] or [-8.388%; -7.746%]

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

  • 🟥 execution_time [+379.679ms; +382.214ms] or [+299.970%; +301.973%]
  • 🟩 throughput [+96.391op/s; +101.688op/s] or [+12.709%; +13.407%]

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

  • 🟥 execution_time [+395.262ms; +399.340ms] or [+349.792%; +353.401%]

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

  • 🟥 allocated_mem [+4.693KB; +4.694KB] or [+98.806%; +98.821%]
  • 🟥 throughput [-60509.604op/s; -60084.047op/s] or [-47.080%; -46.748%]

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

  • 🟥 allocated_mem [+3.816KB; +3.816KB] or [+80.699%; +80.711%]
  • 🟩 execution_time [-16.010ms; -11.840ms] or [-7.477%; -5.530%]
  • 🟥 throughput [-59888.957op/s; -57105.878op/s] or [-43.716%; -41.684%]

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

  • 🟥 allocated_mem [+4.544KB; +4.544KB] or [+98.261%; +98.274%]
  • 🟥 throughput [-48348.247op/s; -46099.913op/s] or [-43.712%; -41.680%]

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

  • 🟥 allocated_mem [+1.315KB; +1.315KB] or [+106.388%; +106.404%]
  • 🟥 throughput [-261009.488op/s; -257155.860op/s] or [-26.650%; -26.257%]

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

  • 🟥 allocated_mem [+479 bytes; +480 bytes] or [+39.212%; +39.221%]
  • 🟩 execution_time [-26.214ms; -21.360ms] or [-11.690%; -9.526%]
  • 🟥 throughput [-80924.428op/s; -56294.951op/s] or [-8.645%; -6.014%]

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

  • 🟥 allocated_mem [+1.280KB; +1.280KB] or [+105.947%; +105.963%]
  • 🟥 throughput [-154864.360op/s; -138491.801op/s] or [-22.251%; -19.899%]

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

  • 🟥 allocated_mem [+3.378KB; +3.378KB] or [+89.003%; +89.017%]
  • 🟥 throughput [-72596.621op/s; -71838.393op/s] or [-48.857%; -48.346%]

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

  • 🟥 allocated_mem [+3.336KB; +3.336KB] or [+88.150%; +88.161%]
  • 🟥 throughput [-73445.541op/s; -70564.870op/s] or [-46.732%; -44.899%]

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

  • 🟥 allocated_mem [+3.264KB; +3.264KB] or [+88.493%; +88.506%]
  • 🟥 throughput [-56175.779op/s; -53562.588op/s] or [-44.751%; -42.670%]

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

  • 🟩 throughput [+331823.104op/s; +344595.362op/s] or [+11.064%; +11.490%]

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

  • 🟩 execution_time [-17.293ms; -12.084ms] or [-7.972%; -5.570%]

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

  • 🟥 execution_time [+299.179ms; +300.351ms] or [+149.490%; +150.075%]

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

  • 🟥 execution_time [+298.957ms; +302.108ms] or [+150.765%; +152.354%]
  • 🟩 throughput [+668.282op/s; +883.195op/s] or [+5.111%; +6.755%]

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

  • 🟥 execution_time [+299.214ms; +303.014ms] or [+150.721%; +152.635%]

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

  • 🟥 execution_time [+299.184ms; +300.386ms] or [+146.947%; +147.538%]

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

  • 🟥 execution_time [+293.022ms; +295.994ms] or [+143.248%; +144.700%]

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

  • 🟥 execution_time [+300.305ms; +302.829ms] or [+150.092%; +151.354%]

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

  • 🟥 throughput [-238.639op/s; -115.720op/s] or [-10.375%; -5.031%]

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

  • 🟥 execution_time [+22.055µs; +45.722µs] or [+7.041%; +14.597%]
  • 🟥 throughput [-426.107op/s; -227.013op/s] or [-13.283%; -7.077%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.596ms; +300.352ms] or [+149.529%; +149.906%]

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

  • 🟥 execution_time [+412.902ms; +422.099ms] or [+448.635%; +458.628%]
  • 🟩 throughput [+810.636op/s; +1017.196op/s] or [+6.661%; +8.358%]

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

  • unstable execution_time [+322.425ms; +358.000ms] or [+244.814%; +271.826%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • unstable execution_time [+296.700ms; +368.304ms] or [+136.420%; +169.342%]
  • 🟥 throughput [-594.956op/s; -536.043op/s] or [-53.909%; -48.571%]

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

  • unstable execution_time [+199.265ms; +332.544ms] or [+84.918%; +141.716%]
  • 🟥 throughput [-677.856op/s; -594.071op/s] or [-45.213%; -39.625%]

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

  • 🟥 execution_time [+338.786ms; +354.835ms] or [+202.634%; +212.232%]
  • 🟥 throughput [-395.931op/s; -355.401op/s] or [-27.568%; -24.746%]

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

  • 🟩 execution_time [-146.438µs; -115.859µs] or [-7.418%; -5.869%]
  • 🟩 throughput [+32.279op/s; +40.700op/s] or [+6.372%; +8.034%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+299.250ms; +301.182ms] or [+150.697%; +151.670%]

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

  • 🟥 execution_time [+299.266ms; +308.737ms] or [+149.963%; +154.709%]

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

  • 🟥 execution_time [+301.829ms; +305.102ms] or [+151.626%; +153.270%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+297.678ms; +300.722ms] or [+149.484%; +151.013%]

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

  • 🟥 execution_time [+301.188ms; +304.338ms] or [+148.924%; +150.481%]

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

  • 🟥 execution_time [+301.569ms; +305.499ms] or [+152.849%; +154.840%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+300.690ms; +302.510ms] or [+150.919%; +151.833%]

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

  • 🟥 execution_time [+295.929ms; +299.857ms] or [+147.493%; +149.451%]
  • 🟩 throughput [+42910.321op/s; +55743.713op/s] or [+8.521%; +11.069%]

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

  • 🟥 execution_time [+300.114ms; +303.023ms] or [+149.304%; +150.751%]

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

  • 🟩 execution_time [-16.101ms; -12.447ms] or [-7.487%; -5.788%]

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

  • unstable execution_time [+17.746µs; +63.165µs] or [+4.383%; +15.602%]

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

  • 🟩 allocated_mem [-19.221KB; -19.199KB] or [-7.011%; -7.003%]
  • unstable execution_time [-22.849µs; +35.420µs] or [-4.516%; +7.001%]

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

  • unstable execution_time [-62.632µs; -2.781µs] or [-10.854%; -0.482%]

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

  • unstable execution_time [+7.256µs; +12.802µs] or [+17.152%; +30.261%]
  • 🟥 throughput [-5342.196op/s; -3289.666op/s] or [-22.489%; -13.848%]

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

  • unstable execution_time [-15.621µs; -8.317µs] or [-24.235%; -12.904%]
  • 🟩 throughput [+2159.022op/s; +3714.607op/s] or [+13.246%; +22.790%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.318ms; +302.498ms] or [+152.303%; +152.899%]

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

  • 🟥 execution_time [+301.894ms; +304.686ms] or [+153.663%; +155.084%]

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

  • 🟥 execution_time [+299.521ms; +301.859ms] or [+149.947%; +151.118%]

scenario:Benchmarks.Trace.RedisBenchmark.SendReceive net472

  • 🟥 throughput [-37558.845op/s; -33389.413op/s] or [-10.397%; -9.243%]

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

  • 🟩 throughput [+34772.839op/s; +37753.636op/s] or [+6.582%; +7.146%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+298.322ms; +300.313ms] or [+148.687%; +149.679%]

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

  • 🟥 execution_time [+302.345ms; +303.931ms] or [+151.823%; +152.620%]

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

  • 🟥 execution_time [+303.676ms; +306.266ms] or [+154.005%; +155.318%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.584ms; +300.432ms] or [+149.434%; +149.857%]
  • 🟩 throughput [+61146319.771op/s; +61494832.850op/s] or [+44.531%; +44.784%]

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

  • 🟥 execution_time [+420.148ms; +424.221ms] or [+522.529%; +527.594%]

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

  • 🟥 execution_time [+300.107ms; +301.181ms] or [+149.686%; +150.222%]

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

  • 🟩 throughput [+78485.976op/s; +88112.174op/s] or [+7.328%; +8.227%]

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

  • 🟩 throughput [+44258.183op/s; +64183.104op/s] or [+5.123%; +7.429%]

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

  • 🟩 throughput [+68748.338op/s; +98357.292op/s] or [+5.321%; +7.613%]

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

  • 🟩 throughput [+72504.909op/s; +82336.037op/s] or [+7.201%; +8.177%]

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

  • 🟩 throughput [+51664.545op/s; +55866.039op/s] or [+9.381%; +10.144%]

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

  • 🟩 throughput [+68013.737op/s; +87821.623op/s] or [+7.599%; +9.812%]

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.ObjectExtractorSimpleBody net472
  • scenario:Benchmarks.Trace.Asm.AppSecWafBenchmark.RunWafRealisticBenchmark net472
  • 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.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 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

@andrewlock andrewlock added AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos identified-by:ai labels Jul 30, 2026

@andrewlock andrewlock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread tracer/src/Datadog.Trace/AppSec/ObjectExtractor.cs Outdated
Comment thread tracer/src/Datadog.Trace/AppSec/ObjectExtractor.cs
Comment on lines +701 to +702
// Mirrors ExtractProperties: once the incremented depth reaches the limit, stop recursing
// into children instead of descending unbounded (which previously risked a stack overflow).

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.

Suggested change
// Mirrors ExtractProperties: once the incremented depth reaches the limit, stop recursing
// into children instead of descending unbounded (which previously risked a stack overflow).

Comment thread tracer/src/Datadog.Trace/AppSec/ObjectExtractor.cs Outdated
Comment thread tracer/test/Datadog.Trace.Security.Unit.Tests/ObjectExtractorTests.cs Outdated
dromanol and others added 3 commits July 30, 2026 10:25
Co-authored-by: Andrew Lock <andrew.lock@datadoghq.com>
Co-authored-by: Andrew Lock <andrew.lock@datadoghq.com>
@e-n-0

e-n-0 commented Jul 30, 2026

Copy link
Copy Markdown
Member

@codex review

@dromanol
dromanol enabled auto-merge (squash) July 30, 2026 09:33
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

Reviewed commit: 30f4aba960

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@dromanol
dromanol merged commit 938534c into master Jul 30, 2026
136 of 137 checks passed
@dromanol
dromanol deleted the dani/aap/fix_object_extractor_vuln branch July 30, 2026 09:50
@github-actions github-actions Bot added this to the vNext-v3 milestone Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos area:asm identified-by:ai

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants