Socket
Socket
Sign inDemoInstall

@meetup/lambda-xray

Package Overview
Dependencies
28
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @meetup/lambda-xray

AWS X-Ray Utilities


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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:

FAQs

Last updated on 08 Oct 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc