Skip to content

[Debugger] Define debugger safety guidance#8817

Merged
dudikeleti merged 6 commits into
masterfrom
dudik/debugger-customer-code-execution-policy
Jul 1, 2026
Merged

[Debugger] Define debugger safety guidance#8817
dudikeleti merged 6 commits into
masterfrom
dudik/debugger-customer-code-execution-policy

Conversation

@dudikeleti

@dudikeleti dudikeleti commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

  • Add a single debugger safety boundaries guide covering reflection/type-loading risks and customer-code execution policy.
  • Make the safety guide visible from AGENTS.md so future agents and reviewers check it before changing debugger safety-sensitive paths.
  • Add focused snapshot tests for the current policy around default object getters, selected exception properties, and supported collection enumeration.

Reason for change

Define safety boundaries for debugger code running inside customer processes. Keeping the reflection audit, customer-code execution policy, and agent-facing guidance in one document gives reviewers one place to evaluate the current contract and the representative tests that lock it in.

Implementation details

This branch intentionally does not change capture behavior. The tests document that default object capture reads backing fields without invoking arbitrary getters, exception capture reads selected System.Exception properties, and supported collection serialization reads Count and enumerates under existing limits. The merged safety guide classifies related debugger reflection paths and defines when code may invoke getters, enumerators, exception overrides, attributes, or ToString().

Test coverage

  • DebuggerSnapshotCreatorTests.Policy_
  • DebuggerSnapshotCreatorTests

Related follow-up PRs:

@dudikeleti dudikeleti changed the title [Debugger] Define customer code execution policy [Debugger] Define debugger safety guidance Jun 22, 2026
@dudikeleti
dudikeleti requested a review from Copilot June 22, 2026 16:57

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

Defines and documents safety boundaries for Debugger/Dynamic Instrumentation reflection and capture paths (to avoid unintended customer-code execution/type loading), and adds targeted tests that lock in the current “default capture vs allowed execution” behavior.

Changes:

  • Added a “customer code execution” policy for snapshot capture and expression evaluation, clarifying what default capture must avoid and what specific features are allowed to execute (bounded) customer code.
  • Added a reflection/type-loading audit document that classifies common debugger reflection risks (early runtime resolution, .cctor triggering, customer code execution) and captures the current status of recent safety fixes.
  • Added focused snapshot tests that codify current behavior for default object capture (no arbitrary getters), exception property capture, and supported collection enumeration behavior.

Reviewed changes

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

File Description
tracer/test/Datadog.Trace.Tests/Debugger/DebuggerSnapshotCreatorTests.cs Adds regression tests for the current customer-code execution policy (getters, exception properties, collection enumeration/count).
docs/development/DebuggerReflectionLoadingAudit.md New audit doc classifying debugger reflection/loading risks and documenting current mitigations.
docs/development/DebuggerCustomerCodeExecutionPolicy.md New policy doc defining when debugger capture/expression paths may execute customer code vs must omit values with notCapturedReason.
AGENTS.md Exposes the new audit/policy docs to reviewers/agents as required pre-review guidance for safety-sensitive debugger changes.

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

@dd-trace-dotnet-ci-bot

dd-trace-dotnet-ci-bot Bot commented Jun 22, 2026

Copy link
Copy Markdown

Execution-Time Benchmarks Report ⏱️

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

✅ No regressions detected - check the details below

Full Metrics Comparison

