Easy and Lightweight Web Server Library
This Package is intended to be used in the backend.
- ✔️ ESM
- ✔️ CJS
- ✔️ Typescript
npm install @rjweb/sentry
yarn add @rjweb/sentry
pnpm install @rjweb/sentry
bun install @rjweb/sentry
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://hmmm@hmmm.ingest.sentry.io/hmmm',
tracesSampleRate: 0.1
}) // config is just the default node sentry sdk's config
])
// ...
👤 0x7d8
Give a Star if this project helped you!
Copyright © 2023 0x7d8. This project is MIT licensed.