@fizz.js/node-sentry-middleware
v1.0.0
Published
node-sentry-middleware
Downloads
2
Readme
@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