kubo/cmd/ipfs
Marcin Rataj a431c39d7b fix: drop high-cardinality server.address from http_server metrics (#11208)
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 6a082f60b1)
2026-02-25 00:33:27 +01:00
..
dist docs: updated links and refs to external resources (#10368) 2024-03-16 00:59:22 +01:00
kubo fix: drop high-cardinality server.address from http_server metrics (#11208) 2026-02-25 00:33:27 +01:00
util refactor: apply go fix modernizers from Go 1.26 (#11190) 2026-02-11 01:01:32 +01:00
.gitignore make: rework makefiles for non-recursive make and add sharness coverage 2017-02-12 01:18:40 +01:00
main.go feat: cmd/ipfs: Make it possible to depend on cmd/ipfs 2023-12-19 16:23:53 -05:00
Rules.mk fix(version): produce shorter user agent for tagged release builds 2026-02-20 18:21:31 +01:00
runmain_test.go refactor(ci): optimize build workflows (#10973) 2025-09-19 14:44:38 +02:00