@sentry/node
Offical Sentry SDK for Node.js
Last updated 14 days ago by haza .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @sentry/node 
SYNC missed versions from official npm registry.


Official Sentry SDK for NodeJS

npm version npm dm npm dt typedoc

Links

Usage

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

// ES5 Syntax
const Sentry = require('@sentry/node');
// ES6 Syntax
import * as Sentry from '@sentry/node';

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

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

// 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

  • 5.12.3                                ...           latest (14 days ago)
  • 5.10.0-rc.0                                ...           next (3 months ago)

121 Versions

  • 5.12.3                                ...           14 days ago
  • 5.12.2                                ...           15 days ago
  • 5.12.1                                ...           15 days ago
  • 5.12.0                                ...           15 days ago
  • 5.11.2                                ...           21 days ago
  • 5.11.1                                ...           a month ago
  • 5.11.0                                ...           a month ago
  • 5.10.2                                ...           2 months ago
  • 5.10.1                                ...           2 months ago
  • 5.10.0                                ...           2 months ago
  • 5.10.0-rc.0                                ...           3 months ago
  • 5.10.0-beta.4                                ...           3 months ago
  • 5.10.0-beta.3                                ...           3 months ago
  • 5.10.0-beta.2                                ...           3 months ago
  • 5.10.0-beta.1                                ...           3 months ago
  • 5.10.0-beta.0                                ...           3 months ago
  • 5.9.0                                ...           3 months ago
  • 5.8.0                                ...           3 months ago
  • 5.8.0-beta.1                                ...           3 months ago
  • 5.8.0-beta.0                                ...           3 months ago
  • 5.7.1                                ...           4 months ago
  • 5.7.0                                ...           4 months ago
  • 5.7.0-beta.1                                ...           4 months ago
  • 5.7.0-beta.0                                ...           5 months ago
  • 5.6.2                                ...           6 months ago
  • 5.6.1                                ...           6 months ago
  • 5.6.0                                ...           6 months ago
  • 5.6.0-beta.4                                ...           7 months ago
  • 5.6.0-beta.3                                ...           7 months ago
  • 5.6.0-beta.2                                ...           7 months ago
  • 5.6.0-beta.1                                ...           7 months ago
  • 5.6.0-beta.0                                ...           7 months ago
  • 5.5.0                                ...           7 months ago
  • 5.4.3                                ...           8 months ago
  • 5.4.2                                ...           8 months ago
  • 5.4.0                                ...           9 months ago
  • 5.3.0                                ...           9 months ago
  • 5.2.0                                ...           9 months ago
  • 5.2.0-beta.0                                ...           10 months ago
  • 5.1.2                                ...           10 months ago
  • 5.1.0                                ...           10 months ago
  • 5.0.8                                ...           10 months ago
  • 5.0.7                                ...           10 months ago
  • 5.0.6                                ...           10 months ago
  • 5.0.5                                ...           a year ago
  • 5.0.3                                ...           a year ago
  • 5.0.0                                ...           a year ago
  • 4.6.6                                ...           a year ago
  • 5.0.0-rc.3                                ...           a year ago
  • 5.0.0-rc.2                                ...           a year ago
  • 4.6.5                                ...           a year ago
  • 5.0.0-rc.1                                ...           a year ago
  • 5.0.0-rc.0                                ...           a year ago
  • 4.6.4                                ...           a year ago
  • 4.6.3                                ...           a year ago
  • 4.6.2                                ...           a year ago
  • 4.6.1                                ...           a year ago
  • 4.6.0                                ...           a year ago
  • 4.5.4                                ...           a year ago
  • 4.5.3                                ...           a year ago
  • 4.5.2                                ...           a year ago
  • 4.5.1                                ...           a year ago
  • 4.5.0                                ...           a year ago
  • 4.4.2                                ...           a year ago
  • 4.4.1                                ...           a year ago
  • 4.4.0                                ...           a year ago
  • 4.3.4                                ...           a year ago
  • 4.3.3                                ...           a year ago
  • 4.3.2                                ...           a year ago
  • 4.3.1                                ...           a year ago
  • 4.3.0                                ...           a year ago
  • 4.2.4                                ...           a year ago
  • 4.2.3                                ...           a year ago
  • 4.2.2                                ...           a year ago
  • 4.2.1                                ...           a year ago
  • 4.2.0                                ...           a year ago
  • 4.1.1                                ...           a year ago
  • 4.1.0                                ...           a year ago
  • 4.0.6                                ...           a year ago
  • 4.0.5                                ...           a year ago
  • 4.0.3                                ...           a year ago
  • 4.0.1                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 4.0.0-rc.2                                ...           a year ago
  • 4.0.0-rc.1                                ...           a year ago
  • 4.0.0-rc.0                                ...           a year ago
  • 4.0.0-beta.12                                ...           2 years ago
  • 4.0.0-beta.11                                ...           2 years ago
  • 4.0.0-beta.10                                ...           2 years ago
  • 4.0.0-beta.9                                ...           2 years ago
  • 4.0.0-beta.8                                ...           2 years ago
  • 4.0.0-beta.7                                ...           2 years ago
  • 4.0.0-beta.6                                ...           2 years ago
  • 4.0.0-beta.5                                ...           2 years ago
  • 4.0.0-beta.4                                ...           2 years ago
  • 4.0.0-beta.3                                ...           2 years ago
  • 4.0.0-beta.2                                ...           2 years ago
  • 4.0.0-beta.1                                ...           2 years ago
  • 4.0.0-beta.0                                ...           2 years ago
  • 0.5.4                                ...           2 years ago
  • 0.5.3                                ...           2 years ago
  • 0.5.2                                ...           2 years ago
  • 0.5.1                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.5.0-beta.5                                ...           2 years ago
  • 0.5.0-beta.4                                ...           2 years ago
  • 0.5.0-beta.3                                ...           2 years ago
  • 0.5.0-beta.2                                ...           2 years ago
  • 0.5.0-beta.1                                ...           2 years ago
  • 0.5.0-beta.0                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.4.0-beta.7                                ...           2 years ago
  • 0.4.0-beta.6                                ...           2 years ago
  • 0.4.0-beta.5                                ...           2 years ago
  • 0.4.0-beta.4                                ...           2 years ago
  • 0.4.0-beta.3                                ...           2 years ago
  • 0.4.0-beta.2                                ...           2 years ago
  • 0.4.0-beta.1                                ...           2 years ago
  • 0.4.0-0                                ...           2 years ago
Downloads
Today 68
This Week 661
This Month 4,801
Last Day 278
Last Week 1,879
Last Month 6,992
Dependencies (9)
Dev Dependencies (12)
Dependents (346)

Copyright 2014 - 2016 © taobao.org |