Questions tagged [node-local-storage]
8 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
4
votes
1 answer
Node.js logging multiple requests with relative ID's
In a nutshell: can one associate logs (throughout an entire node API) to a certain (dynamic) reference ID?
[Explained further]
So, here is the situation: I am writing an API that potentially handles up to hundreds of requests at one time. It is…

Jeremy
- 1,717
- 5
- 30
- 49
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
node - continuation-local-storage
I am attempting to use the continuation-local-storage package to access the current express request/response from a point where that is not readily accessible.
I created the following middleware:
var createNamespace =…

TreeMan360
- 589
- 1
- 5
- 16
0
votes
0 answers
Create global variables in the entire context and pass them to Winston logger
I want to tell firstly it's my first time working on node. My node application does not use express framework or something like that. My app is deployed in containers under docker.
I'm using the Winston module to store my application logs. This is…

Allanh
- 465
- 1
- 7
- 19
0
votes
1 answer
confused about node-localstorage
so I'm making a site with node js, and I need to use localstorage, so I'm using the node-localstorage library. So basically, in one file I add data to it, and in another file I want to retrieve it. I'm not 100% sure about how to retrieve it. I know…

coder
- 37
- 7
0
votes
1 answer
How to use node-localstorage from browser extension which is using npm
I am new to extension development. Right now I am testing a Firefox extension developed with the Add-on SDK. I want to use HTM5 localstorage to store something from one of the background scripts in my extension, which will be fetched from a…

wittyrandhir
- 1
- 4
0
votes
1 answer
How can I remove all quotas in node-localstorage?
I'm using node-localStorage, which seems to provide a partial copy of localStorage and its semantics for Node. (You have to use methods like localStorage.getItem('foo') to get and set instead of reading or setting localStorage['foo'], but while it's…

Christos Hayward
- 5,777
- 17
- 58
- 113