You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(elysia): Address PR review feedback on Elysia SDK guide
Align the Elysia getting-started guide with other JS guides per
reviewer feedback: add onboarding option buttons, sendDefaultPii,
source maps step, structured verify section with issues/tracing/logs,
troubleshooting expandable, and suppress inapplicable pages
(Session Replay, Installation Methods) for the Elysia platform.
Co-Authored-By: Claude <noreply@anthropic.com>
The stack traces in your Sentry errors probably won't look like your actual code. To fix this, upload your source maps to Sentry.
127
+
The easiest way to do this is by using the Sentry Wizard:
128
+
129
+
```bash
130
+
npx @sentry/wizard@latest -i sourcemaps
90
131
```
91
132
92
-
The SDK re-exports everything from `@sentry/bun`, so all Sentry APIs (like `captureException`, `startSpan`, `setUser`, `setTag`) are available directly from `@sentry/elysia`.
133
+
## Step 4: Verify Your Setup
93
134
94
-
## Step 3: Verify Your Setup
135
+
Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project.
95
136
96
-
Add a test route that throws an error:
137
+
### Issues
138
+
139
+
First, let's verify that Sentry captures errors and creates issues in your Sentry project. Add the following route to your app, which triggers an error that Sentry will capture:
97
140
98
141
```javascript
99
142
app.get("/debug-sentry", () => {
100
143
thrownewError("My first Sentry error!");
101
144
});
102
145
```
103
146
104
-
Visit `/debug-sentry` in your browser. The error should appear in your Sentry project within a few moments.
147
+
<OnboardingOptionoptionId="performance">
148
+
149
+
### Tracing
150
+
151
+
To test your tracing configuration, update the previous code snippet by starting a trace to measure the time it takes for the execution of your code:
Finally, head over to your project on [Sentry.io](https://sentry.io/) to view the collected data (it takes a couple of moments for the data to appear).
0 commit comments