Questions tagged [continuation-local-storag]
5 questions
5
votes
1 answer
Node CLS context drops during execution of a request
I am using https://github.com/jeff-lewis/cls-hooked for preserving execution context across async callbacks. I see context dropping during the life span of a request.
I am aware of…

Abhishek
- 1,216
- 1
- 9
- 13
3
votes
1 answer
Express: what load can continuation-local-storage handle?
I want to enable thread-like storage for my express app which handles ~100 to 300 API calls per minute. I've played with continuation-local-storage (and cls-hooked since I'm on Node 8.9.0) but the CPU spikes are very high (500x normal and dont…

E Fleischman
- 31
- 5
3
votes
1 answer
sequelize with cls not getting current context
I am trying to log mysql queries using sequelize cls and logger module.
In this i am loosing the context of namespace Request-Id and it prints either blank or some random previous Request-Id
Node Version : 8.9.4
Sequelize : 4.33.4
cls-hooked :…

rajat12a
- 379
- 1
- 5
- 17
2
votes
1 answer
Node: Unable to call continuation-local-storage key inside gRPC callback using express
I'm attempting to store an ID in continuation-local-storage so I can output it in the logs after a successful gRPC request. I create the namespace at the start of the app then set the ID in middleware (in the full implementation the ID will come in…

user285429
- 303
- 1
- 4
- 10
1
vote
2 answers
continuation-local-storage context is lost in async waterfall
I'm trying to use continuation-local-storage module to have "currentUser" across my entire application.
When calling async waterfall the context gets lost.
app.get('/testing/cls',
function(req, res, next) {
…

Lior Rabin
- 11
- 3