mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 22:08:01 +08:00
otelhttp derives server.address from the Host header, which creates
a unique time series for every subdomain hostname on public gateways
(e.g. each CID.ipfs.dweb.link). this caused multi-gigabyte prometheus
responses and scrape timeouts.
- cmd/ipfs/kubo/daemon.go: add OTel SDK View that drops server.address
from all http.server.* metrics at the MeterProvider level
- core/corehttp/gateway.go: add server.domain attribute to Gateway and
HostnameGateway handlers, grouping by Gateway.PublicGateways suffix
(e.g. "dweb.link"), with "localhost", "loopback", or "other" fallbacks
- core/corehttp/commands.go: add server.domain="api" to RPC handler
- core/corehttp/gateway.go: add server.domain="libp2p" to libp2p handler
- docs/changelogs/v0.40.md: add changelog highlight
- docs/metrics.md: document server_domain label and server_address drop
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| commands | ||
| coreapi | ||
| corehttp | ||
| coreiface | ||
| corerepo | ||
| coreunix | ||
| mock | ||
| node | ||
| .gitignore | ||
| builder.go | ||
| core_test.go | ||
| core.go | ||