2.1.3 ⢠Published 1 year ago
@rjweb/sentry v2.1.3
@rjweb/sentry
Easy and Lightweight Web Server Library
š Homepage š Documentation
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://hmmm@hmmm.ingest.sentry.io/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.