namespace renaming

Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
This commit is contained in:
Pratik Mankawde
2026-05-28 16:23:57 +01:00
parent 7ac5343119
commit 248d85cae6
2 changed files with 6 additions and 7 deletions

View File

@@ -24,7 +24,7 @@
#include <xrpl/telemetry/SpanNames.h>
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

View File

@@ -1980,9 +1980,8 @@ PeerImp::onMessage(std::shared_ptr<protocol::TMProposeSet> 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::SpanGuard>(telemetry::proposalReceiveSpan(set));
span->setAttribute(telemetry::consensus_span::attr::trusted, isTrusted);
span->setAttribute(
telemetry::consensus_span::attr::round, static_cast<int64_t>(set.proposeseq()));
span->setAttribute(telemetry::cons_span::attr::trusted, isTrusted);
span->setAttribute(telemetry::cons_span::attr::round, static_cast<int64_t>(set.proposeseq()));
std::weak_ptr<PeerImp> const weak = shared_from_this();
app_.getJobQueue().addJob(
@@ -2566,11 +2565,11 @@ PeerImp::onMessage(std::shared_ptr<protocol::TMValidation> 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::SpanGuard>(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<int64_t>(val->getFieldU32(sfLedgerSequence)));
}