Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
GimmeJob
Sign in
Observability & SRE · Chapter 01 / 08

Observability & SRE

Observability for QA engineers

Tests tell you whether the behaviour you thought of works before release. Observability tells you what the system actually does: in staging, in production, under real load and in failures nobody predicted. For a QA engineer it is the difference between "the end-to-end test is red" and "the payment service timed out on the third retry because its database pool was exhausted".

This chapter covers monitoring versus observability, the signals a system emits, symptoms versus causes, how QA uses telemetry day to day, how to make tests themselves observable, and a real incident on this site that monitoring missed. Later chapters go deeper into logs and metrics.

Prerequisites: QA and testing fundamentals.

Monitoring and observability

The two words are often used interchangeably, but they answer different questions:

MonitoringObservability
QuestionIs a known thing broken?Why is this behaving the way it is?
Built fromPredefined checks, dashboards and thresholdsRich telemetry you can slice in ways you did not plan
Good atKnown failure modes: the site is down, errors above 1%New failure modes: only requests from one client version, with one feature flag, are slow
Typical outputAn alertAn explanation

Monitoring is a subset of what you do with observability. You still need alerts on the things you know can go wrong; observability is what lets you investigate the things you did not know about without shipping new code first. A system is observable when the telemetry it already emits is enough to answer a new question.

The signals

Most telemetry falls into three signals, which OpenTelemetry, the open standard for collecting telemetry, supports as stable or widely used:

SignalWhat it isAnswersCost
LogsTimestamped records of events, ideally structuredWhat exactly happened in this request?Grows with traffic and verbosity
MetricsNumeric measurements aggregated over timeHow much, how often, how fast, across everything?Cheap per data point; grows with label combinations
TracesThe path of one request through services, as a tree of timed spansWhere did the time go, and which service failed?Grows with traffic; usually sampled

OpenTelemetry also defines baggage for passing context, and is developing events and profiles. The signals are most useful together: a metric shows that errors rose, a trace shows which service failed, and the logs of that span show why.

One checkout request, trace id 4bf92f…
   ├─ log:    {"event":"checkout_started","trace_id":"4bf92f…","cart_items":3}
   ├─ metric: http_requests_total{route="/checkout",status="500"} += 1
   ├─ trace:  checkout (2.4 s) → payment (2.1 s, error) → bank-api (timeout)
   └─ log:    {"event":"payment_failed","trace_id":"4bf92f…","reason":"upstream_timeout"}

The shared trace id is what turns three separate data sources into one story. OpenTelemetry log records carry TraceId and SpanId fields for exactly this reason.

Symptoms and causes

Google's SRE book draws a line that is useful for testers too: a symptom is what is broken from the user's point of view; a cause is why.

Symptom (what users see)Possible causes
Checkout returns HTTP 500Database refuses connections; a new release has a bug; a dependency changed its API
Search is slowMissing index; cache cold after deploy; one noisy tenant
Login works but the dashboard is emptyA background job failed; permissions changed; a feature flag is off

Two kinds of monitoring follow from this. Black-box monitoring checks behaviour from the outside, like a user or a test would: is the page up, does the API answer correctly. White-box monitoring uses internal data such as metrics, logs and traces, and can show problems before users feel them or problems hidden by retries. Alert on symptoms; investigate causes with white-box data.

How QA uses observability

SituationWhat to look atWhat you gain
A flaky end-to-end test failsThe server logs and trace for the failing requestThe real failure behind "element not visible": a 500, a timeout, a race
Verifying a releaseError rate and latency before and after the deploy, per endpointRegressions that no test covered
Exploratory testingLogs and errors while you exploreSilent failures: a swallowed exception, a retry storm, a warning nobody reads
Performance testingServer-side latency percentiles, saturation of CPU, memory, connectionsWhere the bottleneck is, not only that there is one
Production incidentsThe first symptom, the timeline, what changedMissing tests and missing alerts to add afterwards
Prioritising testsErrors and slow paths seen in productionTests for what actually breaks, not only for what the specification lists

The common thread: telemetry turns a test result into evidence about the system, and production into a source of test ideas.

Make tests observable

Tests are clients of the system, so they can make their own requests easy to find. The simplest technique is a correlation id: the test generates an id, sends it with every request (for example in an X-Request-Id header or in a W3C traceparent header if the system uses tracing), and the services log it. When the test fails, it can collect exactly the log lines of its own requests.

The code below shows the idea with a list of log events: it finds the events of one test's request and prints the chain that explains the failure.

Python
editable · browser sandbox
Result
Run the code to see the result.

The test only saw a 500 from checkout. The logs of its own request show that the first error was a payment timeout after a retry, which points the investigation at the payment service, not at the web page.

Case study: the disk that filled up

In November 2026 a deployment of this site's AI service failed with a single unhelpful line: scp: write remote ".../gimmejob-ai.env": Failure. The cause was a server disk that was 100% full. Every deployment pulled a new container image and left the previous one behind, and more than a hundred old images had accumulated over five months.

The interesting part for observability is what had already gone wrong unnoticed. A database container used by the site's database playground had crashed eight days earlier, and several other containers were reporting themselves unhealthy. Nothing alerted, because nothing measured disk saturation and nothing checked the playground from the outside. The first visible symptom was a deployment failure in an unrelated pipeline.

The fixes map directly onto this chapter:

  • A saturation signal. The deployment now checks free disk space first and fails with a clear message when less than 2 GB is free, instead of failing on a file upload.
  • Removing the cause. Each deployment deletes the image it replaced.
  • A lesson about black-box checks. A simple external check of the database playground would have shown the broken service on the first day.

Common mistakes

  • Treating dashboards as observability. Dashboards answer questions you already had; you also need data to answer new ones.
  • Signals that cannot be joined. Logs, metrics and traces without a shared request or trace id are three separate puzzles.
  • Alerting on causes. High CPU is not an incident; slow or failing requests are.
  • Only white-box data. Without an external check you learn about outages from users.
  • Tests that leave no trace. A failing test without a correlation id makes server-side investigation guesswork.
  • Ignoring saturation. Disks, connection pools and queues fill slowly and fail suddenly.

Summary

Monitoring checks for known failures; observability lets you ask new questions of the telemetry a system already emits. Logs, metrics and traces each answer different questions, and a shared trace or request id turns them into one story. Alert on symptoms users feel and use white-box data to find causes. As a QA engineer, use telemetry to explain test failures, verify releases, guide exploratory and performance testing and learn from production, and make your own tests easy to find with correlation ids.

Source registry

5 chapter references
What Is Observability? Key Components and Best Practices

Observability as the ability to ask new questions of a system without predicting them in advance, contrasted with threshold-based monitoring.

Honeycomb (vendor article) · article
Source ↗
Signals

The supported signals (traces, metrics, logs, baggage) and those still in development (events, profiles).

OpenTelemetry · official docs
Source ↗
Logs

Log record fields, structured versus semistructured logs, and correlation with traces through TraceId and SpanId.

OpenTelemetry · official docs
Source ↗
Monitoring Distributed Systems

The four golden signals, symptoms versus causes, black-box versus white-box monitoring, and why averages hide slow requests.

Google — Site Reliability Engineering (O'Reilly, 2016) · article
Source ↗
XI. Logs

Logs as time-ordered event streams written to stdout and routed by the environment.

The Twelve-Factor App (Adam Wiggins) · article
Source ↗