Naughty Pterodactyl Maid

    @sharecover-co/middy-aws-xray-tracing

    0.1.0 • Public • Published

    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.

    Install

    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, {})
    })
    
    handler.use(awsXrayTracing())

    Keywords

    none

    Install

    npm i @sharecover-co/middy-aws-xray-tracing

    DownloadsWeekly Downloads

    143

    Version

    0.1.0

    License

    ISC

    Unpacked Size

    21.9 kB

    Total Files

    12

    Last publish

    Collaborators

    • salmanz
    • mschregardus
    • sharecover
    • luke.andersen.iag