RFC 016 Chunk 4: observer example with ps-style + tree dump

A runnable examples/observer.rs (required-features = ["observer"]) that
stands up a named service + two parked workers, starts the observer, and
renders a snapshot as a ps-style table and the parentage forest indented.
The observer appears in its own dump, caught running while it serves the
snapshot call — transport over the same read every consumer sees.

Complements the runnable doctest already on observer::start.
This commit is contained in:
smarm-agent
2026-06-19 10:20:09 +00:00
parent 6df4cd4a0b
commit 2d15834b24
2 changed files with 155 additions and 0 deletions
+5
View File
@@ -75,3 +75,8 @@ harness = false
[[bench]]
name = "switch_cost"
harness = false
# RFC 016 Chunk 4 — the live observer dump. Needs the optional gen_server.
[[example]]
name = "observer"
required-features = ["observer"]