zipkin-context-cls
Advanced tools
Comparing version 0.11.0 to 0.13.0
{ | ||
"name": "zipkin-context-cls", | ||
"version": "0.11.0", | ||
"version": "0.13.0", | ||
"description": "A Context API implementation that uses continuation-local-storage under the hood", | ||
@@ -5,0 +5,0 @@ "main": "lib/CLSContext.js", |
@@ -22,1 +22,7 @@ # zipkin-context-cls | ||
the drawback then is that you have to pass around a context object manually. | ||
## A note on CLS context and Promises | ||
This package is not suitable if your code inside the context uses promises. The context is then not properly propagated. There is work underway called [async_hooks](https://nodejs.org/api/async_hooks.html), but is at the time of this writing (node v10) in Experimental state. | ||
## A note on the workings of CLS context | ||
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). |
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
7069
28