kubo/core/corehttp
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
..
commands.go fix: drop high-cardinality server.address from http_server metrics (#11208) 2026-02-25 00:33:27 +01:00
corehttp.go feat(p2p): add --foreground flag to listen and forward commands (#11099) 2026-01-09 19:22:43 +01:00
gateway_test.go core/corehttp: wrap gateway with headers, deprecate gateway /api/v0 2024-01-24 09:33:23 +00:00
gateway.go fix: drop high-cardinality server.address from http_server metrics (#11208) 2026-02-25 00:33:27 +01:00
logs.go chore: use go-log/v2 (#10801) 2025-05-19 13:04:05 -07:00
metrics_test.go refactor: apply go fix modernizers from Go 1.26 (#11190) 2026-02-11 01:01:32 +01:00
metrics.go feat(config): Gateway.RetrievalTimeout|MaxConcurrentRequests (#10905) 2025-08-15 02:36:33 +02:00
mutex_profile.go refactor: rename to kubo 2022-07-06 18:40:37 +02:00
option_test.go refactor: if statement (#10105) 2023-09-05 15:35:51 +02:00
p2p_proxy_test.go remove unneeded thirdparty packages (#10871) 2025-07-16 01:53:42 -07:00
p2p_proxy.go feat: update to Go 1.26 (#11189) 2026-02-11 00:08:28 +01:00
redirect.go fix: canonicalize user defined headers 2023-03-17 23:40:35 +01:00
routing.go feat: support GetClosesPeers (IPIP-476) and ExposeRoutingAPI by default (#10954) 2025-11-19 10:51:56 +00:00
webui.go chore: update webui to v4.11.1 (#11204) 2026-02-17 03:42:09 +01:00