Skip to content

[Dynamic Instrumentation] DEBUG-4877 Stabilize snapshot serializer#7989

Merged
dudikeleti merged 1 commit intomasterfrom
dudik/snapshot-serializer-fix
Jan 21, 2026
Merged

[Dynamic Instrumentation] DEBUG-4877 Stabilize snapshot serializer#7989
dudikeleti merged 1 commit intomasterfrom
dudik/snapshot-serializer-fix

Conversation

@dudikeleti
Copy link
Contributor

@dudikeleti dudikeleti commented Dec 20, 2025

Summary of changes

Add defensive checks for open nodes before closing them, and delay writing noCaptureReason until we are certain that the array node is closed.

Test coverage

#7987

Other details

This PR is part of an effort to make the Snapshot Exploration Test run successfully end-to-end.

Related PRs:
#7986
#7988

@dudikeleti dudikeleti requested a review from a team as a code owner December 20, 2025 12:34
@github-actions github-actions bot added area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations) area:debugger labels Dec 20, 2025
@dudikeleti dudikeleti changed the title stabilize snapshot serializer [Dynamic Instrumentation] DEBUG-4877 stabilize snapshot serializer Dec 20, 2025
@dudikeleti dudikeleti changed the title [Dynamic Instrumentation] DEBUG-4877 stabilize snapshot serializer [Dynamic Instrumentation] DEBUG-4877 Stabilize snapshot serializer Dec 20, 2025
@pr-commenter
Copy link

pr-commenter bot commented Dec 20, 2025

Benchmarks

Benchmark execution time: 2025-12-20 13:34:57

Comparing candidate commit 8137222 in PR branch dudik/snapshot-serializer-fix with baseline commit b1bc5a1 in branch master.

Found 7 performance improvements and 3 performance regressions! Performance is the same for 156 metrics, 20 unstable metrics.

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

  • 🟩 execution_time [-20.093ms; -13.946ms] or [-9.640%; -6.691%]

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

  • 🟩 execution_time [-19.431ms; -15.547ms] or [-8.971%; -7.178%]

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

  • 🟩 execution_time [-17.741ms; -12.677ms] or [-8.480%; -6.060%]

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

  • 🟥 execution_time [+13.570ms; +19.588ms] or [+6.784%; +9.793%]

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

  • 🟩 execution_time [-155.390µs; -146.850µs] or [-10.206%; -9.645%]
  • 🟩 throughput [+70.394op/s; +74.334op/s] or [+10.718%; +11.318%]

scenario:Benchmarks.Trace.DbCommandBenchmark.ExecuteNonQuery net6.0

  • 🟩 throughput [+27435.076op/s; +45408.549op/s] or [+5.392%; +8.924%]

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

  • 🟩 throughput [+11471.031op/s; +14382.603op/s] or [+6.995%; +8.770%]

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

  • 🟥 execution_time [+15.486ms; +21.337ms] or [+7.820%; +10.775%]

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

  • 🟥 execution_time [+11.732ms; +15.599ms] or [+5.962%; +7.928%]

@dudikeleti dudikeleti force-pushed the dudik/snapshot-serializer-fix branch from 8137222 to 3f7c97e Compare January 21, 2026 08:50
@dd-trace-dotnet-ci-bot
Copy link

Execution-Time Benchmarks Report ⏱️

