Phase 4: Consensus tracing — round lifecycle, proposals, validations#6426
Draft
pratikmankawde wants to merge 1 commit intopratik/otel-phase3-tx-tracingfrom
Draft
Phase 4: Consensus tracing — round lifecycle, proposals, validations#6426pratikmankawde wants to merge 1 commit intopratik/otel-phase3-tx-tracingfrom
pratikmankawde wants to merge 1 commit intopratik/otel-phase3-tx-tracingfrom
Conversation
a35616e to
04ddafd
Compare
4a96959 to
0ad5ca4
Compare
04ddafd to
9d7d59a
Compare
0ad5ca4 to
1f7808e
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## pratik/otel-phase3-tx-tracing #6426 +/- ##
===============================================================
- Coverage 79.7% 79.7% -0.0%
===============================================================
Files 851 851
Lines 67941 67952 +11
Branches 7587 7594 +7
===============================================================
+ Hits 54180 54184 +4
- Misses 13761 13768 +7
🚀 New features to boost your workflow:
|
9d7d59a to
c2ad81d
Compare
1f7808e to
3f240a3
Compare
c2ad81d to
111e0cb
Compare
3f240a3 to
3402876
Compare
111e0cb to
858f391
Compare
3402876 to
55bb221
Compare
751792d to
1a25348
Compare
55bb221 to
4c67a5f
Compare
This was referenced Feb 26, 2026
1a25348 to
b4d7297
Compare
4c67a5f to
6e75849
Compare
b4d7297 to
587d312
Compare
6e75849 to
04e94ce
Compare
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
587d312 to
f504d9b
Compare
04e94ce to
735ecd1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
High Level Overview of Change
Add distributed tracing for the consensus round lifecycle. Instruments four key points in
RCLConsensus::Adaptor: proposal sending, ledger close, ledger accept, and validation sending. Each span carries domain-specific attributes (ledger sequence, consensus mode, proposer count, round duration).Context of Change
Phase 4 of the OpenTelemetry distributed tracing project. Consensus is the core protocol loop — understanding its timing and behavior is critical for network health monitoring. The instrumentation uses the
XRPL_TRACE_CONSENSUSmacro which compiles to((void)0)when telemetry is disabled, ensuring zero overhead in production builds without the feature.Spans and attributes:
consensus.proposal.send— round sequenceconsensus.ledger_close— ledger sequence, consensus modeconsensus.accept— proposer count, round duration (ms)consensus.validation.send— ledger sequence, proposing flagDesign doc:
OpenTelemetryPlan/directory in this repo.Type of Change
API Impact
libxrplchange (any change that may affectlibxrplor dependents oflibxrpl)Test Plan
telemetry=ONand verify xrpld links.consensus.ledger_close→consensus.accept.Future Tasks