Skip to content

Commit df3bb9f

Browse files
logaretmclaude
andcommitted
fix(elysia): Address review feedback on Elysia SDK docs
- Use correct sentry.javascript.elysia SDK identifier instead of bun - Fix inconsistent tab title casing (node → Node.js) - Clarify shouldHandleError example to avoid double-wrap confusion - Fix alphabetical ordering of elysia/elixir in icon map Co-Authored-By: Claude <noreply@anthropic.com>
1 parent c6c72a8 commit df3bb9f

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/platforms/javascript/guides/elysia/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Elysia
33
description: Learn how to set up Sentry in your Elysia app to capture errors and monitor performance.
4-
sdk: sentry.javascript.bun
4+
sdk: sentry.javascript.elysia
55
fallbackGuide: javascript.bun
66
categories:
77
- javascript
@@ -30,7 +30,7 @@ You need:
3030
bun add @sentry/elysia
3131
```
3232

33-
```bash {tabTitle:node}
33+
```bash {tabTitle:Node.js}
3434
npm install @sentry/elysia @elysiajs/node
3535
# or
3636
yarn add @sentry/elysia @elysiajs/node
@@ -112,7 +112,7 @@ The SDK captures 5xx errors automatically via a global `onError` hook. Client er
112112
You can customize which errors are captured using the `shouldHandleError` option:
113113

114114
```javascript
115-
Sentry.withElysia(app, {
115+
const app = Sentry.withElysia(new Elysia(), {
116116
shouldHandleError: (context) => {
117117
const status = context.set.status;
118118
return status === 500 || status === 503;

src/components/platformIcon.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -490,14 +490,14 @@ const formatToSVG = {
490490
sm: ElectronSVG,
491491
lg: ElectronSVGLarge,
492492
},
493-
elysia: {
494-
sm: ElysiaSVG,
495-
lg: ElysiaSVGLarge,
496-
},
497493
elixir: {
498494
sm: ElixirSVG,
499495
lg: ElixirSVGLarge,
500496
},
497+
elysia: {
498+
sm: ElysiaSVG,
499+
lg: ElysiaSVGLarge,
500+
},
501501
ember: {
502502
sm: EmberSVG,
503503
lg: EmberSVGLarge,

0 commit comments

Comments
 (0)