Execution-time results for samples comparing This PR (7989) 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
duration68.36 ± (68.34 - 68.60) ms68.43 ± (68.49 - 68.86) ms+0.1%✅⬆️
.NET Framework 4.8 - Bailout
duration72.48 ± (72.42 - 72.62) ms72.23 ± (72.17 - 72.39) ms-0.4%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1000.21 ± (1003.58 - 1011.08) ms1004.96 ± (1009.64 - 1019.73) ms+0.5%✅⬆️
.NET Core 3.1 - Baseline
process.internal_duration_ms21.84 ± (21.81 - 21.87) ms21.79 ± (21.76 - 21.82) ms-0.2%
process.time_to_main_ms79.03 ± (78.87 - 79.19) ms78.78 ± (78.65 - 78.91) ms-0.3%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.89 ± (10.89 - 10.90) MB10.91 ± (10.91 - 10.92) MB+0.2%✅⬆️
runtime.dotnet.threads.count12 ± (12 - 12)12 ± (12 - 12)+0.0%
.NET Core 3.1 - Bailout
process.internal_duration_ms21.72 ± (21.69 - 21.74) ms21.79 ± (21.76 - 21.82) ms+0.3%✅⬆️
process.time_to_main_ms80.00 ± (79.89 - 80.10) ms79.92 ± (79.81 - 80.03) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.94 ± (10.93 - 10.94) MB10.94 ± (10.94 - 10.95) MB+0.1%✅⬆️
runtime.dotnet.threads.count13 ± (13 - 13)13 ± (13 - 13)+0.0%
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms241.65 ± (238.02 - 245.28) ms251.61 ± (248.69 - 254.54) ms+4.1%✅⬆️
process.time_to_main_ms470.24 ± (469.67 - 470.82) ms471.53 ± (471.02 - 472.05) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed48.36 ± (48.34 - 48.39) MB48.41 ± (48.39 - 48.44) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)-0.0%
.NET 6 - Baseline
process.internal_duration_ms20.65 ± (20.62 - 20.68) ms20.69 ± (20.66 - 20.71) ms+0.2%✅⬆️
process.time_to_main_ms68.41 ± (68.29 - 68.54) ms68.56 ± (68.42 - 68.70) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.62 ± (10.62 - 10.62) MB10.63 ± (10.62 - 10.63) MB+0.1%✅⬆️
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 6 - Bailout
process.internal_duration_ms20.55 ± (20.53 - 20.58) ms20.67 ± (20.64 - 20.69) ms+0.6%✅⬆️
process.time_to_main_ms69.48 ± (69.43 - 69.54) ms69.42 ± (69.35 - 69.48) ms-0.1%
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed10.67 ± (10.66 - 10.67) MB10.75 ± (10.73 - 10.77) MB+0.8%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms245.48 ± (243.13 - 247.83) ms247.51 ± (245.10 - 249.92) ms+0.8%✅⬆️
process.time_to_main_ms447.38 ± (446.91 - 447.85) ms448.87 ± (448.38 - 449.36) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed49.12 ± (49.09 - 49.16) MB49.15 ± (49.13 - 49.18) MB+0.1%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 28)28 ± (28 - 28)+0.1%✅⬆️
.NET 8 - Baseline
process.internal_duration_ms18.80 ± (18.78 - 18.82) ms18.85 ± (18.82 - 18.89) ms+0.3%✅⬆️
process.time_to_main_ms67.32 ± (67.24 - 67.40) ms67.36 ± (67.24 - 67.48) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.69 ± (7.69 - 7.70) MB7.66 ± (7.66 - 7.67) MB-0.4%
runtime.dotnet.threads.count10 ± (10 - 10)10 ± (10 - 10)+0.0%
.NET 8 - Bailout
process.internal_duration_ms18.82 ± (18.79 - 18.85) ms18.83 ± (18.80 - 18.85) ms+0.1%✅⬆️
process.time_to_main_ms68.54 ± (68.48 - 68.61) ms68.63 ± (68.55 - 68.71) ms+0.1%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed7.73 ± (7.72 - 7.74) MB7.74 ± (7.73 - 7.75) MB+0.1%✅⬆️
runtime.dotnet.threads.count11 ± (11 - 11)11 ± (11 - 11)+0.0%
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms177.68 ± (176.60 - 178.75) ms177.61 ± (176.68 - 178.54) ms-0.0%
process.time_to_main_ms429.61 ± (428.98 - 430.24) ms430.38 ± (429.68 - 431.07) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count0 ± (0 - 0)0 ± (0 - 0)+0.0%
runtime.dotnet.mem.committed36.54 ± (36.50 - 36.57) MB36.59 ± (36.56 - 36.61) MB+0.1%✅⬆️
runtime.dotnet.threads.count27 ± (27 - 27)27 ± (26 - 27)-0.6%

