14
Monitoring and Observability
In the previous chapter, we deployed our application to production. We added health check endpoints, structured logging, and graceful shutdown. The application is live, users are connecting, and everything seems fine. But how do you actually know that it is fine?
Right now, the only way to find out if something is wrong is when a user complains or when a health check fails. By then, the damage is already done. What if you could see inside your running application, follow a single request as it travels from the browser through Express into Prisma and down to PostgreSQL, and spot the slow query before it becomes a timeout?
That is what this chapter is about. We will start by understanding the difference between monitoring ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access