# @meetup/memberpay-xray

> AWS X-Ray Utilities

Latest version **1.0.7** (published 2019-08-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @meetup/memberpay-xray
pnpm add @meetup/memberpay-xray
yarn add @meetup/memberpay-xray
bun add @meetup/memberpay-xray
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2019-08-27 |
| First published | 2019-07-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8.10.0 |
| Dependencies | 2 |
| Unpacked size | 38.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Meetup |
| Maintainers | meetupbot |

## Links

- npm: https://www.npmjs.com/package/@meetup/memberpay-xray
- npm.io page: https://npm.io/package/@meetup/memberpay-xray

## Dependencies (2)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.0
- [aws-xray-sdk-core](https://npm.io/package/aws-xray-sdk-core.md) ^2.3.3

## Recent versions

- 1.0.7 (latest) — 2019-08-27
- 1.0.6 — 2019-08-26
- 1.0.5 — 2019-07-31
- 1.0.4 — 2019-07-31
- 1.0.2 — 2019-07-24
- 1.0.1 — 2019-07-24
- 1.0.0 — 2019-07-24

## README

## memberpay-xray

`memberpay-xray` is a library that provides a wrapper around `aws-xray-sdk-core` extending it with additional methods.
The goal is to use `memberpay-xray` in place of the original `aws-xray-sdk-core`.

### Install

```bash
npm install @meetup/memberpay-xray
```

### Use

```ecmascript 6
import { fetch, Response } from 'node-fetch';
import XRay from '@meetup/memberpay-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();
```
\* `memberpay-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](@types/aws-xray-sdk-core/index.d.ts).

### Enjoy!

Made with :heart: by Member Payments team

---
_Source: https://npm.io/package/@meetup/memberpay-xray · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
