mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user