Back to Sentry Javascript

Official Sentry SDK for Elysia

packages/elysia/README.md

10.51.01.2 KB
Original Source
<p align="center"> <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank"> </a> </p>

NOTICE: This package is in alpha state and may be subject to breaking changes.

Official Sentry SDK for Elysia

Alpha: This SDK is in alpha stage and may have breaking changes in future releases.

Usage

javascript
import * as Sentry from '@sentry/elysia';
import { Elysia } from 'elysia';

Sentry.init({
  dsn: '__DSN__',
  tracesSampleRate: 1.0,
});

const app = Sentry.withElysia(new Elysia())
  .get('/', () => 'Hello World')
  .listen(3000);
<!-- - [Official SDK Docs](https://docs.sentry.io/platforms/javascript/guides/elysia/) -->