mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 07:26:51 +00:00
One [telemetry] key served both OTLP signals, and the metrics URL was derived from it by suffix-swap: strip a trailing slash, strip a known signal path if present, append the wanted one. Anything not ending /v1/traces therefore posted metrics to the traces path, and the OTLP version was pinned in code where an operator could not reach it. Adds metrics_endpoint alongside traces_endpoint. Both are full URLs used verbatim, so traces and metrics can go to different collectors, or to one whose OTLP paths are not the defaults. signalEndpoint(), kTracesPath and kMetricsPath are gone; nothing derives an endpoint from another. The startup log names both URLs, since with two independent endpoints there was otherwise no way to see where metrics were going. Also drops exporter=otlp_http from the shipped config and the test fixture. No branch in the chain reads an `exporter` key: it was a real Setup member in the first phase-1b implementation, removed when only OTLP/HTTP was wired up, and already deleted from TESTING.md once on the same grounds.