From fa15be5bc46e0f2543860fcd704f13649d522c5b Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 25 Nov 2024 16:28:57 +0100 Subject: [PATCH] Add span around commit --- crates/index-scheduler/src/batch.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/index-scheduler/src/batch.rs b/crates/index-scheduler/src/batch.rs index 630471790..04cdb912f 100644 --- a/crates/index-scheduler/src/batch.rs +++ b/crates/index-scheduler/src/batch.rs @@ -1024,7 +1024,13 @@ impl IndexScheduler { let mut index_wtxn = index.write_txn()?; let tasks = self.apply_index_operation(&mut index_wtxn, &index, op)?; - index_wtxn.commit()?; + + { + let span = tracing::trace_span!(target: "indexing::scheduler", "commit"); + let _entered = span.enter(); + + index_wtxn.commit()?; + } // if the update processed successfully, we're going to store the new // stats of the index. Since the tasks have already been processed and