BRD-003 — Platform-Wide Observability & Distributed Tracing
| Metadata | Details |
|---|---|
| Project Name | Platform-Wide Observability & Distributed Tracing |
| Document ID | BRD-2026-OBS-001 |
| Author | Product Management & Engineering Leadership |
| Target Date | Ongoing — foundational, cross-cutting capability |
| Status | Approved |
1. Executive Summary & Business Goal
A single customer-facing action routinely crosses a browser or mobile client, the platform’s API gateway, and several backend services and asynchronous processing steps, before producing a result — this is a property of the platform’s distributed architecture itself, not any one service’s own concern. When that action fails or behaves unexpectedly, on-call engineers and support agents today have no single identifier that reliably ties together every log line and every step for that one operation across everything it touched — each service’s own logs must be manually correlated by timestamp and guesswork.
Observability itself is not just distributed tracing. Traces answer “what path did this operation take and where did it slow down or fail” — but a full incident investigation also needs the actual log lines each service wrote along that path, and the system/performance metrics (request duration, error rate, resource saturation) that indicate when and how badly something degraded, not only that it happened once. The platform already runs a local-development stack that produces all three, queryable together in one place — this document set’s scope is broadened accordingly to cover all three pillars, not tracing alone. Which specific tools make this possible, and why, is documented in this capability’s System Requirements and Architecture Decision Record, not here.
Business Objective
Give every engineer, on-call responder, and support agent a small, fixed set of identifiers that are guaranteed to propagate consistently across every communication channel and every service in the platform — so that “show me everything that happened for this one operation” is always answerable with a single identifier, without bespoke tracing design work in each new service — and ensure that operation’s logs and performance metrics are collected and correlatable by that same identifier, not just its trace. Today this is fully realized in local development; carrying the same capability into a cloud production deployment is a known, currently unbuilt gap — see Technical Debt — Observability & Tracing Gaps.
2. Target Users & Stakeholders
- SRE (Site Reliability Engineering) / On-Call Engineers: Need to reconstruct a full distributed trace for an incident (a failed checkout, a stuck shipment) across every service and hop it touched, without manually stitching together per-service logs.
- Support Agents: Need one identifier they can ask a customer for, or read off a support ticket, that resolves to every log line for that customer’s operation.
- Compliance & Audit Reviewers: Need the audit-trail sink (see BRD-002) to be traceable back to the originating operation via the same identifiers, not a separately invented one.
- Backend Engineers instrumenting a new service: Need a documented, consistent contract to implement against — reusing the same identifiers rather than inventing a new tracking header per service.
3. Scope of Work
In-Scope
- A small, fixed set of platform-wide identifiers for tying one operation’s activity together end-to-end, and where each one is expected to be present (browser, gateway, service-to-service, background/async processing).
- Ensuring every service in the platform — regardless of which team owns it or what it’s built with — implements the same identifier contract, so tracing an operation never depends on which service happens to be involved.
- Making every meaningful step inside a service individually traceable, so a full operation can be reconstructed end-to-end rather than inferred from timestamps.
- A documented rule for extending the contract to a new service or a new way services talk to each other, without inventing a new ad hoc identifier each time.
- Collecting and visualizing performance/system-health metrics (request duration, error rate, resource usage) for every service on a shared dashboard.
- Centralized, searchable log aggregation across every service, cross-linked to the corresponding trace — not just each service’s own local logs.
- The current local-development-only status of the observability capability, and the target shape of a cloud production deployment, as a documented, tracked gap — not yet designed or built.
Out-of-Scope
- Designing or implementing the actual cloud/production monitoring integration (infrastructure configuration, a specific cloud vendor’s setup, alerting-rule definitions) — this document set records the requirement and the gap, not a finished cloud architecture; see Technical Debt — Observability & Tracing Gaps.
- Dashboarding/alerting content itself (which panels, which alert thresholds) — the pipeline that makes logs/metrics/traces available is in scope; the specific dashboards teams choose to build on top of it are not.
- Per-application tracing detail already owned by
ui-application/ui-admin-application’s own documentation (browser/mobile client interceptor wiring) — referenced, not duplicated, here.
4. High-Level Business Requirements
| ID | Business Goal / Feature | Business Need & Impact | Priority |
|---|---|---|---|
| BR-01 | Single Cross-Service Correlation Key | Every log line and step for one logical operation, regardless of how many services it crosses, must be groupable by one identifier — so a support ticket or an alert always resolves to a complete picture. | P0 |
| BR-02 | Full End-to-End Operation Visibility | A request’s full path through the platform must be visualizable as one connected trace, without manually reconstructing it from disjoint per-service logs. | P0 |
| BR-03 | Consistent Contract Across Every Service | Every service in the platform, regardless of team or technology choice, must implement the same identifier contract with the same rules for where it’s expected to appear, so a newly built service needs no bespoke tracing design. | P0 |
| BR-04 | Audit-Trail Traceability | Records held in the audit-trail sink must carry the same correlation identifiers as the operation that produced them, so a compliance review can trace an audit record back to its originating request. | P1 |
| BR-05 | Gateway-Local Request Identification | Every request entering the platform through its API gateway must expose a way to isolate a single gateway-level issue without needing a full end-to-end trace lookup. | P2 |
| BR-06 | Centralized, Correlatable Log Aggregation | An on-call engineer must be able to search every service’s logs for one operation from a single place, and jump from a trace directly to its matching log lines, instead of inspecting each service individually. | P0 |
| BR-07 | System & Performance Metrics Visibility | Request-duration, error-rate, and resource metrics for every service must be collected and visualized on a shared dashboard, so degradation is visible before it becomes a customer-facing incident, not only reconstructable after one via traces/logs alone. | P1 |
| BR-08 | Cloud-Ready Export Path for Production Monitoring | The observability capability built for local development must be extensible to a managed cloud monitoring service once the platform has a real cloud deployment target, without redesigning the instrumentation already built into every service. (Gap — no cloud deployment configuration exists yet; tracked as technical debt, see TD-00003.) | P2 |
5. Success Metrics & KPIs
- Correlation completeness: every step of a traced operation, across every service and every way those services communicate, carries a populated correlation identifier that matches at each hand-off — with the sole documented exception tracked as technical debt (see TD-00003).
- Zero bespoke tracking identifiers: no service introduces a tracking identifier outside the documented contract.
- Step coverage: every meaningful unit of work inside a production service is individually traceable, not just the request as a whole.
- Onboarding cost: a new service or a new way of communicating between services reuses the existing contract with no new identifier design work.
- Log/metric availability: every service’s logs are searchable within seconds of being written, and every service’s request-duration/error-rate metrics are visible on a shared dashboard — both true in local development today.
- Cloud parity readiness: zero — this is the explicit, tracked gap (see BR-08) rather than a metric currently being met; success here is scoped to the local-dev pipeline until a cloud deployment target exists.