@autofleet/outbreak
v1.0.4
Published
Spread yor headers between microserivces - have better context for http requests.
Downloads
1,088
Maintainers
Keywords
Readme
Outbreak
Spread yor headers between microserivces - have better context for http requests.
import headersTracer from '@autofleet/outbreak';
headersTracer({
setAndPropagateCorrelationId: true,
headersToPropagate: [
'x-text',
],
headersPrefix: 'x-my-prefix',
winstonLogger: logger,
});
After initiation every side affect requests to other services will hold the same context as the original one.
This project is licensed under the terms of the MIT license.