openrm / hato

A minimalist, customizeable AMQP framework in Node.js
MIT License
1 stars 0 forks source link

Namespaced chain-local storage #8

Open naggingant opened 4 years ago

naggingant commented 4 years ago

We need to include (and provide an interface to) an async local storage implementation, in order to support distributed tracing and any related functionality.

In newest versions of Node it would be AsyncLocalStorage, and for others a CLS fork like cls-hooked should probably do.

naggingant commented 4 years ago

We could possibly suffer from amqplib depending on an older version of bluebird which does not support async_hooks. As our driver is wrapping some core methods by global.Promise, it "would" be alright above the boundary. To be discussed.