mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
core/corehttp: wrap hostname option with otelhttp
This commit is contained in:
parent
f72c6cf983
commit
0ec6308e8b
@ -62,7 +62,12 @@ func HostnameOption() ServeOption {
|
||||
}
|
||||
|
||||
childMux := http.NewServeMux()
|
||||
mux.Handle("/", gateway.NewHostnameHandler(config, backend, childMux))
|
||||
|
||||
var handler http.Handler
|
||||
handler = gateway.NewHostnameHandler(config, backend, childMux)
|
||||
handler = otelhttp.NewHandler(handler, "HostnameGateway")
|
||||
|
||||
mux.Handle("/", handler)
|
||||
return childMux, nil
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user