FakeDbCommand

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration72.47 ± (72.35 - 72.84) ms72.31 ± (72.25 - 72.74) ms-0.2%
.NET Framework 4.8 - Bailout
duration75.00 ± (75.01 - 75.44) ms74.25 ± (74.23 - 74.59) ms-1.0%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1077.91 ± (1079.00 - 1085.06) ms1074.41 ± (1074.65 - 1080.68) ms-0.3%
.NET Core 3.1 - Baseline
process.internal_duration_ms22.46 ± (22.41 - 22.51) ms22.34 ± (22.29 - 22.39) ms-0.5%
process.time_to_main_ms82.69 ± (82.42 - 82.96) ms83.70 ± (83.40 - 84.00) ms+1.2%✅⬆️
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.10 ± (22.07 - 22.13) ms22.07 ± (22.04 - 22.10) ms-0.2%
process.time_to_main_ms82.07 ± (81.94 - 82.21) ms82.38 ± (82.23 - 82.52) ms+0.4%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.95 ± (10.95 - 10.96) MB10.96 ± (10.96 - 10.97) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms210.37 ± (209.57 - 211.18) ms210.60 ± (209.58 - 211.61) ms+0.1%✅⬆️
process.time_to_main_ms529.48 ± (528.23 - 530.73) ms532.63 ± (531.32 - 533.93) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.66 ± (48.62 - 48.69) MB48.72 ± (48.68 - 48.76) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.2%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms20.92 ± (20.88 - 20.95) ms20.94 ± (20.91 - 20.97) ms+0.1%✅⬆️
process.time_to_main_ms69.77 ± (69.65 - 69.89) ms70.39 ± (70.26 - 70.52) ms+0.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.62) MB10.64 ± (10.63 - 10.64) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms21.05 ± (21.01 - 21.09) ms20.84 ± (20.82 - 20.87) ms-1.0%
process.time_to_main_ms72.86 ± (72.60 - 73.13) ms71.16 ± (71.03 - 71.28) ms-2.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.72 ± (10.72 - 10.72) MB10.75 ± (10.75 - 10.75) MB+0.3%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms371.51 ± (369.42 - 373.59) ms373.17 ± (371.35 - 374.98) ms+0.4%✅⬆️
process.time_to_main_ms534.38 ± (533.31 - 535.44) ms536.22 ± (534.96 - 537.48) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed50.18 ± (50.16 - 50.20) MB50.10 ± (50.08 - 50.12) MB-0.2%
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms19.10 ± (19.06 - 19.13) ms19.49 ± (19.44 - 19.53) ms+2.1%✅⬆️
process.time_to_main_ms69.92 ± (69.71 - 70.13) ms72.40 ± (72.17 - 72.64) ms+3.6%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.68 ± (7.67 - 7.69) MB7.65 ± (7.65 - 7.66) MB-0.3%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms18.98 ± (18.96 - 19.01) ms19.25 ± (19.22 - 19.28) ms+1.4%✅⬆️
process.time_to_main_ms70.40 ± (70.28 - 70.51) ms71.73 ± (71.55 - 71.92) ms+1.9%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.74 ± (7.73 - 7.75) MB7.71 ± (7.71 - 7.72) MB-0.3%
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms300.04 ± (297.82 - 302.26) ms296.91 ± (294.58 - 299.24) ms-1.0%
process.time_to_main_ms485.15 ± (484.10 - 486.20) ms482.88 ± (481.91 - 483.85) ms-0.5%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed37.15 ± (37.12 - 37.17) MB37.18 ± (37.15 - 37.21) MB+0.1%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (27 - 27)-0.8%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration203.46 ± (203.06 - 204.03) ms202.55 ± (202.29 - 203.15) ms-0.4%
.NET Framework 4.8 - Bailout
duration207.42 ± (206.87 - 207.75) ms206.47 ± (205.86 - 206.87) ms-0.5%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1211.79 ± (1211.77 - 1217.11) ms1204.63 ± (1203.26 - 1208.58) ms-0.6%
.NET Core 3.1 - Baseline
process.internal_duration_ms196.00 ± (195.56 - 196.44) ms194.89 ± (194.43 - 195.34) ms-0.6%
process.time_to_main_ms85.11 ± (84.83 - 85.40) ms84.70 ± (84.45 - 84.94) ms-0.5%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.04 ± (16.02 - 16.06) MB16.08 ± (16.06 - 16.10) MB+0.2%✅⬆️
runtime.dotnet.threads.count20 ± (19 - 20)20 ± (20 - 20)+0.4%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms196.35 ± (195.86 - 196.84) ms194.34 ± (193.89 - 194.79) ms-1.0%
process.time_to_main_ms86.74 ± (86.48 - 87.01) ms86.01 ± (85.69 - 86.32) ms-0.9%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.06 ± (16.03 - 16.09) MB16.11 ± (16.09 - 16.13) MB+0.3%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (20 - 21)+0.0%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms389.43 ± (388.24 - 390.62) ms385.34 ± (384.06 - 386.63) ms-1.0%
process.time_to_main_ms543.69 ± (542.52 - 544.87) ms538.85 ± (537.31 - 540.40) ms-0.9%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.19 ± (57.97 - 58.42) MB57.39 ± (57.24 - 57.54) MB-1.4%
runtime.dotnet.threads.count30 ± (30 - 30)30 ± (30 - 30)-0.3%
.NET 6 - Baseline
process.internal_duration_ms201.56 ± (201.14 - 201.99) ms199.03 ± (198.57 - 199.48) ms-1.3%
process.time_to_main_ms74.40 ± (74.13 - 74.68) ms72.84 ± (72.61 - 73.06) ms-2.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.33 ± (16.30 - 16.35) MB16.41 ± (16.39 - 16.44) MB+0.5%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)-0.1%
.NET 6 - Bailout
process.internal_duration_ms199.63 ± (199.15 - 200.10) ms198.55 ± (198.10 - 198.99) ms-0.5%
process.time_to_main_ms74.66 ± (74.41 - 74.92) ms74.25 ± (74.00 - 74.51) ms-0.5%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.41 ± (16.39 - 16.44) MB16.46 ± (16.44 - 16.49) MB+0.3%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.3%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms585.28 ± (582.68 - 587.87) ms586.70 ± (584.29 - 589.11) ms+0.2%✅⬆️
process.time_to_main_ms555.35 ± (554.29 - 556.40) ms550.43 ± (549.39 - 551.46) ms-0.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed61.51 ± (61.41 - 61.60) MB61.55 ± (61.45 - 61.65) MB+0.1%✅⬆️
runtime.dotnet.threads.count31 ± (31 - 31)31 ± (31 - 31)-0.6%
.NET 8 - Baseline
process.internal_duration_ms198.10 ± (197.64 - 198.57) ms197.77 ± (197.40 - 198.14) ms-0.2%
process.time_to_main_ms73.03 ± (72.74 - 73.32) ms72.92 ± (72.67 - 73.18) ms-0.1%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.71 ± (11.70 - 11.73) MB11.71 ± (11.69 - 11.73) MB-0.0%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)-0.4%
.NET 8 - Bailout
process.internal_duration_ms197.45 ± (197.03 - 197.87) ms198.21 ± (197.81 - 198.61) ms+0.4%✅⬆️
process.time_to_main_ms73.77 ± (73.50 - 74.04) ms73.92 ± (73.70 - 74.14) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.78 ± (11.76 - 11.80) MB11.80 ± (11.78 - 11.82) MB+0.2%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (19 - 20)+1.5%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms508.85 ± (506.11 - 511.60) ms509.90 ± (507.27 - 512.53) ms+0.2%✅⬆️
process.time_to_main_ms499.08 ± (498.21 - 499.94) ms499.14 ± (498.42 - 499.87) ms+0.0%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed50.89 ± (50.85 - 50.94) MB50.95 ± (50.91 - 50.99) MB+0.1%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 30)29 ± (29 - 30)-0.1%
Comparison explanation

