Skip to content

Close tracing spans safely when traced layers throw exceptions #33

Description

@javihgil

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions