debugServer: Set a base context for the http server

to allow propagating context cancellation
This commit is contained in:
Ralf Haferkamp
2023-07-13 14:35:39 +02:00
committed by Ralf Haferkamp
parent 54664024c8
commit 2a53dd89f4
3 changed files with 20 additions and 0 deletions
@@ -15,6 +15,7 @@ func Server(opts ...Option) (*http.Server, error) {
return debug.NewService(
debug.Logger(options.Logger),
debug.Context(options.Context),
debug.Name(options.Config.Service.Name),
debug.Version(version.GetString()),
debug.Address(options.Config.Debug.Addr),