Skip to content

Commit 25df67d

Browse files
committed
chore(changelog): Add entry for tanstack start wrapFetchWithSentry
1 parent 8da7295 commit 25df67d

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@
44

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
- **feat(tanstackstart-react): Trace server functions ([#18500](https://github.com/getsentry/sentry-javascript/pull/18500))**
8+
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+
```
24+
725
- **feat(vue): Add TanStack Router integration ([#18359](https://github.com/getsentry/sentry-javascript/pull/18359))**
826

927
The `@sentry/vue` package now includes support for TanStack Router. Use `tanstackRouterBrowserTracingIntegration` to automatically instrument pageload and navigation transactions with parameterized routes:

0 commit comments

Comments
 (0)