The existing monolith emitted no metrics or traces, making failure diagnosis a guessing game.

This hidden latency and error rate caused high toil and occasional revenue loss.

The team solved it by: 👉 Instrument key entry points with lightweight metrics and distributed tracing. 👉 Deploy a sidecar collector to aggregate logs and forward them to a central store. 👉 Create dashboards and alerts to surface latency spikes and error bursts.

The parts that matter: 1️⃣ OpenTelemetry SDK - adds automatic spans and counters to legacy code 2️⃣ Fluent Bit sidecar - streams structured logs to the observability pipeline

The service became fully observable, reducing mean time to detect incidents and enabling safe incremental refactoring.

Adding instrumentation introduced a small CPU overhead and required a brief deployment window to roll out the sidecar. The team also had to maintain additional configuration for the collector, which added operational complexity.

How do you balance observability depth with performance impact when retrofitting legacy services?