rrnl-sentry-middleware
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

RRNL-sentry-middleware

A middleware of React Relay Network Layer, which adds graphQL request info to sentry breadcrumb.

Note: not support batch request now.

Usage

Install

npm i rrnl-sentry-middleware -S
npm i react-relay-network-morden -S
// in browser
npm i @sentry/browser -S
// or in node
// npm i @sentry/node -S

// or use yarn
// yarn add rrnl-sentry-middleware -S
// yarn add react-relay-network-morden -S
// in browser
// yarn add @sentry/browser -S
// or in node
// yarn add @sentry/node -S

Basic Usage

import sentryMiddleware from 'rrnl-sentry-middleware';
import { getCurrentHub } from '@sentry/core';

const network = new RelayNetworkLayer([
  // ... your RelayNetworkLayer middleware
  sentryMiddleware({
    hub: getCurrentHub,
  }),
]);

Contribution

DefinitelyTyped only works because of contributions by users like you!

Git Message

Follow the Angular git commit message specification

But, you can ignore the scope

Package Sidebar

Install

npm i rrnl-sentry-middleware

Weekly Downloads

117

Version

0.1.0

License

MIT

Unpacked Size

11.2 kB

Total Files

7

Last publish

Collaborators

  • xyy94813