@rjweb/sentry
v2.1.5
Published
Easy and Lightweight Way to add sentry to rjweb-server
Downloads
202
Maintainers
Readme
@rjweb/sentry
Easy and Lightweight Web Server Library
Disclaimer
This Package is intended to be used in the backend.
- ✔️ ESM
- ✔️ CJS
- ✔️ Typescript
Install
npm install @rjweb/sentry
yarn add @rjweb/sentry
pnpm install @rjweb/sentry
bun install @rjweb/sentry
Usage
Initialize
import { Server } from "rjweb-server"
import { Runtime } from "@rjweb/runtime-node"
import { sentry } from "@rjweb/sentry"
const server = new Server(Runtime, {
port: 8000
}, [
sentry.use({
environment: 'production',
dsn: 'https://[email protected]/hmmm',
tracesSampleRate: 0.1
}) // config is just the default node sentry sdk's config
])
// ...
Author
👤 0x7d8
Show your support
Give a Star if this project helped you!
📝 License
Copyright © 2023 0x7d8. This project is MIT licensed.