Skip to content

Adjust Sentry with Tanstack Start #16540

Closed as not planned
Closed as not planned

Description

@CarlosZiegler

Problem Statement

As Tanstack Start alphaalready merged intomain` we need adjust code / docs to support new version that will not use Vinxi anymore.

PR => https://docs.sentry.io/platforms/javascript/guides/tanstackstart-react/
Migration => TanStack/router#2863 (comment)

Solution Brainstorm

Adjust code to work without plugin Vinxi ( wrapVinxiConfigWithSentry )

https://docs.sentry.io/platforms/javascript/guides/tanstackstart-react/

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jun 11, 2025
  2. Lms24 commented on Jun 11, 2025

    @Lms24
    Member

    Hey @CarlosZiegler thanks for writing in and for letting us know about this breaking change!
    (Admittedly, I'm a bit confused why TSS is breaking in a minor version but probably there's some reason for this...)

    Since we're a bit short-staffed at the moment, do you by chance already know what needs to be adjusted? If so, we'd happily accept and review PRs :) Just let me know ("no" is of course also a valid answer). Thanks!

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jun 11, 2025
  4. CarlosZiegler commented on Jun 11, 2025

    @CarlosZiegler
    Author

    Hey, thanks for fast answer, I am checking that now, I will be back as I have something :)

  5. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jun 11, 2025
  6. moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 3on Jun 11, 2025
  7. CarlosZiegler commented on Jun 14, 2025

    @CarlosZiegler
    Author

    Hello @Lms24 I trying to setup sentry on my boilerplate, looks like I can see some progress:
    Repository Link => https://github.com/CarlosZiegler/fullstack-start-template

    Tracing working as well :

    Image

    Replay:

    Image

    Insights:

    Image

    Backend:

    Image

    But no issues if throw error on trpc ( we already have 403 error if acess setting page )

    Can you check that if I am doing something wrong ?

    Files related of Sentry setup:

    /vite.config.ts
    /src/client.tsx
    /src/server.tsx
    /src/lib/trpc/init.ts
    /src/routes/__root.tsx

  8. 33 remaining items

  9. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 14, 2025
  10. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 14, 2025
  11. el-buku commented on Aug 12, 2025

    @el-buku

    No status?

  12. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Aug 12, 2025
  13. RulaKhaled commented on Aug 13, 2025

    @RulaKhaled
    Collaborator

    Hey @el-buku, automatic instrumentation (without manually calling the functions) for TanStack Start’s current server setup is not yet implemented. You can read more about it in JS-731. We aim to instrument Nitro in v1.

  14. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Aug 13, 2025
  15. chrisheninger commented on Aug 14, 2025

    @chrisheninger

    Hey @el-buku, automatic instrumentation (without manually calling the functions) for TanStack Start’s current server setup is not yet implemented. You can read more about it in JS-731. We aim to instrument Nitro in v1.

    Hi @RulaKhaled– that linear issue you linked above is a private workspace– can you share any more about what we can expect with the Sentry + TanStack Start implementation?

    For now I've got it configured using @sentry/react and @sentry/vite-plugin– but that only gets me client side error logging/reporting.

    Is there a way for me to manually set up and use @sentry/node or something like that on the server pre-v1 while we wait for TanStack Start to implement global middleware and/or the Nitro implementation coming with v1?

    (I realize that tanstack-start is alpha software and there are likely blockers on both sides, I'm just trying to put together something that works right now and I've read through a handful of GitHub issues in both projects and am having a hard time figuring out the server bit)

    Thanks!

  16. andreiborza commented on Aug 25, 2025

    @andreiborza
    Member

    @chrisheninger sorry about the link. Here's the issue in question: #16985 (comment)

    As for setting things up yourself, you could take some inspiration from https://github.com/getsentry/sentry-javascript/tree/develop/packages/nuxt maybe. You could set up a nitro plugin that hooks into errors and captures them with Sentry but we haven't really explored that yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions