HTTP in / out
Server spans keyed by route template, client spans for outbound calls, with W3C context carried across services.
OBSERVABILITY · EVERY HOP ACCOUNTED FOR
Most platforms trace the request and lose the message. ffex keeps one context across synchronous calls, async stages, datastores and background work — because that is where the hard failures live.
01 / TRACE COVERAGE
Instrumentation is a platform concern, not a per-service patch. Context is created at the edge, carried across every hop, and joined across queues with explicit links.
Server spans keyed by route template, client spans for outbound calls, with W3C context carried across services.
Spans for the handshake and for message-handling batches, so streaming sessions stay attributable.
Unary and streaming interceptors record method, status, duration and message size — never payloads.
One consumer span per batch, linked to every contributing producer context. Ordering, commits and retries are untouched.
Statement-level client spans: system, operation class, connection-pool wait and errors. Parameter values are not recorded.
Cache operations traced with pool wait and errors; keys and values stay out of spans.
Document operations traced by command category and pool wait; document bodies are never attached.
Context is bridged across thread pools and goroutines explicitly — no background context, no orphaned spans.
Background jobs and schedulers open their own root spans and continue the originating context where there is one.
Outbound third-party calls carry context and record status and duration; credentials and payloads are excluded.
Every entry point accepts W3C trace context and every exit point emits it. A request that arrives without one gets a new root, not a silent gap.
A Kafka batch gets one consumer span linked to every contributing producer span. A message's origin survives the queue without pretending to be a child of one producer.
Structured JSON logs include trace_id and span_id, so trace-to-log and log-to-trace jumps take one step — and a search by ID reconstructs the story.
Sampling rules are explicit, sensitive payloads never enter spans or logs, and dropping telemetry cannot change order, commit or ledger semantics.
02 / SIGNALS & OPERATIONS
Traces, metrics and logs share service identity and trace context. The on-call engineer starts with a symptom and lands on the exact hop that failed.
TRACES
One request or message path across every service, queue and datastore, with span links preserving async causality.
METRICS
Counters, histograms and saturation signals with bounded labels — no order IDs or user IDs in the time series.
LOGS
JSON logs with service, environment, trace and span identity, plus an event name and result — queryable by trace in one step.
DASHBOARDS / ALERTING
Symptom-level dashboards for each domain, with alert rules tied to operator outcomes rather than raw noise.
SAMPLING / SAFETY
Sampling policy is explicit, payloads are filtered at the source, and telemetry toggles never block trading, commits or ledger writes.
OPERATIONS
Health checks, runbook-driven incident flow, release gates and trace-based post-mortems are part of what gets delivered.
03 / INSTRUMENTATION PRINCIPLES
The hard requirement is not coverage — it is that coverage never changes business outcomes. Everything here is built around that.
Tracing, metrics and logging live in versioned component libraries. Business services declare what they need; they never reimplement plumbing.
Instrumentation is switchable. Turning telemetry off, or losing the exporter, cannot alter ordering, commits, retries or ledger effects.
Context travels in standard headers and message metadata. Cause is recorded as it happens, not inferred from timestamps later.
Secrets, tokens and full payloads are excluded by default. Trace data is production data, with retention and access rules.
NEXT STEP
In a scoped pilot we can show the same trace across a live environment — and what an on-call engineer actually sees when something breaks at night.
An NDA can be in place before any environment access.