feat(elysia): @sentry/elysia - Alpha Release (#19509)
New Sentry SDK for the Elysia web framework, supporting both Bun and Node.js runtimes.
Note: This is an alpha release. Please report any issues or feedback on GitHub.
Features
onError hook; 3xx/4xx ignored by default. Customizable with shouldHandleError.GET /users/:id).sentry-trace and baggage headers propagated automatically on incoming/outgoing requests.Usage
import * as Sentry from '@sentry/elysia';
import { Elysia } from 'elysia';
Sentry.init({ dsn: '__DSN__', tracesSampleRate: 1.0 });
const app = Sentry.withElysia(new Elysia());
app.get('/', () => 'Hello World');
app.listen(3000);
ctx argument to Workflow.do user callback (#19891).withResponse() on Anthropic instrumentation (#19935)internal_error as span status for Vercel error spans (#19921)node to nest metadata (#19875)file-type dependency (#19824)buildMethodPath utility from openai (#19969)@elysiajs/opentelemetry dependency (#19947)Work in this release was contributed by @roli-lpci. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 25.08 KB |
| @sentry/browser - with treeshaking flags | 23.6 KB |
| @sentry/browser (incl. Tracing) | 41.67 KB |
| @sentry/browser (incl. Tracing, Profiling) | 46.22 KB |
| @sentry/browser (incl. Tracing, Replay) | 79.57 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 69.4 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 84.15 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 96.1 KB |
| @sentry/browser (incl. Feedback) | 41.48 KB |
| @sentry/browser (incl. sendFeedback) | 29.64 KB |
| @sentry/browser (incl. FeedbackAsync) | 34.57 KB |
| @sentry/browser (incl. Metrics) | 26.33 KB |
| @sentry/browser (incl. Logs) | 26.46 KB |
| @sentry/browser (incl. Metrics & Logs) | 27.13 KB |
| @sentry/react | 26.8 KB |
| @sentry/react (incl. Tracing) | 43.96 KB |
| @sentry/vue | 29.42 KB |
| @sentry/vue (incl. Tracing) | 43.48 KB |
| @sentry/svelte | 25.1 KB |
| CDN Bundle | 27.69 KB |
| CDN Bundle (incl. Tracing) | 42.55 KB |
| CDN Bundle (incl. Logs, Metrics) | 28.54 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 43.39 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 66.69 KB |
| CDN Bundle (incl. Tracing, Replay) | 78.52 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 79.4 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 83.96 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 84.82 KB |
| CDN Bundle - uncompressed | 80.76 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 125.61 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 83.56 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 128.41 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 204.32 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 239.75 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 242.53 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 252.36 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 255.13 KB |
| @sentry/nextjs (client) | 46.29 KB |
| @sentry/sveltekit (client) | 42.11 KB |
| @sentry/node-core | 55.08 KB |
| @sentry/node | 169.44 KB |
| @sentry/node - without tracing | 94.16 KB |
| @sentry/aws-serverless | 110.78 KB |
Fetched March 26, 2026