Log the call trace and congestion

This commit is contained in:
Kerollmops 2025-02-20 14:17:34 +01:00
parent 9d314ace09
commit 243a5fa6a8
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -352,6 +352,17 @@ impl IndexScheduler {
congestion_info congestion_info
}); });
if let Some(congestion) = congestion {
tracing::debug!(
"Channel congestion metrics - Attempts: {}, Blocked attempts: {} ({:.1}% congestion)",
congestion.attempts,
congestion.blocking_attempts,
congestion.congestion_ratio(),
);
}
tracing::debug!("call trace: {:?}", progress.accumulated_durations());
self.queue.write_batch(&mut wtxn, processing_batch, &ids)?; self.queue.write_batch(&mut wtxn, processing_batch, &ids)?;
#[cfg(test)] #[cfg(test)]