mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 23:42:20 +08:00
daemon: instrument the gateway and api HTTP handlers
License: MIT Signed-off-by: Lars Gierth <larsg@systemli.org>
This commit is contained in:
@ -338,6 +338,7 @@ func serveHTTPApi(req cmds.Request) (error, <-chan error) {
|
||||
},
|
||||
})
|
||||
var opts = []corehttp.ServeOption{
|
||||
corehttp.PrometheusCollectorOption("api"),
|
||||
corehttp.CommandsOption(*req.InvocContext()),
|
||||
corehttp.WebUIOption,
|
||||
apiGw.ServeOption(),
|
||||
@ -416,6 +417,7 @@ func serveHTTPGateway(req cmds.Request) (error, <-chan error) {
|
||||
}
|
||||
|
||||
var opts = []corehttp.ServeOption{
|
||||
corehttp.PrometheusCollectorOption("gateway"),
|
||||
corehttp.CommandsROOption(*req.InvocContext()),
|
||||
corehttp.VersionOption(),
|
||||
corehttp.IPNSHostnameOption(),
|
||||
|
Reference in New Issue
Block a user