From 65c91552a3c6f423db15533b978de4f1b9a6a227 Mon Sep 17 00:00:00 2001 From: Rene Nochebuena Guerrero Date: Fri, 7 Aug 2026 22:14:11 -0600 Subject: [PATCH] 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. --- doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc.go b/doc.go index f684324..d32b18b 100644 --- a/doc.go +++ b/doc.go @@ -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 -- 2.39.5