feat(telemetry): add validation attributes to peer.validation.receive span (Task 4.8)

Add ledger hash and full-validation flag to peer.validation.receive
spans for trace-level agreement analysis across validators.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Pratik Mankawde
2026-03-31 12:16:53 +01:00
parent 753e7721e0
commit f35ed05bcc

View File

@@ -2419,6 +2419,10 @@ PeerImp::onMessage(std::shared_ptr<protocol::TMValidation> const& m)
false);
val->setSeen(closeTime);
}
XRPL_TRACE_SET_ATTR( // LCOV_EXCL_LINE
"xrpl.peer.validation.ledger_hash", // LCOV_EXCL_LINE
to_string(val->getLedgerHash()).c_str()); // LCOV_EXCL_LINE
XRPL_TRACE_SET_ATTR("xrpl.peer.validation.full", val->isFull()); // LCOV_EXCL_LINE
if (!isCurrent(
app_.getValidations().parms(),