Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/tanstackstart/src/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ export function sentryGlobalServerMiddlewareHandler() {
export function wrapStreamHandlerWithSentry<H>(handler: H): H {
return handler;
}

/**
* Wraps the create root route function with Sentry for server-client tracing with SSR.
*/
export function wrapCreateRootRouteWithSentry<F>(createRootRoute: F): F {
return createRootRoute;
}
12 changes: 11 additions & 1 deletion packages/tanstackstart/src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
/**
* Wraps a TanStack Start config.
*/
export function wrapVinxiConfigWithSentry<C>(config: C): C {
export function wrapVinxiConfigWithSentry<C>(
config: C,
// TODO: Expand this type in the future. Right now it is just so that TS doesn't complain for our users when they copy paste from the docs.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
sentryBuildOptions: {
org?: string;
project?: string;
silent?: boolean;
authToken?: boolean;
} = {},
): C {
return config;
}