Skip to content

feat(elysia): Elysia SDK#19509

Draft
logaretm wants to merge 14 commits intodevelopfrom
awad/js-1542-add-elysia-integration
Draft

feat(elysia): Elysia SDK#19509
logaretm wants to merge 14 commits intodevelopfrom
awad/js-1542-add-elysia-integration

Conversation

@logaretm
Copy link
Member

@logaretm logaretm commented Feb 24, 2026

Adds integration for Elysia, captures errors and collects traces.

CleanShot 2026-03-04 at 22 19 40@2x

TODOs:

  • Plugin API to address registration order.
  • Figure out a way to drop the root span or parameterize it.
  • Transform into an SDK

Closes #18956

@linear
Copy link

linear bot commented Feb 24, 2026

JS-1542 Add Elysia

@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 25.62 kB - -
@sentry/browser - with treeshaking flags 24.12 kB - -
@sentry/browser (incl. Tracing) 42.42 kB - -
@sentry/browser (incl. Tracing, Profiling) 47.09 kB - -
@sentry/browser (incl. Tracing, Replay) 81.24 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70.86 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 85.94 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 98.2 kB - -
@sentry/browser (incl. Feedback) 42.43 kB - -
@sentry/browser (incl. sendFeedback) 30.29 kB - -
@sentry/browser (incl. FeedbackAsync) 35.34 kB - -
@sentry/browser (incl. Metrics) 26.79 kB - -
@sentry/browser (incl. Logs) 26.93 kB - -
@sentry/browser (incl. Metrics & Logs) 27.61 kB - -
@sentry/react 27.37 kB - -
@sentry/react (incl. Tracing) 44.76 kB - -
@sentry/vue 30.07 kB - -
@sentry/vue (incl. Tracing) 44.27 kB - -
@sentry/svelte 25.64 kB - -
CDN Bundle 28.16 kB - -
CDN Bundle (incl. Tracing) 43.25 kB - -
CDN Bundle (incl. Logs, Metrics) 29 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 44.09 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 68.08 kB - -
CDN Bundle (incl. Tracing, Replay) 80.13 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 80.99 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 85.64 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 86.53 kB - -
CDN Bundle - uncompressed 82.34 kB - -
CDN Bundle (incl. Tracing) - uncompressed 128.06 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 85.18 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 130.89 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 208.84 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 244.94 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 247.76 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 257.85 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 260.66 kB - -
@sentry/nextjs (client) 47.17 kB - -
@sentry/sveltekit (client) 42.88 kB - -
@sentry/node-core 52.18 kB +0.02% +9 B 🔺
@sentry/node 174.48 kB +0.01% +4 B 🔺
@sentry/node - without tracing 97.33 kB +0.01% +8 B 🔺
@sentry/aws-serverless 113.13 kB +0.01% +7 B 🔺

View base workflow run

@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2026

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 8,862 - 8,912 -1%
GET With Sentry 1,681 19% 1,675 +0%
GET With Sentry (error only) 6,242 70% 6,038 +3%
POST Baseline 1,209 - 1,205 +0%
POST With Sentry 559 46% 595 -6%
POST With Sentry (error only) 1,047 87% 1,052 -0%
MYSQL Baseline 3,268 - 3,293 -1%
MYSQL With Sentry 451 14% 478 -6%
MYSQL With Sentry (error only) 2,696 82% 2,668 +1%

View base workflow run

logaretm and others added 8 commits February 26, 2026 09:53
Set the transaction name from the parameterized route on the isolation
scope in the onError handler so error events include the correct
transaction name (e.g. `GET /test-exception/:id`).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@logaretm logaretm changed the title feat(node-core/bun): Add Elysia Integration feat(elysia): Elysia SDK Mar 5, 2026
logaretm and others added 3 commits March 5, 2026 13:31
Add tests for request metadata on errors, POST body capture, parent-child
spans, and trace propagation. Propagation tests for outgoing fetch are
marked fixme due to Bun's native fetch not emitting undici diagnostics
channels.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Capture errors with status >= 500 or <= 299 (unusual status in error
handler). 3xx and 4xx are not captured by default. Adds unit tests for
withElysia and an E2E test for the <= 299 case.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add E2E test for thrown string errors (non-Error objects).
Add fixme test documenting that isolation scopes leak between
concurrent requests — setUser/setTag on the isolation scope
is shared across requests since per-request scope forking
is not yet implemented.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Elysia

1 participant