HttpMessageHandler

Metric Master (Mean ± 95% CI) Current (Mean ± 95% CI) Change Status
.NET Framework 4.8 - Baseline
duration193.98 ± (193.69 - 194.50) ms194.13 ± (194.19 - 195.00) ms+0.1%✅⬆️
.NET Framework 4.8 - Bailout
duration197.46 ± (197.43 - 198.17) ms196.88 ± (196.61 - 197.17) ms-0.3%
.NET Framework 4.8 - CallTarget+Inlining+NGEN
duration1132.20 ± (1134.42 - 1146.49) ms1121.04 ± (1121.82 - 1130.03) ms-1.0%
.NET Core 3.1 - Baseline
process.internal_duration_ms188.12 ± (187.76 - 188.48) ms187.64 ± (187.23 - 188.04) ms-0.3%
process.time_to_main_ms81.04 ± (80.81 - 81.27) ms81.19 ± (80.98 - 81.40) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.01 ± (15.98 - 16.03) MB16.09 ± (16.06 - 16.12) MB+0.5%✅⬆️
runtime.dotnet.threads.count20 ± (20 - 20)20 ± (20 - 20)+0.0%✅⬆️
.NET Core 3.1 - Bailout
process.internal_duration_ms187.25 ± (186.99 - 187.51) ms188.04 ± (187.61 - 188.47) ms+0.4%✅⬆️
process.time_to_main_ms82.51 ± (82.35 - 82.67) ms82.97 ± (82.78 - 83.16) ms+0.6%✅⬆️
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed16.11 ± (16.08 - 16.13) MB16.13 ± (16.09 - 16.16) MB+0.1%✅⬆️
runtime.dotnet.threads.count21 ± (20 - 21)21 ± (21 - 21)+0.6%✅⬆️
.NET Core 3.1 - CallTarget+Inlining+NGEN
process.internal_duration_ms436.39 ± (433.70 - 439.09) ms430.07 ± (427.69 - 432.45) ms-1.4%
process.time_to_main_ms474.52 ± (473.91 - 475.12) ms473.42 ± (472.82 - 474.01) ms-0.2%
runtime.dotnet.exceptions.count3 ± (3 - 3)3 ± (3 - 3)+0.0%
runtime.dotnet.mem.committed58.70 ± (58.59 - 58.81) MB58.92 ± (58.81 - 59.03) MB+0.4%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 30)+0.1%✅⬆️
.NET 6 - Baseline
process.internal_duration_ms192.93 ± (192.50 - 193.37) ms192.53 ± (192.14 - 192.92) ms-0.2%
process.time_to_main_ms70.68 ± (70.48 - 70.89) ms70.01 ± (69.82 - 70.20) ms-0.9%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.27 ± (16.18 - 16.36) MB16.00 ± (15.85 - 16.14) MB-1.7%
runtime.dotnet.threads.count19 ± (19 - 19)18 ± (18 - 18)-3.4%
.NET 6 - Bailout
process.internal_duration_ms190.59 ± (190.26 - 190.93) ms191.26 ± (190.94 - 191.58) ms+0.3%✅⬆️
process.time_to_main_ms71.21 ± (71.08 - 71.33) ms70.77 ± (70.66 - 70.88) ms-0.6%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed16.15 ± (16.01 - 16.30) MB16.14 ± (16.00 - 16.28) MB-0.1%
runtime.dotnet.threads.count19 ± (19 - 19)20 ± (20 - 20)+2.8%✅⬆️
.NET 6 - CallTarget+Inlining+NGEN
process.internal_duration_ms447.32 ± (444.16 - 450.49) ms443.27 ± (440.25 - 446.29) ms-0.9%
process.time_to_main_ms452.86 ± (452.20 - 453.52) ms451.48 ± (450.95 - 452.01) ms-0.3%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed58.62 ± (58.50 - 58.73) MB59.10 ± (58.98 - 59.22) MB+0.8%✅⬆️
runtime.dotnet.threads.count29 ± (29 - 29)29 ± (29 - 29)-0.2%
.NET 8 - Baseline
process.internal_duration_ms190.36 ± (189.97 - 190.76) ms189.65 ± (189.33 - 189.97) ms-0.4%
process.time_to_main_ms70.10 ± (69.90 - 70.30) ms69.55 ± (69.32 - 69.78) ms-0.8%
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.75 ± (11.73 - 11.78) MB11.75 ± (11.72 - 11.79) MB-0.0%
runtime.dotnet.threads.count18 ± (18 - 18)18 ± (18 - 18)+0.3%✅⬆️
.NET 8 - Bailout
process.internal_duration_ms189.68 ± (189.41 - 189.95) ms189.30 ± (189.10 - 189.50) ms-0.2%
process.time_to_main_ms70.84 ± (70.74 - 70.95) ms71.06 ± (70.94 - 71.17) ms+0.3%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed11.79 ± (11.75 - 11.83) MB11.83 ± (11.80 - 11.86) MB+0.3%✅⬆️
runtime.dotnet.threads.count19 ± (19 - 19)19 ± (19 - 19)+0.3%✅⬆️
.NET 8 - CallTarget+Inlining+NGEN
process.internal_duration_ms368.69 ± (367.23 - 370.16) ms368.16 ± (366.71 - 369.61) ms-0.1%
process.time_to_main_ms435.23 ± (434.58 - 435.88) ms436.01 ± (435.41 - 436.61) ms+0.2%✅⬆️
runtime.dotnet.exceptions.count4 ± (4 - 4)4 ± (4 - 4)+0.0%
runtime.dotnet.mem.committed48.20 ± (48.16 - 48.25) MB48.20 ± (48.17 - 48.24) MB+0.0%✅⬆️
runtime.dotnet.threads.count28 ± (28 - 29)29 ± (29 - 29)+0.7%✅⬆️
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 (7989) - mean (69ms)  : 66, 71
    master - mean (68ms)  : 67, 70

    section Bailout
    This PR (7989) - mean (72ms)  : 71, 73
    master - mean (73ms)  : 72, 73

    section CallTarget+Inlining+NGEN
    This PR (7989) - mean (1,015ms)  : 942, 1087
    master - mean (1,007ms)  : 954, 1061

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 (7989) - mean (106ms)  : 103, 109
    master - mean (106ms)  : 103, 109

    section Bailout
    This PR (7989) - mean (107ms)  : 106, 108
    master - mean (107ms)  : 106, 108

    section CallTarget+Inlining+NGEN
    This PR (7989) - mean (748ms)  : 700, 795
    master - mean (736ms)  : 673, 799

