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))); }