@sentry/browser
Offical Sentry SDK for browsers
Last updated 7 years ago by jauer .
BSD-3-Clause · Repository · Original npm · Tarball · package.json
$ gnpm install @sentry/browser 
SYNC missed versions from official npm registry.

Sentry

Official Sentry SDK for Browsers

Sauce Test Status npm version npm dm npm dt

Links

Usage

To use this SDK, call Sentry.init(options) as early as possible after loading the page. This will initialize the SDK and hook into the environment. Note that you can turn off almost all side effects using the respective options.

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

Sentry.init({
  dsn: '__DSN__',
  // ...
});

To set context information or send manual events, use the exported functions of @sentry/browser. Note that these functions will not perform any action before you have called Sentry.init():

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

// 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();
});

// 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: [
    // ...
  ],
});

Current Tags

  • 7.45.0                                ...           latest (2 years ago)
  • 7.34.0-beta.0                                ...           next (2 years ago)

361 Versions

  • 7.45.0                                ...           2 years ago
  • 7.44.2                                ...           2 years ago
  • 7.44.1                                ...           2 years ago
  • 7.44.0                                ...           2 years ago
  • 7.43.0                                ...           2 years ago
  • 7.42.0                                ...           2 years ago
  • 7.41.0                                ...           2 years ago
  • 7.40.0                                ...           2 years ago
  • 7.39.0                                ...           2 years ago
  • 7.38.0                                ...           2 years ago
  • 7.37.2                                ...           2 years ago
  • 7.37.1                                ...           2 years ago
  • 7.37.0                                ...           2 years ago
  • 7.36.0                                ...           2 years ago
  • 7.35.0                                ...           2 years ago
  • 7.34.0                                ...           2 years ago
  • 7.34.0-beta.0                                ...           2 years ago
  • 7.33.0                                ...           2 years ago
  • 7.32.1                                ...           2 years ago
  • 7.32.0                                ...           2 years ago
  • 7.31.1                                ...           2 years ago
  • 7.31.0                                ...           2 years ago
  • 7.30.0                                ...           2 years ago
  • 7.29.0                                ...           2 years ago
  • 7.28.1                                ...           2 years ago
  • 7.28.0                                ...           2 years ago
  • 7.27.0                                ...           2 years ago
  • 7.26.0                                ...           2 years ago
  • 7.25.0                                ...           2 years ago
  • 7.24.2                                ...           2 years ago
  • 7.24.1                                ...           2 years ago
  • 7.24.0                                ...           2 years ago
  • 7.23.0                                ...           2 years ago
  • 7.22.0                                ...           2 years ago
  • 7.21.1                                ...           2 years ago
  • 7.21.0                                ...           2 years ago
  • 7.20.1                                ...           2 years ago
  • 7.20.0                                ...           2 years ago
  • 7.19.0                                ...           2 years ago
  • 7.18.0                                ...           2 years ago
  • 7.17.4                                ...           2 years ago
  • 7.17.3                                ...           2 years ago
  • 7.17.2                                ...           2 years ago
  • 7.17.1                                ...           2 years ago
  • 7.17.0                                ...           2 years ago
  • 7.16.0                                ...           2 years ago
  • 7.15.0                                ...           2 years ago
  • 7.14.2                                ...           2 years ago
  • 7.14.1                                ...           2 years ago
  • 7.14.0                                ...           2 years ago
  • 7.13.0                                ...           2 years ago
  • 7.12.1                                ...           2 years ago
  • 7.12.0                                ...           2 years ago
  • 7.11.1                                ...           2 years ago
  • 7.11.0                                ...           2 years ago
  • 7.10.0                                ...           2 years ago
  • 7.9.0                                ...           2 years ago
  • 7.8.1                                ...           2 years ago
  • 7.8.0                                ...           2 years ago
  • 7.7.0                                ...           2 years ago
  • 7.6.0                                ...           2 years ago
  • 7.5.1                                ...           2 years ago
  • 7.5.0                                ...           2 years ago
  • 7.4.1                                ...           2 years ago
  • 7.4.0                                ...           2 years ago
  • 7.3.1                                ...           2 years ago
  • 7.3.0                                ...           2 years ago
  • 7.2.0                                ...           2 years ago
  • 7.1.1                                ...           2 years ago
  • 7.1.0                                ...           2 years ago
  • 7.0.0                                ...           3 years ago
  • 7.0.0-rc.0                                ...           3 years ago
  • 7.0.0-beta.2                                ...           3 years ago
  • 7.0.0-beta.1                                ...           3 years ago
  • 7.0.0-beta.0                                ...           3 years ago
  • 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                                ...           3 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                                ...           4 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.1                                ...           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.9.1                                ...           5 years ago
  • 5.10.0-beta.0                                ...           5 years ago
  • 5.9.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.3                                ...           5 years ago
  • 5.6.2                                ...           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.1                                ...           6 years ago
  • 5.2.0                                ...           6 years ago
  • 5.1.3                                ...           6 years ago
  • 5.2.0-beta.0                                ...           6 years ago
  • 5.1.2                                ...           6 years ago
  • 5.1.1                                ...           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.2                                ...           6 years ago
  • 5.0.1                                ...           6 years ago
  • 5.0.0                                ...           6 years ago
  • 4.6.6                                ...           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 [deprecated]           ...           6 years ago
  • 4.3.2                                ...           6 years ago
  • 4.3.1 [deprecated]           ...           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.4                                ...           6 years ago
  • 4.0.3                                ...           6 years ago
  • 4.0.2                                ...           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                                ...           7 years ago
  • 0.5.3                                ...           7 years ago
  • 0.5.2                                ...           7 years ago
  • 0.5.1                                ...           7 years ago
  • 0.5.0                                ...           7 years ago
  • 0.5.0-beta.5                                ...           7 years ago
  • 0.5.0-beta.4                                ...           7 years ago
  • 0.5.0-beta.3                                ...           7 years ago
  • 0.5.0-beta.2                                ...           7 years ago
  • 0.5.0-beta.1                                ...           7 years ago
  • 0.5.0-beta.0                                ...           7 years ago
  • 0.4.2                                ...           7 years ago
  • 0.4.1                                ...           7 years ago
  • 0.4.0                                ...           7 years ago
  • 0.4.0-beta.7                                ...           7 years ago
  • 0.4.0-beta.6                                ...           7 years ago
  • 0.4.0-beta.5                                ...           7 years ago
  • 0.4.0-beta.4                                ...           7 years ago
  • 0.4.0-beta.3                                ...           7 years ago
  • 0.4.0-beta.2                                ...           7 years ago
  • 0.4.0-beta.1                                ...           7 years ago
  • 0.4.0-0                                ...           7 years ago
  • 0.3.0                                ...           7 years ago
  • 0.2.1                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |