1.0.2 • Published 9 months ago

@dawsonbotsford/isomorphic-sentry v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

isomorphic-sentry

Isomorphic sentry client for node and browser.

Installation

NPM

$ npm install --save isomorphic-sentry

Yarn

$ yarn add isomorphic-sentry

Usage

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