From 248d85cae66a22f380019e70626e9573f7dcbd84 Mon Sep 17 00:00:00 2001 From: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> Date: Thu, 28 May 2026 16:23:57 +0100 Subject: [PATCH] namespace renaming Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com> --- src/xrpld/app/consensus/ConsensusSpanNames.h | 4 ++-- src/xrpld/overlay/detail/PeerImp.cpp | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/xrpld/app/consensus/ConsensusSpanNames.h b/src/xrpld/app/consensus/ConsensusSpanNames.h index f400adc7f6..29203eb29d 100644 --- a/src/xrpld/app/consensus/ConsensusSpanNames.h +++ b/src/xrpld/app/consensus/ConsensusSpanNames.h @@ -24,7 +24,7 @@ #include -namespace xrpl::telemetry::consensus_span { +namespace xrpl::telemetry::cons_span { // ===== Span prefixes ======================================================= @@ -64,4 +64,4 @@ inline constexpr auto trusted = makeStr("trusted"); inline constexpr auto round = makeStr("consensus_round"); } // namespace attr -} // namespace xrpl::telemetry::consensus_span +} // namespace xrpl::telemetry::cons_span diff --git a/src/xrpld/overlay/detail/PeerImp.cpp b/src/xrpld/overlay/detail/PeerImp.cpp index 92d26ac4ab..3e8190b862 100644 --- a/src/xrpld/overlay/detail/PeerImp.cpp +++ b/src/xrpld/overlay/detail/PeerImp.cpp @@ -1980,9 +1980,8 @@ PeerImp::onMessage(std::shared_ptr const& m) // Create a receive span that links to the sender's trace context // (if propagated). shared_ptr keeps it alive across the job boundary. auto span = std::make_shared(telemetry::proposalReceiveSpan(set)); - span->setAttribute(telemetry::consensus_span::attr::trusted, isTrusted); - span->setAttribute( - telemetry::consensus_span::attr::round, static_cast(set.proposeseq())); + span->setAttribute(telemetry::cons_span::attr::trusted, isTrusted); + span->setAttribute(telemetry::cons_span::attr::round, static_cast(set.proposeseq())); std::weak_ptr const weak = shared_from_this(); app_.getJobQueue().addJob( @@ -2566,11 +2565,11 @@ PeerImp::onMessage(std::shared_ptr const& m) // Create a receive span that links to the sender's trace context // (if propagated). shared_ptr keeps it alive across the job boundary. auto span = std::make_shared(telemetry::validationReceiveSpan(*m)); - span->setAttribute(telemetry::consensus_span::attr::trusted, isTrusted); + span->setAttribute(telemetry::cons_span::attr::trusted, isTrusted); if (val->isFieldPresent(sfLedgerSequence)) { span->setAttribute( - telemetry::consensus_span::attr::ledgerSeq, + telemetry::cons_span::attr::ledgerSeq, static_cast(val->getFieldU32(sfLedgerSequence))); }