mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 07:26:51 +00:00
A -DXRPL_ENABLE_TELEMETRY=0 build expands every XRPL_METRIC_* macro to nothing, so anything whose only use sits inside one looks unused. - MetricsRegistry::hasPipeline touches no member in that build, so clang-tidy asks for it to be static. Making it static would give the two builds different signatures, so suppress it the way Recording.h already does for the same reason. - PathRequest.cpp's only use of MetricMacros.h is such a macro, so mark the include as kept. - AppMetricGauges.cpp names MetricsRegistry and beast::Journal in a constructor signature that is compiled either way, so their includes move outside the telemetry guard.