Skip to content

docs: ADR-0034, observability as the trust surface; the guide stops claiming end-to-end traces - #43

Merged
cpoder merged 1 commit into
masterfrom
docs/adr-0034-observability
Nov 25, 2026
Merged

cpoder merged 1 commit into
masterfrom
docs/adr-0034-observability

Conversation

@cpoder

@cpoder cpoder commented Nov 25, 2026

Copy link
Copy Markdown
Owner

The observability guide (published at vejas.dev/docs) says "an end-to-end request shows up as a trace across the pipeline". It does not: otlp_payload gives every span a fresh random trace id and no parent, and nothing travels in NATS headers, so a request that crosses three flows is three unrelated traces in the collector.

  • Guide: now says every span is its own trace, and that the cost of the OTLP exporter and of the event ring has not been measured separately (the old text pointed at the benchmarks page, which does not measure them).
  • ADR-0034 (Proposed): how the claim becomes true. Lot A: a W3C traceparent in NATS headers on every publish and consume, parent spans per hop, a hardened hand-rolled exporter, transport test T6 against a stub collector, the cost measured on bench/flow-only.sh. Lot B: a bounded VEJAS_TRACES stream and a panel view that links each hop to its flow version, promote record, proposal and replay diff.
  • ROADMAP Phase 5 and the ADR index point to it; CHANGELOG records the correction.

The ADR was written on 2026-10-24 and left uncommitted since. Its measured state was re-read on v0.6.0 before this PR: the bus moved to async-nats behind core/src/bus.rs (ADR-0035), which becomes the one place headers are written and read; nothing else in the table changed. Line references became function names.

The published book keeps the old sentence until it is republished.

🤖 Generated with Claude Code

…laiming end-to-end traces

The observability guide said "an end-to-end request shows up as a trace
across the pipeline". It does not: every span gets a fresh trace id and no
parent, so a request that crosses three flows is three unrelated traces in
the collector. The guide now says so, and says the cost of the OTLP
exporter and of the event ring has not been measured separately.

ADR-0034 (Proposed) decides how the claim becomes true: a W3C traceparent
in NATS headers on every publish and consume, parent spans per hop, a
hardened hand-rolled exporter, a transport test T6 against a stub
collector, then a bounded VEJAS_TRACES stream and a panel view that links
each hop to its flow version, promote record, proposal and replay diff.

Written on 2026-10-24 and left uncommitted since; the measured state was
re-read on v0.6.0 before this commit (the bus moved to async-nats behind
core/src/bus.rs, nothing else in the table changed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cpoder
cpoder merged commit 491ba69 into master Nov 25, 2026
4 checks passed
@cpoder
cpoder deleted the docs/adr-0034-observability branch November 25, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant