Usage with the Qwik framework #8867
-
Hi everyone, I would like to know what are the best practices to use Sentry with Qwik, a relatively new web framework with a new approach to performance optimization (resumability). Qwik runs on two sides, server and browser: https://qwik.builder.io/docs/guides/qwik-nutshell/#run-code-only-in-the-browser I didn't try yet but I hope there is no issue if we manually call I know QwikDev/qwik#2618 already exists, but I think this is nice to open the conversation here. Thanks! 🙏🏻 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
The way we have it set up on our end, we have one Sentry project for the UI and one for the server (different DSNs). For the UI, we have the standard browser code in a For the server (we use express), we have the standard express server code in the |
Beta Was this translation helpful? Give feedback.
-
As long as quik themselves does not swallow the error (which it seems like it does from looking at QwikDev/qwik#2618), the respective browser/node sdks should capture the unhandled exceptions that bubble up to global error listeners. The best way to get around the limitation of the error not being exposed it to monkeypatch the method, this is easy to do with an npm git patch https://www.npmjs.com/package/patch-package |
Beta Was this translation helpful? Give feedback.
The way we have it set up on our end, we have one Sentry project for the UI and one for the server (different DSNs).
For the UI, we have the standard browser code in a
useVisibleTask$
.For the server (we use express), we have the standard express server code in the
entry.express.tsx
that Qwik auto-generated.