mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 14:20:56 +00:00
Resolves the telemetry-startup conflict between the two branches. Both sides move the telemetry start earlier in setup(); they disagree only on how far the pipeline had been split at that point. phase-1b (arriving) moved nodeIdentity_, setServiceInstanceId() and the telemetry start up to just after the wallet DB is proven usable. phase-9 had split the metrics pipeline in two and left its copy of that block at the old, later position. Kept both intentions: the block stays at phase-1b's early position, and metricsRegistry_ construction moves up with it so it precedes startTelemetry() -- the metrics half is guarded on the registry existing, so leaving the construction behind would have started tracing while silently skipping metrics. phase-9's later copy is dropped as the stale duplicate. The two-phase split is preserved: startTelemetryGauges() still runs after overlay_ is constructed, because the observable callbacks read it and getOverlay() asserts. Net effect is that the metrics provider now starts earlier than on either branch, and still before beginConsensus() emits the first spans and the only operating-mode transition.