You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This adds another level of protecting to using closed spans in any
context when returned by the ScopeManager.
It's really tricky to test this in isolation, because fetching the
active span, already performs the check. I can't check the private maps
of spans in the ScopeManager itself in the test. I've tested it by
temporarily removing the `&& span.open` check from
`ScopeManager.active()` which confirmed it works.
Do not transfer closed spans for new async contexts in the ScopeManager. Rather than relying on `ScopeManager.active()` and `ScopeManager.root()` to make sure the span is not already closed, also make sure it's not closed when transferring spans around between async contexts.
0 commit comments