mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-29 18:10:34 +00:00
fetchDurationUs_ had no getter, so telemetry reached it by building a JSON object, stringifying a uint64 and parsing it back with stoll on every collect tick. storeDurationUs_ was declared and never written or read at all, along with the jss::node_writes_duration_us key. Both now have accessors, both production store paths time their backend call, and the registry reads them without the round trip. get_counts also reports the write duration, so the RPC and the metric agree. Mean read latency is the signal that separates a cold store from a warm one: warm reads are single-digit microseconds, cold ones low hundreds. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>