This small package makes sure that every AWS X-ray trace that passes through an express app has additional annotations that make it easier to find the right traces later on.
It is usefule especially in cases where you are using aws-serverless-express package to put your express application inside an AWS Lambda.
In order to install perform
npm install annot8-express --save
Simply add the middleware to your express app after app.use(AWSXRayExpress.openSegment('Segment'));
and app.use(awsServerlessExpressMiddleware.eventContext());
calls and before app.use(AWSXRayExpress.closeSegment());
let annot8 = require("annot8-express");
app.use(annot8);