1.1.4 • Published 5 years ago

@meetup/lambda-xray v1.1.4

Weekly downloads
184
License
MIT
Repository
-
Last release
5 years ago

Version

lambda-xray

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.

Install

npm install @meetup/lambda-xray

Use

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.

Enjoy!

Made with :heart: by Member Payments team, and published by Comms Tools :heart:

1.1.4

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

3.0.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

1.2.1-alpha.0

5 years ago