Execution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:

  • Welch test with statistical test for significance of 5%
  • Only results indicating a difference greater than 5% and 5 ms are considered.

Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard.

Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph).

Duration charts
FakeDbCommand (.NET Framework 4.8)
gantt
    title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8817) - mean (72ms)  : 69, 76
    master - mean (73ms)  : 69, 76

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

    section CallTarget+Inlining+NGEN
    This PR (8817) - mean (1,078ms)  : 1035, 1120
    master - mean (1,082ms)  : 1039, 1125

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 (8817) - mean (113ms)  : 106, 120
    master - mean (113ms)  : 107, 118

    section Bailout
    This PR (8817) - mean (111ms)  : 109, 113
    master - mean (111ms)  : 109, 112

    section CallTarget+Inlining+NGEN
    This PR (8817) - mean (779ms)  : 751, 807
    master - mean (777ms)  : 752, 801

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8817) - mean (97ms)  : 95, 100
    master - mean (96ms)  : 94, 99

    section Bailout
    This PR (8817) - mean (98ms)  : 96, 100
    master - mean (101ms)  : 95, 106

    section CallTarget+Inlining+NGEN
    This PR (8817) - mean (941ms)  : 899, 982
    master - mean (937ms)  : 894, 981

Loading
FakeDbCommand (.NET 8)
gantt
    title Execution time (ms) FakeDbCommand (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8817) - mean (100ms)  : 96, 105
    master - mean (96ms)  : 91, 102

    section Bailout
    This PR (8817) - mean (99ms)  : 94, 105
    master - mean (96ms)  : 94, 97

    section CallTarget+Inlining+NGEN
    This PR (8817) - mean (811ms)  : 779, 842
    master - mean (814ms)  : 777, 851

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 (8817) - mean (203ms)  : 198, 208
    master - mean (204ms)  : 198, 209

    section Bailout
    This PR (8817) - mean (206ms)  : 201, 212
    master - mean (207ms)  : 203, 212

    section CallTarget+Inlining+NGEN
    This PR (8817) - mean (1,206ms)  : 1169, 1243
    master - mean (1,214ms)  : 1180, 1249

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 (8817) - mean (290ms)  : 284, 295
    master - mean (291ms)  : 283, 300

    section Bailout
    This PR (8817) - mean (290ms)  : 284, 296
    master - mean (293ms)  : 285, 300

    section CallTarget+Inlining+NGEN
    This PR (8817) - mean (965ms)  : 942, 987
    master - mean (976ms)  : 955, 997

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8817) - mean (281ms)  : 274, 288
    master - mean (286ms)  : 280, 292

    section Bailout
    This PR (8817) - mean (282ms)  : 276, 288
    master - mean (284ms)  : 276, 291

    section CallTarget+Inlining+NGEN
    This PR (8817) - mean (1,168ms)  : 1127, 1210
    master - mean (1,172ms)  : 1121, 1223

