I have something far about RRSS these months, a lot of things personally and professionally. I want to share this time a good experience on my recent project, something that maybe few developers take in mind.
Let's Begin!!
✅ Most software engineers only discover the true value of Observability after something critical breaks in production.
You are deep in the zone building a new feature when an urgent support ticket gets escalated with notoriously vague reports:
"The website is super slow."
"Checkout is failing."
"The API is timing out."
In modern, distributed architectures, the real headache is rarely fixing the bug once you find it—the real challenge is finding where the problem actually lives.
A single user action—like clicking "Place Order"—might travel through a frontend, a checkout service, a payment gateway, a database, a cache, and third-party APIs before returning a response.
Working heavily with telemetry and observability on my current project has reinforced a crucial lesson: writing clean code that passes local tests is no longer enough.
Here are the core foundations every developer (from Junior to Senior) needs to master to build resilient systems.
🧭 Monitoring vs. Observability (and the Role of Telemetry)
While often used interchangeably, they represent two very different operational mindsets:
Telemetry: The raw material. It is the operational data your application emits while running (a request starting, a SQL query taking 120ms, a connection timeout).
Monitoring: Focuses on known failure modes. It watches specific metrics and alerts you when predefined thresholds are crossed (e.g., CPU > 90%). It tells you WHEN something is wrong.
Observability: A property of the system. It gives you the power to debug unknown failure modes from the outside without having to deploy new code just to add more logs. It tells you WHY it is failing.
🚦 The Four Golden Signals
If you are instrumenting a service from scratch and don't know what to measure first, Google's Site Reliability Engineering (SRE) book defines four universal metrics to evaluate the health of any user-facing system:
⏱️ Latency: How long it takes to serve a request.
- Senior Tip: Never trust averages. If 99 users get a 10ms response and 1 user experiences a 10-second hang, your average sits at a misleading 110ms—hiding the fact that a customer had a miserable experience. Rely on latency percentiles (p50, p95, p99) to measure your true worst-case performance.
📈 Traffic: How much demand is being placed on your system (HTTP requests/sec, queued messages). It provides vital context: high latency during a traffic spike points to a capacity bottleneck, whereas high latency during low traffic usually points to a bug in your code.
❌ Errors: The rate of requests that fail—either explicitly (HTTP 500), implicitly (HTTP 200 returning corrupted payloads), or by policy (exceeding a configured timeout).
🔥 Saturation: How "full" your service is relative to its most constrained resource (CPU, memory, disk I/O, or database connection pools). Once saturation approaches 100%, tail latency percentiles almost always degrade rapidly.
These are terms we have heard and it should be cleared and part of the goals to check in our products in production!
🏛️ The Three Pillars of Observability
To track these golden signals, modern systems emit three complementary types of telemetry:
📊 Metrics (How many? How much?)
Numeric values aggregated over time (e.g., http_requests_total{service="checkout", status="500"}).
They are lightweight, fast to query, and ideal for real-time alerting.
Watch Out for High Cardinality: Metrics use key-value pairs called labels for filtering. Using service="payment" creates a single time series;
however, if you make the mistake of attaching user_id="12345" across millions of users, you will generate millions of time series that can overwhelm your monitoring storage and query performance.
🧵 Distributed Traces (Where is it happening?)
A Trace represents the end-to-end journey of a single request across all your microservices, broken down into individual units of work called Spans (such as a database query or an HTTP call).
Through context propagation (passing a unique trace_id across service boundaries), you can visually pinpoint exactly where a request bottlenecks:
📝 Logs (What exactly happened?)
Immutable, timestamped records of discrete events.
While metrics alert you to an error spike and traces point to the culprit service, logs provide the exact code-level context (e.g., ERROR [payment-service]: Connection refused by gateway).
Best Practice: Always use Structured Logging (JSON) and inject the trace_id into every log entry.
✅ A good tip:
💡 The Superpower of Correlation: The real magic happens when you connect all three pillars.
- A metric triggers a latency alert ➡️
- You jump to the traces from that timeframe to spot the slow microservice ➡️
- And you land directly in the logs filtered by that exact trace_id to see the stack trace. This cuts your Mean Time to Resolution (MTTR) from hours down to minutes.
When you are landing o pushing something to production there is something important to setup!!
🎯 Reliability Management: SLIs, SLOs, SLAs, and Error Budgets
SLI (Service Level Indicator): The actual quantitative metric you measure (e.g., 99.95% of requests succeed).
SLO (Service Level Objective): Your internal reliability target (e.g., maintain 99.9% availability over a 30-day window).
SLA (Service Level Agreement): The legal contract with your customers (always looser than your internal SLO).
Error Budget: If your SLO is 99.9%, you have a 0.1% allowed failure margin. If recent deployments burn through that budget, the team pauses new feature releases to prioritize stability and tech debt.
🚀 The Industry Standard: OpenTelemetry (OTel)
Today, you don't need to lock yourself into a single vendor to achieve this. OpenTelemetry has emerged as the industry standard for instrumenting, generating, and collecting metrics, traces, and logs in a vendor-agnostic way—allowing you to ship telemetry to Prometheus, Jaeger, Grafana, Datadog, or New Relic without rewriting your application code.
Understanding how our software behaves in the wild is what truly levels us up as software engineers.
Are you already correlating logs and traces in your current projects? Share your experience in the comments! 👇








