mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-02 16:26:48 +00:00
namespace renaming
Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user