@sentry/minimal
Sentry minimal library that can be used in other packages
Last updated 3 years ago by sentry-bot .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install @sentry/minimal 
SYNC missed versions from official npm registry.


Sentry JavaScript SDK Minimal

npm version npm dm npm dt typedoc

Links

General

A minimal Sentry SDK that uses a configured client when embedded into an application. It allows library authors add support for a Sentry SDK without having to bundle the entire SDK or being dependent on a specific platform. If the user is using Sentry in their application and your library uses @sentry/minimal, the user receives all breadcrumbs/messages/events you added to your libraries codebase.

Usage

To use the minimal, you do not have to initialize an SDK. This should be handled by the user of your library. Instead, directly use the exported functions of @sentry/minimal to add breadcrumbs or capture events:

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

// Add a breadcrumb for future events
Sentry.addBreadcrumb({
  message: 'My Breadcrumb',
  // ...
});

// Capture exceptions, messages or manual events
Sentry.captureMessage('Hello, world!');
Sentry.captureException(new Error('Good bye'));
Sentry.captureEvent({
  message: 'Manual',
  stacktrace: [
    // ...
  ],
});

Note that while strictly possible, it is discouraged to interfere with the event context. If for some reason your library needs to inject context information, beware that this might override the user's context values:

// Set user information, as well as tags and further extras
Sentry.configureScope(scope => {
  scope.setExtra('battery', 0.7);
  scope.setTag('user_mode', 'admin');
  scope.setUser({ id: '4711' });
  // scope.clear();
});

Current Tags

  • 6.19.7                                ...           latest (3 years ago)
  • 7.0.0-alpha.1                                ...           next (3 years ago)

