mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
Replace SpanGuard::txSpan(prefix, name, hash) with the generic SpanGuard::hashSpan(TraceCategory, name, hash) that accepts a TraceCategory parameter instead of hardcoding Transactions. This enables reuse for consensus round spans (Phase 4) and any future subsystem needing deterministic cross-node trace correlation via hash-derived trace IDs. Both overloads are replaced: - hashSpan(cat, name, hash, size) — standalone with random span_id - hashSpan(cat, name, hash, size, parentSpanId, parentSize, flags) — with remote parent from protobuf context propagation Add full span name constants (tx_span::receive, tx_span::process) to TxSpanNames.h following the ConsensusSpanNames.h pattern. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>