@autofleet/outbreak
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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.

/@autofleet/outbreak/

    Package Sidebar

    Install

    npm i @autofleet/outbreak

    Weekly Downloads

    444

    Version

    1.0.4

    License

    ISC

    Unpacked Size

    55.1 kB

    Total Files

    30

    Last publish

    Collaborators

    • armados
    • asher-mentzer
    • taltosiano
    • saar-enpitech
    • myarab
    • bosmat
    • eliranlevi
    • jordan12312
    • danielautofleet
    • alonaf800
    • ovadia_e
    • bar_af
    • nihad-autofleet
    • emiltayeb912
    • or.autofleet
    • atlow
    • matanl2208
    • roei-autofleet
    • eli_autofleet
    • ariel-weiss
    • hilatd-autofleet
    • ofekrotem
    • nathanaf
    • einavbr
    • sephi-af
    • aaronlieblich
    • omergery
    • dor_shay
    • itayankri
    • dsalti12
    • evanmyara