Loading
HttpMessageHandler (.NET 8)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 8)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (8817) - mean (281ms)  : 276, 286
    master - mean (282ms)  : 276, 288

    section Bailout
    This PR (8817) - mean (282ms)  : 277, 287
    master - mean (281ms)  : 276, 287

    section CallTarget+Inlining+NGEN
    This PR (8817) - mean (1,042ms)  : 1002, 1081
    master - mean (1,042ms)  : 991, 1092

Loading

@pr-commenter

pr-commenter Bot commented Jun 22, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-06-23 11:32:02

Comparing candidate commit f8b703e in PR branch dudik/debugger-customer-code-execution-policy with baseline commit 44c1f80 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 2 performance regressions! Performance is the same for 70 metrics, 0 unstable metrics, 61 known flaky benchmarks, 65 flaky benchmarks without significant changes.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartActiveSpan netcoreapp3.1

  • 🟥 throughput [-31133.072op/s; -20387.774op/s] or [-14.575%; -9.544%]

scenario:Benchmarks.OpenTelemetry.InstrumentedApi.Trace.TracerBenchmark.StartRootSpan netcoreapp3.1

  • 🟥 throughput [-35665.214op/s; -22148.034op/s] or [-16.692%; -10.365%]

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

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

  • 🟥 throughput [-30290.830op/s; -15964.959op/s] or [-13.759%; -7.252%]

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

  • 🟥 throughput [-30506.296op/s; -12105.012op/s] or [-13.529%; -5.368%]

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

  • 🟥 throughput [-24553.474op/s; -11637.272op/s] or [-11.474%; -5.438%]

scenario:Benchmarks.Trace.ActivityBenchmark.StartStopWithChild net472

  • 🟥 throughput [-6187.231op/s; -5766.688op/s] or [-7.336%; -6.838%]

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

  • 🟥 throughput [-7375.662op/s; -6215.474op/s] or [-7.499%; -6.320%]

scenario:Benchmarks.Trace.AgentWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 execution_time [+298.287ms; +299.921ms] or [+148.021%; +148.831%]
  • 🟥 throughput [-46.253op/s; -42.611op/s] or [-8.322%; -7.667%]

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

  • 🟥 execution_time [+376.641ms; +379.398ms] or [+297.570%; +299.748%]
  • 🟩 throughput [+82.117op/s; +87.787op/s] or [+10.827%; +11.574%]

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

  • 🟥 execution_time [+392.551ms; +394.909ms] or [+347.393%; +349.479%]

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 [-16.329ms; -12.115ms] or [-7.626%; -5.658%]
  • 🟩 throughput [+7300.439op/s; +10148.088op/s] or [+5.329%; +7.408%]

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 [-275262.529op/s; -271096.311op/s] or [-28.106%; -27.680%]

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

  • 🟥 allocated_mem [+471 bytes; +472 bytes] or [+38.557%; +38.566%]
  • 🟩 execution_time [-25.958ms; -21.098ms] or [-11.576%; -9.409%]

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

  • 🟥 allocated_mem [+1.272KB; +1.272KB] or [+105.288%; +105.304%]
  • 🟥 throughput [-162441.396op/s; -145125.533op/s] or [-23.340%; -20.852%]

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

  • 🟩 throughput [+9697.001op/s; +12598.681op/s] or [+6.170%; +8.016%]

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

  • 🟩 throughput [+8741.631op/s; +11428.216op/s] or [+6.964%; +9.104%]

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

  • 🟩 throughput [+420048.275op/s; +457452.372op/s] or [+14.006%; +15.253%]

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

  • 🟩 execution_time [-19.187ms; -14.850ms] or [-8.845%; -6.845%]
  • 🟩 throughput [+181837.653op/s; +238800.176op/s] or [+7.218%; +9.479%]

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

  • 🟥 execution_time [+299.291ms; +300.236ms] or [+149.545%; +150.018%]

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

  • 🟥 execution_time [+296.635ms; +314.437ms] or [+149.594%; +158.571%]

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

  • 🟥 execution_time [+299.595ms; +302.517ms] or [+150.913%; +152.384%]

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

  • 🟥 execution_time [+296.680ms; +297.681ms] or [+145.717%; +146.209%]

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

  • 🟥 execution_time [+295.546ms; +299.857ms] or [+144.482%; +146.589%]

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

  • 🟥 execution_time [+300.239ms; +301.566ms] or [+150.059%; +150.722%]

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

  • 🟥 execution_time [+21.174µs; +44.792µs] or [+6.760%; +14.300%]
  • 🟥 throughput [-418.562op/s; -219.801op/s] or [-13.048%; -6.852%]

