-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Please provide a tutorial, which can be written in the official blog, to help integrate Sentry to debug frontend exceptions.
-
Which feature do you want to improve? (and what problem does it have)
Frontend exception debug -
What is the benefit of the enhancement?
Sentry is very important in the frontend exception debugging. Without the support of Sentry, we cannot quickly resolve the exceptions encountered by the frontend.
Detail:
Because frontend_exception_handler will handle all frontend exception, but we MUST go back to the Frontend to report the exception to Sentry. How can I catch frontend exception by Sentry SDK?
-
I tried to use return rx.run_script(...) in frontend_exception_handler to let the frontend report the exception. However, this did not work. I suspect that the frontend exception handler does not allow js code to be executed through the return value.
-
I also tried to disable reflex's frontend exception handling in rx.App(frontend_exception_handler=None) and let Sentry take over. But an error occurred:
ValueError: Provided custom frontend exception handler NoneType is not a function.
So, how can I integrate Sentry into Reflex? Such front-end debugging tools are too important for us. And we must report exception to Sentry in frontend.
Thank you very much for help!