zipkin-context-cls
Advanced tools
Comparing version 0.13.0 to 0.14.2
{ | ||
"name": "zipkin-context-cls", | ||
"version": "0.13.0", | ||
"version": "0.14.2", | ||
"description": "A Context API implementation that uses continuation-local-storage under the hood", | ||
@@ -5,0 +5,0 @@ "main": "lib/CLSContext.js", |
@@ -28,1 +28,5 @@ # zipkin-context-cls | ||
The package will create a namespace called 'zipkin' by default, if it does not exist yet. In this namespace the code sets the context with the key 'zipkin'. This does not mean that the context is overwritten at every request. The namespace is tied to the call-chain. Data stored within that namespace is unique to that request and namespace. For reference see: [here](https://speakerdeck.com/fredkschott/conquering-asynchronous-context-with-cls?slide=27). | ||
## Troubleshooting | ||
If you are using the `Express` framework with `CLSContext`, the `body-parser` middleware may interfere and lose the context. To prevent that, make sure that the `body-parser` middleware is registered before `zipkin` in the middleware chain. If you are not explicitly registering `body-parser`, please do so by adding `app.use(bodyParser.json());` above the Zipkin middleware registration line. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7484
32