Uses of Interface
com.loomcache.server.tracing.TracingContext.Span
Packages that use TracingContext.Span
-
Uses of TracingContext.Span in com.loomcache.server.tracing
Methods in com.loomcache.server.tracing that return TracingContext.SpanModifier and TypeMethodDescriptionstatic TracingContext.SpanTraceContextPropagator.createChildSpan(String spanName, Map<String, String> extractedContext) Create a child span from extracted trace context.static TracingContext.SpanTracingContext.createSpan(String spanName, String kind) Create a new span with the given name and kind.static @Nullable TracingContext.SpanTracingContext.getCurrentSpan()Get the current active span (from ScopedValue).RaftTracer.recordCommitIndexAdvanced(long oldCommitIndex, long newCommitIndex) Record commit index advancement.RaftTracer.recordLeaderChange(@Nullable String oldLeader, String newLeader) Record a leader change.RaftTracer.startAppendEntriesRpc(boolean isRequest) Start tracing an AppendEntries RPC (either outgoing from leader or incoming to follower).RaftTracer.startElectionAttempt()Start tracing an election timeout event.RaftTracer.startLogCompaction()Start tracing a log compaction operation.RaftTracer.startReplication(String followerId) Start tracing a replication attempt to a specific follower.RaftTracer.startRequestVoteRpc(long candidateTerm, String candidateId, long lastLogIndex, long lastLogTerm) Start tracing a RequestVote RPC.RaftTracer.startSnapshotInstall(String followerId) Start tracing a snapshot installation RPC.RaftTracer.startSnapshotSave()Start tracing a snapshot save operation.Methods in com.loomcache.server.tracing that return types with arguments of type TracingContext.SpanModifier and TypeMethodDescriptionRaftTracer.getActiveReplicationSpans()Get all active replication spans.Methods in com.loomcache.server.tracing with parameters of type TracingContext.SpanModifier and TypeMethodDescriptionstatic @Nullable StringTracingContext.injectTraceContext(@Nullable TracingContext.Span span) Inject trace context into W3C Trace Context format.voidRaftTracer.recordAppendEntriesDetails(TracingContext.Span span, long prevLogIndex, long prevLogTerm, int entriesCount, long leaderCommit) Record AppendEntries RPC details.voidRaftTracer.recordElectionLost(TracingContext.Span span, String newLeader) Record that the election was lost (another node became leader).voidRaftTracer.recordElectionWon(TracingContext.Span span, int votesReceived, int totalPeers) Record that the election was won.voidRaftTracer.recordLogCompacted(TracingContext.Span span, long logSizeAfter, long entriesRemoved) Record log compaction completion.voidRaftTracer.recordReplicationFailure(TracingContext.Span span, String reason, int attempt) Record failed replication to a follower.voidRaftTracer.recordReplicationSuccess(TracingContext.Span span, long matchIndex, long nextIndex) Record successful replication to a follower.voidRaftTracer.recordSnapshotChunk(TracingContext.Span span, int chunkIndex, int totalChunks, boolean done) Record snapshot installation progress.voidRaftTracer.recordSnapshotSaved(TracingContext.Span span, long snapshotSize, long durationMs) Record snapshot save completion.voidRaftTracer.recordVoteDenied(TracingContext.Span span, String reason) Record vote denied.voidRaftTracer.recordVoteGranted(TracingContext.Span span) Record vote granted.static voidTracingContext.setCurrentSpan(@Nullable TracingContext.Span span) Set the current span (for ScopedValue binding).