1.1.1 • Published 5 months ago
elysiajs-sentry v1.1.1
elysiajs-sentry
Sentry plugin for Elysia server.
This plugin has NOT been tested on the Node runtime.
Capture Issues
Capture Traces
Quickstart
- Create your Sentry project.
Assign environment variables (optional).
A. Assign your DSN (from step 1) to
SENTRY_DSN
.B. Assign your environment name (recommend
'development' | 'staging' | 'production'
) toSENTRY_ENVIRONMENT
.Import and use the plugin.
import { sentry } from 'elysiajs-sentry';
import { Elysia } from 'elysia';
const app = new Elysia()
.use(sentry())
.listen(3000);