annot8-express

0.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i annot8-express

Weekly Downloads

10

Version

0.0.4

License

Apache-2.0

Unpacked Size

88.2 kB

Total Files

9

Last publish

Collaborators

  • rnowosielski