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
I'm not ready to contribute a patch at this point, os.activity is kind of new to me and I haven't dug deep enough into ActivityContextManager to be sure not to break something else.
However, this is what I observed:
When child1 ends it clears contextMap.
When child2 is started ActivityContextManager.getCurrentContextValue(forKey:) returns nil.
Other things here that raise my brow:
I would expect .setActive(_ active: Bool) to work for the DefaultTracer implementation as well.
Thanks, Pavel.
The text was updated successfully, but these errors were encountered:
PavelChernyshov
changed the title
ActivityContext
ActivityContextManager drops an active span, when a sub-span ends
Jun 5, 2023
PavelChernyshov
changed the title
ActivityContextManager drops an active span, when a sub-span ends
ActivityContextManager drops an active span when a sub-span ends
Jun 5, 2023
PavelChernyshov
changed the title
ActivityContextManager drops an active span when a sub-span ends
ActivityContextManager drops an active span when a first child span ends
Jun 5, 2023
Hi,
I've noticed a strange behavior, which I believe is not right.
Consider the following code:
I would expect the second child span to share the context with the parent, but in reality it's a root one.
The test is available here
I'm not ready to contribute a patch at this point,
os.activity
is kind of new to me and I haven't dug deep enough intoActivityContextManager
to be sure not to break something else.However, this is what I observed:
child1
ends it clearscontextMap
.child2
is startedActivityContextManager.getCurrentContextValue(forKey:)
returnsnil
.Other things here that raise my brow:
.setActive(_ active: Bool)
to work for theDefaultTracer
implementation as well.Thanks, Pavel.
The text was updated successfully, but these errors were encountered: