Skip to content

Isolated scopes for each http request #5576

Answered by AbhiPrasad
Loskir asked this question in Q&A
Discussion options

You must be logged in to vote

Hey! We recommend using domains. Although it's deprecated, it works quite well and is the foundation of our various server side integrations - it should work ootb with the SDK as well. See our usage in express:

.

Eventually we'll make the switch to async hooks: https://nodejs.org/api/async_hooks.html - but since we have to support Node 8, we're stuck with domains for now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Loskir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants