mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-29 08:18:01 +00:00
The class documented a name format it does not produce. Eleven comments said the [insight] prefix is prepended, and gave examples like "xrpld_rpc_size" and "xrpld_LedgerMaster_Validated_Ledger_Age" that also kept the original casing. formatName() lowercases the raw instrument name and maps dots and spaces to underscores, and applies no prefix. All four instrument factories go through it, so "RPC.Size" exports as "rpc_size". prefix_ is written in the constructor and read in one place, the startup log line, so nothing it holds can reach an exported name. The service is identified by the service.name resource attribute. Comments only, in both the header and the implementation. The ASCII diagram still lists prefix_ as a member, which it is.