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

0.3.10 • Public • Published

Sentry

Usage

import * as Sentry from '@dxos/sentry';

...

// Breadcrumbs added prior to an exception are available in Sentry as context for an exception.
//   https://docs.sentry.io/platforms/javascript/enriching-events/breadcrumbs/
Sentry.addBreadcrumb(context);

...

// Send caught exceptions to Sentry.
Sentry.captureException(error);

Logging

When Sentry is enabled all logs end up pointing their callsite back to Sentry code, which isn't helpful. Fortunately there is a way to work around this by using the Ignore List in devtools settings:

image

Add instrument.js and /@sentry/ to this list and they will no longer be listed as callsites for logs.

Source: https://github.com/getsentry/sentry-react-native/issues/794

Readme

Keywords

none

Package Sidebar

Install

npm i @dxos/sentry

Homepage

dxos.org

Weekly Downloads

37

Version

0.3.10

License

MIT

Unpacked Size

89.3 kB

Total Files

42

Last publish

Collaborators

  • zhenya-dxos
  • mykola-vrmchk
  • dxos-bot
  • richburdon
  • marik_d
  • wittjosiah