Skip to content

Commit fa54c95

Browse files
committed
test: use the node adapter
1 parent e9f9657 commit fa54c95

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • dev-packages/e2e-tests/test-applications/elysia-node/src

dev-packages/e2e-tests/test-applications/elysia-node/src/app.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as Sentry from '@sentry/elysia';
22
import { Elysia } from 'elysia';
3+
import { node } from '@elysiajs/node';
34

45
Sentry.init({
56
environment: 'qa', // dynamic sampling bias to keep transactions
@@ -9,7 +10,7 @@ Sentry.init({
910
tracePropagationTargets: ['http://localhost:3030', '/external-allowed'],
1011
});
1112

12-
const app = Sentry.withElysia(new Elysia());
13+
const app = Sentry.withElysia(new Elysia({ adapter: node() }));
1314

1415
// Simple success route
1516
app.get('/test-success', () => ({ version: 'v1' }));

0 commit comments

Comments
 (0)