Skip to content

docs: split observability.md into Reference + How-to + Explanation#56

Merged
lesnik512 merged 7 commits into
mainfrom
docs/tutorials-and-observability-split
Jun 12, 2026
Merged

docs: split observability.md into Reference + How-to + Explanation#56
lesnik512 merged 7 commits into
mainfrom
docs/tutorials-and-observability-split

Conversation

@lesnik512

Copy link
Copy Markdown
Member

F-min — partial. Scope reduced from the spec: ships the observability split + supporting nav + planning artifacts. The two tutorials (Tutorial 1: Your first outbox app; Tutorial 2: Add a Kafka relay) are explicitly deferred to a follow-on PR — the spec's discipline that tutorial code must be executed end-to-end against a clean environment with literal terminal output captured warrants a dedicated session, not a rushed tail-end attempt.

The structural pieces stand on their own and are the meat of F-min in any case.

Summary

  • New docs/concepts/instrumentation-seams.md — Explanation page for "why two instrumentation seams" (recorder vs native middleware). Extracted from the former observability.md § Layering section and expanded with the four-bullet "what each seam physically cannot observe" deep-dive.
  • New docs/usage/setup-prometheus-opentelemetry.md — How-to page for the practical wiring. Direct port of the former Prometheus / OpenTelemetry / native-middleware / both-seams-together setup sections from observability.md, with cross-section references retargeted.
  • docs/usage/observability.md trimmed to Reference shape — the recorder seam API surface, the new event catalog table, the operator PromQL playbook, and the test broker note. Kept at the same URL for SEO continuity (327 → ~100 lines).
  • mkdocs.yml — adds the two new nav entries (Concepts § Instrumentation seams, Guides § Setup Prometheus and OpenTelemetry).
  • Top-of-page see-also pair on the trimmed observability.md points readers at the new How-to and the new Explanation.

The spec and plan both include a "Scope reduction (2026-06-12)" note explaining the deferral; plan Tasks 2 and 3 are explicitly marked DEFERRED.

Test plan

  • just docs-build (mkdocs build --strict) passes clean — all cross-links resolve, no orphaned pages
  • just lint passes (eof-fixer, ruff format, ruff check, ty check)
  • Reviewer: just docs-serve and confirm sidebar shows the new Concepts § Instrumentation seams and the new Guides § Setup Prometheus and OpenTelemetry; Reference § Observability is now Reference-shaped (event catalog table + PromQL playbook + recorder seam API + test-broker note)
  • Reviewer: open concepts/instrumentation-seams.md and confirm it answers "why two seams?" without bleeding into setup recipes
  • Reviewer: open usage/setup-prometheus-opentelemetry.md and confirm the four examples (Prometheus / OTel / native middleware / both-seams-together) port cleanly

Out of scope (deferred to follow-on PR per spec § Scope reduction)

  • Tutorial 1: Your first outbox app
  • Tutorial 2: Add a Kafka relay

Both kept in the spec § Design (intact) and the plan T2 + T3 (marked DEFERRED with backrefs).

🤖 Generated with Claude Code

lesnik512 and others added 7 commits June 11, 2026 17:05
F-min pulled from the docs-landing-and-comparison follow-ons. Two
tutorials under a new docs/tutorials/ directory (Your first outbox
app, Add a Kafka relay) plus a three-way split of
docs/usage/observability.md into Reference (kept at URL, trimmed
to event catalog + PromQL playbook), How-to
(setup-prometheus-opentelemetry.md, adapter wiring), and
Explanation (concepts/instrumentation-seams.md, the recorder-vs-
middleware layering rationale).

Spec covers structural calls (tutorials slot under Getting started,
observability.md URL stays for SEO, tutorial code is executed end-
to-end with literal captured output). Plan walks an executor through
eight tasks; structural pieces are deterministic, tutorials require
real code execution.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Splits out the adapter setup recipes (now usage/setup-prometheus-opentelemetry.md)
and the layering rationale (now concepts/instrumentation-seams.md).
Kept page stays at the URL for SEO continuity; new content adds an
event-catalog table and absorbs the operator PromQL playbook from
the former Prometheus-adapter section.

Top-of-page see-also pair links to the new how-to and the new
explanation.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…explanation

Two tutorial stubs land in docs/tutorials/ so the nav resolves;
content is filled by the following per-tutorial commits.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Scope reduction for this PR: the observability split (Tasks 4-7)
ships now; the two tutorials (Tasks 2-3) defer to a follow-on PR.
Reason: the spec's "tutorial code executed end-to-end with literal
captured output" discipline warrants a dedicated session, not a
rushed attempt at the tail of this one.

Removed from working tree: docs/tutorials/{first-outbox-app,
add-kafka-relay}.md (which were stubs added in the prior nav-reshape
commit) and the two Tutorial nav entries under Getting started.

Spec gets a "Scope reduction" callout at the top; plan T2 + T3 are
marked DEFERRED with a back-reference to the spec note.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@lesnik512 lesnik512 merged commit 227d946 into main Jun 12, 2026
3 checks passed
@lesnik512 lesnik512 deleted the docs/tutorials-and-observability-split branch June 12, 2026 04:21
lesnik512 added a commit that referenced this pull request Jun 12, 2026
…-split

chore: archive shipped planning pair from #56
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