fix(tracing): SpanStack::$active unset corruption#3962
Conversation
|
Benchmarks [ tracer ]Benchmark execution time: 2026-06-08 12:21:15 Comparing candidate commit 309db71 in PR branch Found 0 performance improvements and 2 performance regressions! Performance is the same for 190 metrics, 2 unstable metrics.
|
Co-authored-by: Bob Weinand <bob.weinand@datadoghq.com>
Description
Both
activeandparentare supposed to be protected, but the handlers are currently a bit patchy. This adds a .phpt for unset specifically and makes the handlers more consistent with each other.We're still seeing crashes in
ddtrace_inherit_span_properties, so I'm continuing to spend time with AI agents to try and diagnose and fix them. The last batch had technical but unlikely fixes. This PR continues in that vein, but it does seem a little bit more likely that it might help.Reviewer checklist