Skip to content

Tanstack Start's server integration doesn't send to sentry #16985

Closed

Description

@nick-potts

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/tanstackstart-react

SDK Version

9.38.0

Framework Version

1.127.3

Link to Sentry event

No response

Reproduction Example/SDK Setup

https://github.com/nick-potts/sentry-tanstack-start-basic

I've taken the basic-start from the tanstack docs and followed the instructions for adding it. The only things I've done differently:

  • Client Sentry is enabled: false. The client stuff works, so I disabled it in this repo.

Steps to Reproduce

Browse to boom and api-boom. neither fire server side events.

Note, the beforeSend is triggering, just nothing gets sent to sentry.

Expected Result

Events are sent to sentry

Actual Result

No events are sent from the server client

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 14, 2025
  2. andreiborza commented on Jul 15, 2025

    @andreiborza
    Member

    Hi @nick-potts, thanks for filing this and providing a reproduction repo. We'll take a look.

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 15, 2025
  4. s1gr1d commented on Jul 16, 2025

    @s1gr1d
    Member

    I just took a look at your reproduction and you are definitely right to question this. The SDK is currently in Alpha state and mainly offers functionality for the client-side. Automatic error monitoring on the server-side is not yet included. I updated the docs and the tracking issue to make the current state more obvious.

    I will close this as this is not a bug, but a feature that was not yet implemented. You can always capture errors manually with captureException. However, automatic error capturing requires the Nitro server to be instrumented.

  5. nick-potts commented on Jul 17, 2025

    @nick-potts
    Author

    Thanks for the info, just to be clear - nothing works server side yet? No spans, errors, logs etc?

  6. s1gr1d commented on Jul 17, 2025

    @s1gr1d
    Member

    If you call the functions manually it works, but automatic instrumentation (without you having to call the functions) for TanStack Start's current server setup is not yet implemented.

    As TanStack Start is still on v0 and they plan to use Nitro on the server with v1, we want to optimize for their Nitro setup in v1.

  7. Bryson14 commented on Apr 11, 2026

    @Bryson14

    Are you not seeing logs because you are running tanstack start on a serverless environment, like Cloudflare Workers? That would shut off the compute before sentry could flush

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions