Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Option to disable async_hooks/cls #646

Open
dicarlo2 opened this issue Aug 27, 2019 · 0 comments
Open

Option to disable async_hooks/cls #646

dicarlo2 opened this issue Aug 27, 2019 · 0 comments

Comments

@dicarlo2
Copy link

NB: Before opening a feature request against this repo, consider whether the feature should/could be implemented in other the OpenCensus libraries in other languages. If so, please open an issue on opencensus-specs first.

Is your feature request related to a problem? Please describe.
Basically same comment as #462.

Describe the solution you'd like
CLS to be optional.

Describe alternatives you've considered
Nada.

Additional context

asyncHook.createHook({ init, before, destroy }).enable();
means that async hooks are initialized regardless of whether or not the tracer implementation that uses them is imported by the user. Please move the enable call to outside of module scope.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant