@rjweb/sentry
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

@rjweb/sentry

RJWEB Icon

Easy and Lightweight Web Server Library

🏠 Homepage 🔍 Documentation

lines of code files

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.

Package Sidebar

Install

npm i @rjweb/sentry

Weekly Downloads

3

Version

2.1.3

License

MIT

Unpacked Size

13.4 kB

Total Files

10

Last publish

Collaborators

  • 0x4096