From 25df67d50ad60fec1f00e680e452eb4afcc02a98 Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Thu, 18 Dec 2025 10:50:08 +0100 Subject: [PATCH 1/4] chore(changelog): Add entry for tanstack start wrapFetchWithSentry --- CHANGELOG.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfcb48fb1a83..263770f6563b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,24 @@ - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott +- **feat(tanstackstart-react): Trace server functions ([#18500](https://github.com/getsentry/sentry-javascript/pull/18500))** + +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`. + +```typescript +// src/server.ts +import { wrapFetchWithSentry } from "@sentry/tanstackstart-react"; +import handler, { createServerEntry } from "@tanstack/react-start/server-entry"; + +export default createServerEntry( + wrapFetchWithSentry({ + fetch(request: Request) { + return handler.fetch(request); + }, + }) +); +``` + - **feat(vue): Add TanStack Router integration ([#18359](https://github.com/getsentry/sentry-javascript/pull/18359))** The `@sentry/vue` package now includes support for TanStack Router. Use `tanstackRouterBrowserTracingIntegration` to automatically instrument pageload and navigation transactions with parameterized routes: From a78c9a861f3e61e0577d602bf1682685360d3cf7 Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Thu, 18 Dec 2025 10:55:59 +0100 Subject: [PATCH 2/4] yarn fix --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 263770f6563b..901f1bc3df50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,15 +10,15 @@ To enable tracing for server-side requests, you can now explicitly define a [ser ```typescript // src/server.ts -import { wrapFetchWithSentry } from "@sentry/tanstackstart-react"; -import handler, { createServerEntry } from "@tanstack/react-start/server-entry"; +import { wrapFetchWithSentry } from '@sentry/tanstackstart-react'; +import handler, { createServerEntry } from '@tanstack/react-start/server-entry'; export default createServerEntry( wrapFetchWithSentry({ fetch(request: Request) { return handler.fetch(request); }, - }) + }), ); ``` From 0d5878402f07883849d4dc7d042c791307fdc04f Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Thu, 18 Dec 2025 11:13:36 +0100 Subject: [PATCH 3/4] Update --- CHANGELOG.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 901f1bc3df50..f7b7fc9c8a9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,21 +6,21 @@ - **feat(tanstackstart-react): Trace server functions ([#18500](https://github.com/getsentry/sentry-javascript/pull/18500))** -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`. - -```typescript -// src/server.ts -import { wrapFetchWithSentry } from '@sentry/tanstackstart-react'; -import handler, { createServerEntry } from '@tanstack/react-start/server-entry'; - -export default createServerEntry( - wrapFetchWithSentry({ - fetch(request: Request) { - return handler.fetch(request); - }, - }), -); -``` + 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`. + + ```typescript + // src/server.ts + import { wrapFetchWithSentry } from '@sentry/tanstackstart-react'; + import handler, { createServerEntry } from '@tanstack/react-start/server-entry'; + + export default createServerEntry( + wrapFetchWithSentry({ + fetch(request: Request) { + return handler.fetch(request); + }, + }), + ); + ``` - **feat(vue): Add TanStack Router integration ([#18359](https://github.com/getsentry/sentry-javascript/pull/18359))** From fce8cd4a3f6a85e2c0dd38f01b327a671585604f Mon Sep 17 00:00:00 2001 From: Nicolas Hrubec Date: Thu, 18 Dec 2025 11:27:05 +0100 Subject: [PATCH 4/4] yarn fix --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14ed00eb4589..836db5703099 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ }, }), ); + ``` - **feat(core): Apply scope attributes to logs** ([18184](https://github.com/getsentry/sentry-javascript/pull/18184))