isomorphic-sentry
TypeScript icon, indicating that this package has built-in type declarations

5.6.1 • Public • Published

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

/isomorphic-sentry/

    Package Sidebar

    Install

    npm i isomorphic-sentry

    Weekly Downloads

    25

    Version

    5.6.1

    License

    MIT

    Unpacked Size

    3.08 kB

    Total Files

    10

    Last publish

    Collaborators

    • kkobas
    • hikoma