Loading
FakeDbCommand (.NET 6)
gantt
    title Execution time (ms) FakeDbCommand (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7989) - mean (94ms)  : 92, 97
    master - mean (94ms)  : 91, 97

    section Bailout
    This PR (7989) - mean (95ms)  : 94, 96
    master - mean (95ms)  : 94, 96

    section CallTarget+Inlining+NGEN
    This PR (7989) - mean (716ms)  : 665, 768
    master - mean (715ms)  : 669, 761

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

    section Bailout
    This PR (7989) - mean (93ms)  : 92, 95
    master - mean (93ms)  : 92, 95

    section CallTarget+Inlining+NGEN
    This PR (7989) - mean (635ms)  : 621, 648
    master - mean (634ms)  : 621, 647

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 (7989) - mean (195ms)  : 190, 200
    master - mean (194ms)  : 190, 198

    section Bailout
    This PR (7989) - mean (197ms)  : 194, 200
    master - mean (198ms)  : 194, 201

    section CallTarget+Inlining+NGEN
    This PR (7989) - mean (1,126ms)  : 1067, 1185
    master - mean (1,140ms)  : 1048, 1233

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 (7989) - mean (278ms)  : 272, 283
    master - mean (278ms)  : 272, 284

    section Bailout
    This PR (7989) - mean (279ms)  : 273, 286
    master - mean (278ms)  : 275, 281

    section CallTarget+Inlining+NGEN
    This PR (7989) - mean (931ms)  : 892, 971
    master - mean (939ms)  : 904, 975

