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

2.1.0 • Public • Published

rjweb-server

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.config({
    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

30

Version

2.1.0

License

MIT

Unpacked Size

12.9 kB

Total Files

10

Last publish

Collaborators

  • 0x4096