Several traced layers start spans and stop them only on the happy path.
Affected areas include:
- kernel decorator
- event dispatcher decorator
- Twig environment tracer
- HttpCache tracer
- kernel trait
If the wrapped layer throws, the span can stay open and leave the tracer stack in an inconsistent state. The tracing wrappers should use safe stop logic, typically with try/finally.
Several traced layers start spans and stop them only on the happy path.
Affected areas include:
If the wrapped layer throws, the span can stay open and leave the tracer stack in an inconsistent state. The tracing wrappers should use safe stop logic, typically with try/finally.