-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling/Disabling of ScopeManager #758
Comments
I think the reason for this is that in Node, you usually always want the WRT enabling them unconditionally, I think the
What do you mean by "not sure"? Are you not sure we should allow disabling them, or not sure that it is implemented in a correct way? Or both? |
I think all is fine here. The |
Maybe it's just a documentation topic to clearly write down which registry requires an enabled ScopeManager and which one enables it internally. Regarding Bugs see #752. One problem there is that the scope manager has not been enabled.
I'm not sure who is responsible to disable them. |
Followup on #752 (comment)
Enabling of
ScopeManger
is done quite inconsistent:NodeTracerRegistry
enables it in case none is provided via config and it creates it's ownAsyncHooksScopeManager
WebTracerRegistry
enables it unconditionallyBasicTracerRegistry
doesn't enable itNot sure if this is specified anywhere but I think it should be consistent.
Most likely the best solution is that each TracerRegistry enables the
ScopeManager
(if present) and the managers must be able to handle multiple calls toenable()
.I'm also not sure about disable. In general it's not good if e.g. instances of
AsyncHooksScopeManager
are leaking as GC will not disable the underlying async-hooks instance.The text was updated successfully, but these errors were encountered: