5.6.1 • Published 6 years ago
isomorphic-sentry v5.6.1
isomorphic-sentry
Isomorphic sentry client for node and browser.
Installation
NPM
$ npm install --save isomorphic-sentryYarn
$ yarn add isomorphic-sentryUsage
import {captureMessage, init, SDK_NAME} from "isomorphic-sentry";
if (SDK_NAME === "sentry.javascript.browser") {
// Browser configuration
init({dsn: "__DSN__"});
} else {
// Node configuration
init({dsn: "__DSN__"});
}
captureMessage("Hello, world!");License
MIT