Skip to content

Commit d810d7d

Browse files
committed
feat(tracing): add more tracing on I/O operations
Signed-off-by: Florian Valeye <[email protected]>
1 parent e819e66 commit d810d7d

File tree

6 files changed

+297
-280
lines changed

6 files changed

+297
-280
lines changed

crates/core/src/operations/delete.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ async fn execute_non_empty_expr(
308308
}
309309

310310
#[allow(clippy::too_many_arguments)]
311+
#[tracing::instrument(skip_all, fields(operation = "delete", version = snapshot.version(), table_uri = %log_store.root_uri()))]
311312
async fn execute(
312313
predicate: Option<Expr>,
313314
log_store: LogStoreRef,

crates/core/src/operations/merge/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,7 @@ impl ExtensionPlanner for MergeMetricExtensionPlanner {
724724
}
725725

726726
#[allow(clippy::too_many_arguments)]
727+
#[tracing::instrument(skip_all, fields(operation = "merge", version = snapshot.version(), table_uri = %log_store.root_uri()))]
727728
async fn execute(
728729
predicate: Expression,
729730
mut source: DataFrame,

crates/core/src/operations/update.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ impl ExtensionPlanner for UpdateMetricExtensionPlanner {
236236
}
237237

238238
#[allow(clippy::too_many_arguments)]
239+
#[tracing::instrument(skip_all, fields(operation = "update", version = snapshot.version(), table_uri = %log_store.root_uri()))]
239240
async fn execute(
240241
predicate: Option<Expression>,
241242
updates: HashMap<Column, Expression>,

0 commit comments

Comments
 (0)