Loading
HttpMessageHandler (.NET 6)
gantt
    title Execution time (ms) HttpMessageHandler (.NET 6)
    dateFormat  x
    axisFormat %Q
    todayMarker off
    section Baseline
    This PR (7989) - mean (271ms)  : 266, 276
    master - mean (272ms)  : 265, 280

    section Bailout
    This PR (7989) - mean (270ms)  : 266, 274
    master - mean (270ms)  : 266, 274

    section CallTarget+Inlining+NGEN
    This PR (7989) - mean (924ms)  : 881, 968
    master - mean (929ms)  : 879, 980

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

    section Bailout
    This PR (7989) - mean (270ms)  : 266, 275
    master - mean (270ms)  : 266, 274

    section CallTarget+Inlining+NGEN
    This PR (7989) - mean (835ms)  : 813, 857
    master - mean (836ms)  : 817, 854

Loading

@dudikeleti dudikeleti enabled auto-merge (squash) January 21, 2026 11:27
dudikeleti added a commit that referenced this pull request Jan 21, 2026
## Reason for change
In some cases, we cannot rely on the method metadata to determine
whether method arguments and locals exist, as they may still be skipped.

## Implementation details
Track open nodes and open/close them as required.

## Test coverage
#7987

## Other details
This PR is part of an effort to make the Snapshot Exploration Test run
successfully end-to-end.
#7986
#7989
@dudikeleti dudikeleti merged commit 7b09378 into master Jan 21, 2026
153 of 154 checks passed
@dudikeleti dudikeleti deleted the dudik/snapshot-serializer-fix branch January 21, 2026 13:30
@github-actions github-actions bot added this to the vNext-v3 milestone Jan 21, 2026
dudikeleti added a commit that referenced this pull request Jan 21, 2026
…l and LogArg to detect null byrefs (#7986)

## Reason for change
Some methods can legitimately produce null managed byrefs (e.g.,
MemoryMarshal.GetReference(emptySpan)), which makes ref T point to
address 0. Attempting to capture such locals/args would dereference an
invalid reference and could crash in LogLocal/LogArg
(NullReferenceException). This change makes DI runs stable and keeps
probes installed while avoiding unsafe dereferences

## Implementation details
Before reading a ref T capture input, we check Unsafe.IsNullRef(ref
value) and return early to avoid dereferencing an invalid reference.

Current behavior is to skip capturing that member entirely (no
misleading null value for non-nullable types like byte).
Follow-up option: if we decide we want the snapshot to explicitly show
this case, we can reuse the existing snapshot notCapturedReason
mechanism (no new reason added in this PR).

## Test coverage
#7987

## Other details
This PR is part of an effort to make the Snapshot Exploration Test run
successfully end-to-end.
#7988
#7989
dudikeleti added a commit that referenced this pull request Jan 21, 2026
## Summary of changes
Add a new test that uncovers two bugs:

1. When a null address is passed into our instrumentation code.
2. When locals or arguments exist but are skipped, resulting in an
invalid JSON structure.

## Implementation details
When a null address is passed to our debugger invoker classes, it must
be handled explicitly by checking `Unsafe.IsNullRef`.

## Other details
The test is currently skipped and will be enabled once the following PRs
are merged:
#7986
#7988
#7989
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:debugger area:tracer The core tracer library (Datadog.Trace, does not include OpenTracing, native code, or integrations)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants