ADR-00004 — Observability Stack Tool Selection

By Engineering Team•September 24, 2026•5 min read

Context

Once the platform-wide identifier contract was decided (ADR-00003), an actual toolchain was still needed to collect, store, correlate, and visualize traces, logs, and metrics — across three different backend language runtimes (Go, Rust, Node) plus a non-HTTP Firebase Functions runtime, in local development today and eventually in a cloud production deployment whose vendor has not yet been chosen.


Decision Drivers (FRs & NFRs)

See SR-003 for the full requirement list.

  • FR-16 / FR-18 (Local Collection & Visualization Pipeline): traces, metrics, and logs must all be collectable and queryable together in local development today.
  • FR-20 (Vendor-Neutral Export Contract): however telemetry is emitted by a service must not hard-code one specific monitoring vendor.
  • FR-21 (Cloud Monitoring Export Target — Gap): the same pipeline must be extensible to a managed cloud monitoring service later, without re-instrumenting every service.
  • NFR-01 (Cross-Language Contract Parity): one toolchain, not a different one per language.

Options Evaluated

Option 1 — OTel Collector as the single ingestion chokepoint, fanning out to Tempo, Prometheus, and Loki, unified in Grafana (CHOSEN)

Every service exports telemetry over the vendor-neutral OTLP protocol to one OTel Collector. The Collector routes traces to Tempo, exposes metrics for Prometheus to scrape, and logs are shipped by Vector into Loki. Grafana provides one visualization layer across all three, with trace-to-log cross-linking.

  • Pros:
    • Every language already speaks OTLP — no per-vendor SDK or agent needed per service, and no per-language divergence in how telemetry is emitted (NFR-01).
    • Decouples “how a service emits telemetry” from “where it ends up”: a future cloud export is a matter of re-pointing the Collector’s exporter, not re-instrumenting every service (FR-20/FR-21).
    • Fully self-hosted and works offline in local development and CI — no live cloud credentials or connectivity needed just to view a trace while building a feature.
    • One open-source stack covers all three signal types (traces, metrics, logs) instead of three separately-learned tools.
  • Cons & Accepted Trade-offs:
    • No managed/hosted version of this exact stack is operated today — cloud production still requires either self-hosting Tempo/Loki/Prometheus at scale or bridging the Collector to a managed backend; this is exactly the tracked gap in TD-03.
    • The Collector itself becomes a new piece of shared infrastructure to operate and configure correctly — a misconfigured exporter silently drops a signal type rather than failing loudly.

Option 2 — Direct-to-vendor SaaS APM agent per service (e.g. a commercial APM product)

Each service runs a vendor-specific agent that ships traces, metrics, and logs straight to a commercial monitoring SaaS.

  • Pros:
    • Turnkey production-grade dashboards, alerting, and retention with no self-hosted collection/storage infrastructure to operate.
    • One vendor contract and one UI covers all three signal types out of the box, with no local integration work.
  • Cons (Why Rejected):
    • Locks the platform into a paid, per-host/per-GB vendor dependency before a cloud provider or a production monitoring budget has even been decided.
    • Typically needs a vendor-specific SDK or agent per language instead of the vendor-neutral OTLP wire format — reintroducing exactly the kind of per-service, per-vendor bespoke instrumentation the identifier contract in ADR-00003 was designed to avoid.

Option 3 — Fragmented per-team tooling (each service team picks its own logging/metrics tool)

No shared collection pipeline; each team wires up whatever observability tool it prefers for its own service.

  • Pros:
    • No shared infrastructure to agree on, fund, or operate centrally.
    • A team can move fastest with a tool it already knows, with no coordination overhead.
  • Cons (Why Rejected):
    • Directly defeats the single-correlation-key and centralized-log-search requirements (BR-01/BR-06 in BRD-003) — there would be no single place to search across services.
    • Makes onboarding a new service require its own bespoke observability decision instead of reusing a documented, ready-made contract (violates BR-03).

Option 4 — Build directly against a single cloud vendor’s monitoring service from day one, skip a local-dev-equivalent stack

Skip a local, self-hosted observability stack entirely and instrument every service directly against one cloud vendor’s monitoring product (e.g. a specific cloud provider’s tracing/metrics/logging suite), even before that vendor is the platform’s committed cloud target.

  • Pros:
    • No later “bridging” step from a local stack to a cloud one — the local and production target would be identical from the start.
  • Cons (Why Rejected):
    • Makes local development and CI dependent on live cloud credentials and connectivity for something as basic as viewing a trace while writing code.
    • Locks the platform’s instrumentation to one cloud vendor’s proprietary telemetry format before that vendor has actually been chosen for production — the OTel-based design in Option 1 is specifically structured so this choice can be deferred without cost (see BR-08 in BRD-003, tracked as TD-03).

Final Decision

Option 1 is selected. It is the only candidate that gives every language the same vendor-neutral emission path, works fully offline for local development, and keeps the eventual choice of a cloud monitoring vendor a configuration decision at the Collector rather than a re-instrumentation project across every service. Which cloud vendor to export to, and how, remains an open, tracked gap — see TD-03.