@synanetics/session-tracing-middleware
v1.0.0
Published
Middleware to use in Moleculer for tracing across GCP
Downloads
182
Readme
@synanetics/session-tracing-middleware
This package provides middleware to enable tracing across Moleculer in GCP and middleware to fix headers with 'if-none-exists'.
Usage
const {
sessionTracking, ifNoneExistsHeaderTransform
} = require('@synanetics/session-tracing-middleware');
// or
import {
sessionTracking, ifNoneExistsHeaderTransform
} from '@synanetics/session-tracing-middleware';
Within the 'api' service of a Moleculer project add the middlewares to the 'settings.use' property array:
use: [sessionTracking(), ifNoneExistsHeaderTransform()],