Improve logging granularity for batch and query processing - #1348
Conversation
Per-query and per-batch trace logs scaled with partition/query count, producing a large volume of low-signal lines on high-address indexers. - Aggregate per-query fetch traces into one "Started fetching queries" line per cross-chain tick and one "Fetched block ranges from server" line per chain dispatch, replacing the per-query "Fetched block range from server" line (and its heavy stats payload). - Merge the per-batch "Started/Finished processing batch" pair into a single "Processed batch" line. - Dedupe the "waiting for new blocks" trace so it fires once per contiguous wait period instead of on every re-entering epoch. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Gate the finished querying log on all dispatched partitions being fetched. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
…arted processing Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4
|
Warning Review limit reached
More reviews will be available in 6 minutes and 41 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
Comment |
Summary
Refactors logging throughout the event processing pipeline to provide more granular, per-chain and per-partition visibility into batch and query operations. This replaces aggregated batch-level logs with individual chain/partition logs that fire at more appropriate points in the processing lifecycle.
Key Changes
EventProcessing.res:
registerProcessEventBatchMetricsto accept the batch and log per-chain progress (chainId, batchSize, progressBlockNumber) instead of aggregated totalsprocessEventBatchto log per-chain "Started processing" messages instead of a single aggregated batch start logChainFetching.res:
SourceManager.res:
waitingLoggedflag to deduplicate "waiting for new blocks" traces, firing once per contiguous wait period instead of on every polling epochexecuteQuery(now logged at a higher level in ChainFetching)CrossChainState.res:
Notable Details
https://claude.ai/code/session_01LQW127Bx6F25cnkAKryHJ4