Skip to content

Please provide a tutorial to help integrate Sentry to debug front-end exceptions. #5686

@ChuanqiTan

Description

@ChuanqiTan

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?

  1. 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.

  2. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAnything you want improved

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions