Skip to content

Commit 0d58784

Browse files
committed
Update
1 parent a78c9a8 commit 0d58784

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66

77
- **feat(tanstackstart-react): Trace server functions ([#18500](https://github.com/getsentry/sentry-javascript/pull/18500))**
88

9-
To enable tracing for server-side requests, you can now explicitly define a [server entry point](https://tanstack.com/start/latest/docs/framework/react/guide/server-entry-point) in your application and wrap your request handler with `wrapFetchWithSentry`.
10-
11-
```typescript
12-
// src/server.ts
13-
import { wrapFetchWithSentry } from '@sentry/tanstackstart-react';
14-
import handler, { createServerEntry } from '@tanstack/react-start/server-entry';
15-
16-
export default createServerEntry(
17-
wrapFetchWithSentry({
18-
fetch(request: Request) {
19-
return handler.fetch(request);
20-
},
21-
}),
22-
);
23-
```
9+
To enable tracing for server-side requests, you can now explicitly define a [server entry point](https://tanstack.com/start/latest/docs/framework/react/guide/server-entry-point) in your application and wrap your request handler with `wrapFetchWithSentry`.
10+
11+
```typescript
12+
// src/server.ts
13+
import { wrapFetchWithSentry } from '@sentry/tanstackstart-react';
14+
import handler, { createServerEntry } from '@tanstack/react-start/server-entry';
15+
16+
export default createServerEntry(
17+
wrapFetchWithSentry({
18+
fetch(request: Request) {
19+
return handler.fetch(request);
20+
},
21+
}),
22+
);
23+
```
2424

2525
- **feat(vue): Add TanStack Router integration ([#18359](https://github.com/getsentry/sentry-javascript/pull/18359))**
2626

0 commit comments

Comments
 (0)