scenario:Benchmarks.Trace.AspNetCoreBenchmark.SendRequest net472

  • 🟥 execution_time [+299.844ms; +300.701ms] or [+149.653%; +150.080%]

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

  • 🟥 execution_time [+416.659ms; +422.414ms] or [+452.717%; +458.970%]
  • 🟩 throughput [+832.977op/s; +993.299op/s] or [+6.845%; +8.162%]

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

  • unstable execution_time [+293.327ms; +347.278ms] or [+222.721%; +263.685%]

scenario:Benchmarks.Trace.CIVisibilityProtocolWriterBenchmark.WriteAndFlushEnrichedTraces net472

  • 🟥 allocated_mem [+2.885KB; +2.891KB] or [+5.126%; +5.136%]
  • unstable execution_time [+239.243ms; +293.976ms] or [+110.002%; +135.167%]
  • 🟥 throughput [-570.213op/s; -510.802op/s] or [-51.667%; -46.284%]

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

  • unstable execution_time [+210.528ms; +343.791ms] or [+89.718%; +146.509%]
  • 🟥 throughput [-678.194op/s; -594.650op/s] or [-45.236%; -39.663%]

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

  • 🟥 allocated_mem [+2.228KB; +2.231KB] or [+5.260%; +5.269%]
  • 🟥 execution_time [+341.764ms; +350.792ms] or [+204.415%; +209.815%]
  • 🟥 throughput [-413.556op/s; -376.565op/s] or [-28.795%; -26.220%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearch net472

  • 🟥 execution_time [+304.213ms; +306.313ms] or [+153.196%; +154.254%]

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

  • 🟥 execution_time [+301.132ms; +303.353ms] or [+150.898%; +152.011%]
  • 🟩 throughput [+31717.966op/s; +39438.767op/s] or [+5.001%; +6.218%]

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

  • 🟥 execution_time [+302.418ms; +306.021ms] or [+151.922%; +153.732%]

scenario:Benchmarks.Trace.ElasticsearchBenchmark.CallElasticsearchAsync net472

  • 🟥 execution_time [+302.397ms; +305.346ms] or [+151.853%; +153.334%]

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

  • 🟥 execution_time [+299.208ms; +301.056ms] or [+147.945%; +148.859%]

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

  • 🟥 execution_time [+300.367ms; +304.089ms] or [+152.239%; +154.126%]

scenario:Benchmarks.Trace.GraphQLBenchmark.ExecuteAsync net472

  • 🟥 execution_time [+300.199ms; +301.767ms] or [+150.673%; +151.460%]

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

  • 🟥 execution_time [+299.813ms; +313.512ms] or [+149.429%; +156.257%]
  • 🟩 throughput [+39253.110op/s; +52228.728op/s] or [+7.794%; +10.371%]

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

  • 🟥 execution_time [+298.705ms; +301.883ms] or [+148.603%; +150.184%]

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

  • 🟩 execution_time [-16.712ms; -13.065ms] or [-7.771%; -6.075%]

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

  • unstable execution_time [+5.438µs; +49.277µs] or [+1.343%; +12.172%]

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

  • 🟩 allocated_mem [-19.186KB; -19.164KB] or [-6.999%; -6.991%]
  • unstable execution_time [-24.410µs; +35.409µs] or [-4.824%; +6.998%]
  • unstable throughput [-122.735op/s; +82.140op/s] or [-6.125%; +4.099%]

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

  • 🟩 allocated_mem [-15.277KB; -15.260KB] or [-5.569%; -5.563%]
  • unstable execution_time [-37.157µs; +24.060µs] or [-6.439%; +4.169%]

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

  • unstable execution_time [+7.002µs; +11.461µs] or [+16.551%; +27.089%]
  • 🟥 throughput [-5120.781op/s; -3261.318op/s] or [-21.557%; -13.729%]

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

  • unstable execution_time [-13.138µs; -4.924µs] or [-20.383%; -7.640%]
  • unstable throughput [+1214.399op/s; +2965.979op/s] or [+7.451%; +18.197%]

scenario:Benchmarks.Trace.Log4netBenchmark.EnrichedLog net472

  • 🟥 execution_time [+301.781ms; +303.616ms] or [+152.537%; +153.464%]

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

  • 🟥 execution_time [+304.133ms; +308.031ms] or [+154.803%; +156.787%]

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

  • 🟥 execution_time [+299.122ms; +302.146ms] or [+149.747%; +151.262%]

scenario:Benchmarks.Trace.SerilogBenchmark.EnrichedLog net472

  • 🟥 execution_time [+298.984ms; +301.719ms] or [+149.017%; +150.380%]

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

  • 🟥 execution_time [+298.530ms; +302.414ms] or [+149.907%; +151.858%]

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

  • 🟥 execution_time [+301.309ms; +303.781ms] or [+152.805%; +154.058%]

scenario:Benchmarks.Trace.SingleSpanAspNetCoreBenchmark.SingleSpanAspNetCore net472

  • 🟥 execution_time [+299.550ms; +300.409ms] or [+149.417%; +149.845%]
  • 🟩 throughput [+65854784.535op/s; +66198504.123op/s] or [+47.960%; +48.210%]

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

  • unstable execution_time [+344.558ms; +401.538ms] or [+428.520%; +499.385%]

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

  • 🟥 execution_time [+299.867ms; +300.909ms] or [+149.567%; +150.087%]
  • 🟩 throughput [+14180488.778op/s; +17323970.339op/s] or [+6.281%; +7.673%]

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

  • 🟩 throughput [+84803.928op/s; +92487.066op/s] or [+7.918%; +8.635%]

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

  • 🟩 throughput [+57728.769op/s; +77226.015op/s] or [+6.682%; +8.939%]

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

  • 🟩 throughput [+83490.524op/s; +90662.489op/s] or [+8.292%; +9.004%]

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

  • 🟩 throughput [+42869.196op/s; +49274.314op/s] or [+7.784%; +8.947%]

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

  • 🟩 throughput [+27081.806op/s; +36836.206op/s] or [+6.062%; +8.245%]

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

  • 🟩 throughput [+75501.829op/s; +94894.613op/s] or [+8.435%; +10.602%]

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

@dudikeleti
dudikeleti requested a review from jpbempel June 23, 2026 08:59
@dudikeleti
dudikeleti marked this pull request as ready for review June 23, 2026 08:59
@dudikeleti
dudikeleti requested review from a team as code owners June 23, 2026 08:59

@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: 1ec21854b4

ℹ️ 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 docs/development/DebuggerSafetyBoundaries.md Outdated
Comment thread tracer/test/Datadog.Trace.Tests/Debugger/DebuggerSnapshotCreatorTests.cs Outdated
Comment thread docs/development/DebuggerSafetyBoundaries.md Outdated
dudikeleti and others added 5 commits June 23, 2026 12:19
Document which debugger capture paths may execute customer code and add focused tests for current getter, exception, and collection capture behavior.

Co-authored-by: Cursor <[email protected]>
Classify debugger reflection-loading risks and link the child PRs that address static member capture, IL token resolution, state-machine attributes, and customer-code execution policy.

Co-authored-by: Cursor <[email protected]>
@dudikeleti
dudikeleti force-pushed the dudik/debugger-customer-code-execution-policy branch from 1ec2185 to 83db310 Compare June 23, 2026 10:35

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

@dudikeleti
dudikeleti merged commit 813689f into master Jul 1, 2026
143 checks passed
@dudikeleti
dudikeleti deleted the dudik/debugger-customer-code-execution-policy branch July 1, 2026 14:59
@github-actions github-actions Bot added this to the vNext-v3 milestone Jul 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.

4 participants