docs(telemetry): fix fictional launcher.Register/health.Register in doc examples

The package-doc examples showed a fictional launcher.Register / health.Register
API (and launcher.Append as a package func). Corrected to the real wiring:
lc.Append + web/health.NewHandler(...).ServeHTTP.
Also: launcher.BeforeStop (nonexistent) -> defer shutdown, matching the README.

Documentation-only. No code, API, or dependency changes; version stays v1.1.0
(the v1.1.0 tag is moved to include this fix). Verified by compiling the
corrected pattern against the real API.
This commit is contained in:
2026-08-07 22:14:11 -06:00
parent 65edffa924
commit 65c91552a3
+2 -2
View File
@@ -31,8 +31,8 @@
// }
// defer shutdown(ctx)
//
// // Wire into the launcher so shutdown runs before process exit:
// // launcher.BeforeStop(func() error { return shutdown(ctx) })
// // Place the defer before lc.Run() so shutdown fires after the launcher
// // stops, before the process exits.
// }
//
// # Local Development: console mode