1.0.0 • Published 3 years ago

@fizz.js/node-sentry-middleware v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@fizz.js/node-sentry-middleware

This is a sentry-middleware library for express.

install

add dependencies into package.json and run yarn install

configure

please put sentry config into config/${env}.json

{
  "sentry": {
    "dsn": "XXXXXXXXXXXXXXXXXXXXXXXXXXXx",
    "tracing": {
      "enable": true,
      "sampleRate": 1.0
    }
  }
}

or put SENTRY_DSN into .env

SENTRY_DSN="XXXXXXXXXXXXXXXXXXXXXXXXXXXx"

test

yarn test

coverage

yarn cover

build

yarn build

docs

yarn docs

test sentry debugger

yarn example