-
Book Overview & Buying
-
Table Of Contents
Full-Stack React, TypeScript, and Node - Second Edition
By :
We started this chapter by drawing a clear line between monitoring and observability. Monitoring tells you something is wrong. Observability helps you figure out why. Both are essential, and they complement each other.
Logs, metrics, and traces each answer different questions. Logs tell you what happened. Metrics tell you how much and how fast. Traces tell you where the time went. The value multiplies when you correlate all three, jumping from a log entry to its trace or from a slow trace to the metrics for that time window.
OpenTelemetry gave us vendor-agnostic instrumentation for collecting telemetry data. With a single instrumentation file and no changes to our route handlers, we got automatic tracing for Express routes, HTTP calls, and Prisma database queries, plus basic metrics export. The Grafana LGTM stack let us visualize those traces locally and follow a request from the API entry point down to the SQL query. Log correlation was introduced conceptually and can be added...
Change the font size
Change margin width
Change background colour