mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 15:28:03 +00:00
initMetrics() held its own copy of the suffix-swap: take tracesEndpoint, replace a trailing /v1/traces with /v1/metrics. Any other URL shape sent metrics to the traces path. metrics_endpoint is now a config key of its own, so use it as given. Application::startTelemetry() still reads the key itself for MetricsRegistry, which builds its own exporter. Telemetry exposes no accessor for the Setup it parsed, and re-parsing would re-run the mTLS validation and cert-file checks at a later point in startup, so the second read stays. The comment above it no longer claims the URL is derived from the traces one. Also corrects 05-configuration-reference.md: the sample configs carry metrics_endpoint where exporter used to sit, not a comment.