Heavily "inspired" on https://github.com/entrinsik-org/hapi-cls
This Hapi plugin installs CLS and binds it to the request
npm install @smp-relate/hapi-cls
const server = ;server;server
NOTE: Registration should be done in the "highest" point possible to ensure other plugins are also working in the CLS context.
There's a hook enabling setting custom values in the request context right after it's initialized. Requires value resolution function that receives request object as an argument. Example:
const server = ;server;server;