Skip to content

Small piece of express middleware, that adds additional common annotations to the segment.

License

Notifications You must be signed in to change notification settings

rnowosielski/annot8-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

annot8-express

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.

Installation

In order to install perform

npm install annot8-express --save

Usage

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);

About

Small piece of express middleware, that adds additional common annotations to the segment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published