T
TanStackโ€ข9mo ago
quickest-silver

Sentry integration hot tips anyone?

Trying to integrate sentry properly into tanstack start apps.. Can get it to pick up some errors using sentry/react pkg, however using default error boundaries kinda stops the errors properly propagating to sentry, and there is no clear way to gen sourcemaps. Did add the sentry vite plugin, but looks like the sourcemap IDs aren't matching? Any pointers would be great ๐Ÿ™‚
9 Replies
like-gold
like-goldโ€ข8mo ago
Also interested in this
fair-rose
fair-roseโ€ข8mo ago
I am also curious how to implement sentry into tanstack start with both client and server integrations. Is there a plan to have dedicated package for that?
yappiest-sapphire
yappiest-sapphireโ€ข8mo ago
cc @TkDodo ๐Ÿ”ฎ
flat-fuchsia
flat-fuchsiaโ€ข8mo ago
Let me forward this to the sdk team ๐Ÿ™‚
probable-pink
probable-pinkโ€ข8mo ago
https://github.com/getsentry/sentry-javascript/issues/14990 We're definitely wanting a dedicated SDK at some point, and router support was one of the steps on the way. If you drop info on the GH issue it can help us prio the work and identify gaps ๐Ÿ™
GitHub
TanStack Start SDK ยท Issue #14990 ยท getsentry/sentry-javascript
Description We already have a router instrumentation for TanStack Router, but we also want to add a proper e.g. @sentry/tanstack SDK. Add a guide in docs about manually setting this up Add to in-pr...
other-emerald
other-emeraldโ€ข8mo ago
Maybe everyone interested in Sentry for Start can upvote that issue?
fair-rose
fair-roseโ€ข8mo ago
Thanks! Meanwhile, what are you guys using for tracking error on server? Any alternative to sentry already working today?
adverse-sapphire
adverse-sapphireโ€ข7mo ago
I have the same question as @dominikjasek
flat-fuchsia
flat-fuchsiaโ€ข7mo ago
I can't get the Vite plugin to work with the sourcemaps, I get a lot of:
[plugin vite-plugin-tanstack-start-ensure-global-middleware] Sourcemap is likely to be incorrect: a plugin (vite-plugin-tanstack-start-ensure-global-middleware) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help (x194)
[plugin vite-plugin-tanstack-start-ensure-global-middleware] Sourcemap is likely to be incorrect: a plugin (vite-plugin-tanstack-start-ensure-global-middleware) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help (x194)

Did you find this page helpful?