248 Versions

  • 6.19.7                                ...           3 years ago
  • 7.0.0-alpha.1                                ...           3 years ago
  • 7.0.0-alpha.0                                ...           3 years ago
  • 6.19.6                                ...           3 years ago
  • 6.19.5                                ...           3 years ago
  • 6.19.4                                ...           3 years ago
  • 6.19.3                                ...           3 years ago
  • 6.19.2                                ...           3 years ago
  • 6.19.1                                ...           3 years ago
  • 6.19.0                                ...           3 years ago
  • 6.18.2                                ...           3 years ago
  • 6.18.1-beta.0                                ...           3 years ago
  • 6.18.1                                ...           3 years ago
  • 6.18.0                                ...           3 years ago
  • 6.17.9                                ...           3 years ago
  • 6.17.8                                ...           3 years ago
  • 6.17.8-beta.0                                ...           3 years ago
  • 6.17.7                                ...           3 years ago
  • 6.17.6                                ...           3 years ago
  • 6.17.5                                ...           3 years ago
  • 6.17.4                                ...           3 years ago
  • 6.17.3                                ...           3 years ago
  • 6.17.2                                ...           3 years ago
  • 6.17.1                                ...           3 years ago
  • 6.17.0                                ...           3 years ago
  • 6.17.0-beta.0                                ...           3 years ago
  • 6.16.1                                ...           3 years ago
  • 6.16.0                                ...           3 years ago
  • 6.15.0                                ...           3 years ago
  • 6.14.3                                ...           3 years ago
  • 6.14.2 [deprecated]           ...           3 years ago
  • 6.14.1                                ...           3 years ago
  • 6.14.0                                ...           3 years ago
  • 6.13.3                                ...           3 years ago
  • 6.13.2                                ...           3 years ago
  • 6.13.1                                ...           3 years ago
  • 6.13.0                                ...           3 years ago
  • 6.13.0-beta.3                                ...           3 years ago
  • 6.13.0-beta.2                                ...           3 years ago
  • 6.13.0-beta.1                                ...           3 years ago
  • 6.13.0-beta.0                                ...           3 years ago
  • 6.12.0                                ...           3 years ago
  • 6.12.0-beta.2                                ...           3 years ago
  • 6.12.0-beta.1                                ...           3 years ago
  • 6.11.0                                ...           3 years ago
  • 6.10.0                                ...           3 years ago
  • 6.10.0-beta.3                                ...           3 years ago
  • 6.10.0-beta.2                                ...           3 years ago
  • 6.10.0-beta                                ...           3 years ago
  • 6.9.0                                ...           3 years ago
  • 6.8.0                                ...           3 years ago
  • 6.7.2                                ...           3 years ago
  • 6.7.1                                ...           3 years ago
  • 6.7.0                                ...           3 years ago
  • 6.6.0                                ...           4 years ago
  • 6.5.1                                ...           4 years ago
  • 6.5.0                                ...           4 years ago
  • 6.5.0-beta.2                                ...           4 years ago
  • 6.5.0-beta.1                                ...           4 years ago
  • 6.5.0-beta.0                                ...           4 years ago
  • 6.4.1                                ...           4 years ago
  • 6.4.0                                ...           4 years ago
  • 6.3.6                                ...           4 years ago
  • 6.3.5                                ...           4 years ago
  • 6.3.4                                ...           4 years ago
  • 6.3.4-beta.3                                ...           4 years ago
  • 6.3.4-beta.2                                ...           4 years ago
  • 6.3.4-beta.1                                ...           4 years ago
  • 6.3.4-beta.0                                ...           4 years ago
  • 6.3.3                                ...           4 years ago
  • 6.3.2                                ...           4 years ago
  • 6.3.1                                ...           4 years ago
  • 6.3.0                                ...           4 years ago
  • 6.3.0-beta.7                                ...           4 years ago
  • 6.3.0-beta.6                                ...           4 years ago
  • 6.3.0-beta.5                                ...           4 years ago
  • 6.2.5                                ...           4 years ago
  • 6.2.4                                ...           4 years ago
  • 6.2.3                                ...           4 years ago
  • 6.2.2                                ...           4 years ago
  • 6.3.0-beta.4                                ...           4 years ago
  • 6.3.0-beta.3                                ...           4 years ago
  • 6.3.0-beta.2                                ...           4 years ago
  • 6.3.0-beta.1                                ...           4 years ago
  • 6.3.0-beta.0                                ...           4 years ago
  • 6.2.1                                ...           4 years ago
  • 6.2.0                                ...           4 years ago
  • 6.1.0                                ...           4 years ago
  • 6.1.0-beta.0                                ...           4 years ago
  • 6.0.4                                ...           4 years ago
  • 6.0.3                                ...           4 years ago
  • 6.0.2                                ...           4 years ago
  • 6.0.1                                ...           4 years ago
  • 6.0.0                                ...           4 years ago
  • 5.30.0                                ...           4 years ago
  • 5.29.2                                ...           4 years ago
  • 5.29.1                                ...           4 years ago
  • 5.29.0                                ...           4 years ago
  • 5.28.0                                ...           4 years ago
  • 5.27.7-beta.0                                ...           4 years ago
  • 5.27.6                                ...           4 years ago
  • 5.27.5                                ...           4 years ago
  • 5.27.4                                ...           4 years ago
  • 5.27.3                                ...           4 years ago
  • 5.27.2                                ...           4 years ago
  • 5.27.1                                ...           4 years ago
  • 5.27.0                                ...           4 years ago
  • 5.27.0-beta.1                                ...           4 years ago
  • 5.27.0-beta.0                                ...           4 years ago
  • 5.26.0                                ...           4 years ago
  • 5.25.0                                ...           4 years ago
  • 5.25.0-beta.2                                ...           4 years ago
  • 5.25.0-beta.1                                ...           4 years ago
  • 5.25.0-beta.0                                ...           4 years ago
  • 5.24.2                                ...           4 years ago
  • 5.24.1                                ...           4 years ago
  • 5.24.0                                ...           4 years ago
  • 5.23.0                                ...           4 years ago
  • 5.22.3                                ...           4 years ago
  • 5.22.2                                ...           4 years ago
  • 5.22.1                                ...           4 years ago
  • 5.22.0                                ...           4 years ago
  • 5.21.4                                ...           4 years ago
  • 5.21.3                                ...           4 years ago
  • 5.21.2                                ...           4 years ago
  • 5.21.1                                ...           4 years ago
  • 5.21.0                                ...           4 years ago
  • 5.20.1                                ...           4 years ago
  • 5.20.0                                ...           4 years ago
  • 5.19.2                                ...           4 years ago
  • 5.19.1                                ...           4 years ago
  • 5.19.0                                ...           4 years ago
  • 5.18.1                                ...           4 years ago
  • 5.18.0                                ...           4 years ago
  • 5.17.0                                ...           5 years ago
  • 5.16.1                                ...           5 years ago
  • 5.16.0                                ...           5 years ago
  • 5.16.0-beta.5                                ...           5 years ago
  • 5.16.0-beta.4                                ...           5 years ago
  • 5.16.0-beta.3                                ...           5 years ago
  • 5.16.0-beta.2                                ...           5 years ago
  • 5.16.0-beta.1                                ...           5 years ago
  • 5.15.5                                ...           5 years ago
  • 5.15.4                                ...           5 years ago
  • 5.15.3                                ...           5 years ago
  • 5.15.2                                ...           5 years ago
  • 5.15.1                                ...           5 years ago
  • 5.15.0                                ...           5 years ago
  • 5.14.2                                ...           5 years ago
  • 5.14.1                                ...           5 years ago
  • 5.14.0                                ...           5 years ago
  • 5.13.2                                ...           5 years ago
  • 5.13.0                                ...           5 years ago
  • 5.12.5                                ...           5 years ago
  • 5.12.4                                ...           5 years ago
  • 5.12.0                                ...           5 years ago
  • 5.11.2                                ...           5 years ago
  • 5.11.1                                ...           5 years ago
  • 5.11.0                                ...           5 years ago
  • 5.10.2                                ...           5 years ago
  • 5.10.1                                ...           5 years ago
  • 5.10.0                                ...           5 years ago
  • 5.10.0-rc.0                                ...           5 years ago
  • 5.10.0-beta.4                                ...           5 years ago
  • 5.10.0-beta.3                                ...           5 years ago
  • 5.10.0-beta.2                                ...           5 years ago
  • 5.10.0-beta.1                                ...           5 years ago
  • 5.10.0-beta.0                                ...           5 years ago
  • 5.8.0                                ...           5 years ago
  • 5.8.0-beta.1                                ...           5 years ago
  • 5.8.0-beta.0                                ...           5 years ago
  • 5.7.1                                ...           5 years ago
  • 5.7.0                                ...           5 years ago
  • 5.7.0-beta.1                                ...           5 years ago
  • 5.7.0-beta.0                                ...           5 years ago
  • 5.6.1                                ...           5 years ago
  • 5.6.0                                ...           5 years ago
  • 5.6.0-beta.4                                ...           5 years ago
  • 5.6.0-beta.3                                ...           5 years ago
  • 5.6.0-beta.2                                ...           5 years ago
  • 5.6.0-beta.1                                ...           5 years ago
  • 5.6.0-beta.0                                ...           5 years ago
  • 5.5.0                                ...           5 years ago
  • 5.4.3                                ...           5 years ago
  • 5.4.2                                ...           5 years ago
  • 5.4.0                                ...           6 years ago
  • 5.3.0                                ...           6 years ago
  • 5.2.0                                ...           6 years ago
  • 5.2.0-beta.0                                ...           6 years ago
  • 5.1.2                                ...           6 years ago
  • 5.1.0                                ...           6 years ago
  • 5.0.8                                ...           6 years ago
  • 5.0.7                                ...           6 years ago
  • 5.0.6                                ...           6 years ago
  • 5.0.5                                ...           6 years ago
  • 5.0.3                                ...           6 years ago
  • 5.0.0                                ...           6 years ago
  • 5.0.0-rc.3                                ...           6 years ago
  • 5.0.0-rc.2                                ...           6 years ago
  • 4.6.5                                ...           6 years ago
  • 5.0.0-rc.1                                ...           6 years ago
  • 5.0.0-rc.0                                ...           6 years ago
  • 4.6.4                                ...           6 years ago
  • 4.6.3                                ...           6 years ago
  • 4.6.2                                ...           6 years ago
  • 4.6.1                                ...           6 years ago
  • 4.6.0                                ...           6 years ago
  • 4.5.4                                ...           6 years ago
  • 4.5.3                                ...           6 years ago
  • 4.5.2                                ...           6 years ago
  • 4.5.1                                ...           6 years ago
  • 4.5.0                                ...           6 years ago
  • 4.4.2                                ...           6 years ago
  • 4.4.1                                ...           6 years ago
  • 4.4.0                                ...           6 years ago
  • 4.3.4                                ...           6 years ago
  • 4.3.3                                ...           6 years ago
  • 4.3.2                                ...           6 years ago
  • 4.3.1                                ...           6 years ago
  • 4.3.0                                ...           6 years ago
  • 4.2.4                                ...           6 years ago
  • 4.2.3                                ...           6 years ago
  • 4.2.2                                ...           6 years ago
  • 4.2.1                                ...           6 years ago
  • 4.2.0                                ...           6 years ago
  • 4.1.1                                ...           6 years ago
  • 4.1.0                                ...           6 years ago
  • 4.0.6                                ...           6 years ago
  • 4.0.5                                ...           6 years ago
  • 4.0.1                                ...           6 years ago
  • 4.0.0                                ...           6 years ago
  • 4.0.0-rc.2                                ...           6 years ago
  • 4.0.0-rc.1                                ...           6 years ago
  • 4.0.0-rc.0                                ...           6 years ago
  • 4.0.0-beta.12                                ...           6 years ago
  • 4.0.0-beta.11                                ...           6 years ago
  • 4.0.0-beta.10                                ...           6 years ago
  • 4.0.0-beta.9                                ...           6 years ago
  • 4.0.0-beta.8                                ...           6 years ago
  • 4.0.0-beta.7                                ...           6 years ago
  • 4.0.0-beta.6                                ...           6 years ago
  • 4.0.0-beta.5                                ...           6 years ago
  • 4.0.0-beta.4                                ...           6 years ago
  • 4.0.0-beta.3                                ...           6 years ago
  • 4.0.0-beta.2                                ...           6 years ago
  • 4.0.0-beta.1                                ...           6 years ago
  • 4.0.0-beta.0                                ...           6 years ago
  • 0.5.4                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 11
Last Day 0
Last Week 11
Last Month 0
Dependencies (3)
Dev Dependencies (5)

Copyright 2013 - present © cnpmjs.org | Home |