@meetup/lambda-xray
Advanced tools
AWS X-Ray Utilities
Weekly downloads
Readme
lambda-xray
is a library that provides a wrapper around aws-xray-sdk-core
extending it with additional methods.
The goal is to use lambda-xray
in place of the original aws-xray-sdk-core
.
npm install @meetup/lambda-xray
import { fetch, Response } from 'node-fetch';
import XRay from '@meetup/lambda-xray';
// Does everything(*) that 'aws-xray-sdk-core' can
const tracedHttps = XRay.captureHTTPs(require('https'));
tracedHttps.get('https://www.meetup.com');
// ...and something that 'aws-xray-sdk-core' can't
const tracedFetch = XRay.captureAsync('Fetch www.meetup.com', (): Promise<Response> => fetch('www.meetup.com'));
await tracedFetch();
* lambda-xray
provides all main tracing methods of aws-xray-sdk-core
. If you didn't find the method you need
(but it exists in aws-xray-sdk-core
), feel free to extend aws-xray-sdk-core
type definitions.
Made with :heart: by Member Payments team, and published by Comms Tools :heart:
FAQs
AWS X-Ray Utilities
The npm package @meetup/lambda-xray receives a total of 183 weekly downloads. As such, @meetup/lambda-xray popularity was classified as not popular.
We found that @meetup/lambda-xray demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.