Socket
Book a DemoInstallSign in
Socket

@roarr/sentry

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@roarr/sentry

Sentry integration that adds Roarr logs to Sentry breadcrumbs.

latest
Source
npmnpm
Version
3.0.0
Version published
Weekly downloads
762
52.4%
Maintainers
1
Weekly downloads
 
Created
Source

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);
      },
    }),
  ],
});

Keywords

roarr

FAQs

Package last updated on 21 Oct 2022

Did you know?

Socket

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