express-http-context
express-http-context copied to clipboard
Get and set request-scoped context anywhere
I use express-http-context with middleware writing log when a request coming, and store the unique id for in http context using `httpContext.set('reqId', req.requestInfo.id);`, and with every log using console.log or...
Moving the type dependencies to devDependencies since the compiled index.js has no direct need for them. The only hard dependency this library needs is `cls-hooked`.
I'm trying to get http context after a [mysql](https://www.npmjs.com/package/mysql) query in express app. The context seems to be lost after executing a query: ``` const app = require('express')(); const httpContext...
I'm using **express-http-context** to store _request-id_(generate each time new request arrived automatically) and get _request-id_ anytime, anywhere I want. In normal case its working fine but if I get context...
This looks amazing, and I plan on using it to allow better correlation of logs in my system. I know it only works with express, and specifically http requests. However,...
`npm install --save express-http-router` `var httpContext = require('express-http-context');` `npm start` `cannot find module` when I run `node` console, I can require the module fine. The folder in in my `node_modules`...
I was looking for a solution like this one and I saw several good candidates, but I did not search enough, yet, to understand the true differences between each. Until...
Solves https://github.com/skonves/express-http-context/issues/26 ### Changes fix: check if there is an existing namespace before creating one ### Description As stated in https://github.com/skonves/express-http-context/issues/26#issuecomment-859488026, if the library is required in two different dependences,...
Bumps [express](https://github.com/expressjs/express) from 4.16.2 to 4.17.3. Release notes Sourced from express's releases. 4.17.3 deps: accepts@~1.3.8 deps: mime-types@~2.1.34 deps: [email protected] deps: [email protected] deps: [email protected] deps: [email protected] deps: [email protected] deps: [email protected] deps:...
Bumps [qs](https://github.com/ljharb/qs) and [qs](https://github.com/ljharb/qs). These dependencies needed to be updated together. Updates `qs` from 6.5.2 to 6.5.3 Changelog Sourced from qs's changelog. 6.5.3 [Fix] parse: ignore __proto__ keys (#428) [Fix]...