Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log unknown errors from the client somewhere on the backend #404

Open
jmoggr opened this issue Feb 13, 2025 · 1 comment
Open

Log unknown errors from the client somewhere on the backend #404

jmoggr opened this issue Feb 13, 2025 · 1 comment
Labels
backend Backend, including web server and database ui/ux User interface and user experience

Comments

@jmoggr
Copy link
Collaborator

jmoggr commented Feb 13, 2025

It can be useful to have client side errors logged like any of the other services. This can allow for capturing more detailed errors compared to what users might provide in a ticket, and it also gives us a heads up that users are experiencing errors. It also allows us to capture all errors, instead of just the ones users create tickets for.

There are 3rd party services for helping to manage the instrumentation and logging like sentry.io, or you can just create a new api endpoint and dump the errors in a table somewhere.

This should take less than a day, and really depends on how fancy we want to get with instrumentation and monitoring/alerting.

@jmoggr jmoggr added backend Backend, including web server and database ui/ux User interface and user experience labels Feb 13, 2025
@epatters
Copy link
Member

epatters commented Feb 14, 2025

Good point. Our original, prototype backend, written in Node/TypeScript, had sentry.io running to log errors, but that got lost along the way when we rewrote the backend in Rust. Having an integrated setup to log errors on both the frontend and the backend will surely pay for itself many times over.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend, including web server and database ui/ux User interface and user experience
Projects
None yet
Development

No branches or pull requests

2 participants