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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user