@roarr/sentry
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

Roarr Sentry Integration

Travis build status Coveralls NPM version Canonical Code Style Twitter Follow

Sentry integration that adds Roarr logs to Sentry breadcrumbs.

Motivation

Sentry breadcrumbs allow one to trace down the root cause of an error. Breadcrumbs can include arbitrary data, including log messages. Roarr Sentry integration adds Roarr logs to Sentry breadcrumbs to give a richer context about every issue raised on Sentry.

Usage

import {
  getCurrentHub,
} from '@sentry/node';
import {
  createRoarrSentryIntegration,
} from '@roarr/sentry';

createSentry({
  integrations: [
    createRoarrSentryIntegration({
      addBreadcrumb: (breadcrumb) => {
        // Your implementation might vary
        const hub = getCurrentHub();

        hub.addBreadcrumb(breadcrumb);
      },
    }),
  ],
});

/@roarr/sentry/

    Package Sidebar

    Install

    npm i @roarr/sentry

    Weekly Downloads

    242

    Version

    3.0.0

    License

    BSD-3-Clause

    Unpacked Size

    10.7 kB

    Total Files

    12

    Last publish

    Collaborators

    • gajus