aminya / elysiajs-sentry

Sentry plugin for Elysia server.

Home Page:https://www.npmjs.com/package/elysiajs-sentry

Repository from Github https://github.comaminya/elysiajs-sentryRepository from Github https://github.comaminya/elysiajs-sentry

elysiajs-sentry

Sentry plugin for Elysia server.

This plugin has NOT been tested on the Node runtime.

Capture Issues

Screenshot 2025-01-04 at 2 16 05 PM

Capture Traces

Screenshot 2025-01-04 at 2 15 30 PM

Quickstart

  1. Create your Sentry project.

  2. Assign environment variables (optional).

    A. Assign your DSN (from step 1) to SENTRY_DSN.

    B. Assign your environment name (recommend 'development' | 'staging' | 'production') to SENTRY_ENVIRONMENT.

  3. Import and use the plugin.

import { sentry } from 'elysiajs-sentry';
import { Elysia } from 'elysia';

const app = new Elysia()
  .use(sentry())
  .listen(3000);

About

Sentry plugin for Elysia server.

https://www.npmjs.com/package/elysiajs-sentry

License:MIT License


Languages

Language:TypeScript 100.0%