AWS X-Ray Tracing Middleware ============================

Usage no npm install needed!

<script type="module">
  import sharecoverCoMiddyAwsXrayTracing from 'https://cdn.skypack.dev/@sharecover-co/middy-aws-xray-tracing';


AWS X-Ray Tracing Middleware

This middleware calls X-Ray Tracing on the AWS-SDK if a Trace ID is available in the environment.

The first call that has a Trace ID will initialise capturing, subsequent loads will not.


To install this middleware you can use NPM:

npm install --save @sharecover-co/middy-aws-xray-tracing

Sample usage

const middy = require('@middy/core')
const awsXrayTracing = require('@sharecover-co/middy-aws-xray-tracing')

const handler = middy((event, context, cb) => {
  cb(null, {})