From 0f909b8d07c5b3814bf303e41b3178bb8082e465 Mon Sep 17 00:00:00 2001 From: Polle Pas Date: Mon, 16 Oct 2023 15:40:10 +0200 Subject: [PATCH] Add resource deletion to tracing info --- lib/src/db/query_index.rs | 8 ++------ lib/src/resources.rs | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/src/db/query_index.rs b/lib/src/db/query_index.rs index f11407cd1..442272624 100644 --- a/lib/src/db/query_index.rs +++ b/lib/src/db/query_index.rs @@ -2,12 +2,8 @@ //! It relies on lexicographic ordering of keys, which Sled utilizes using `scan_prefix` queries. use crate::{ - agents::ForAgent, - atoms::IndexAtom, - errors::AtomicResult, - storelike::{Query, QueryResult}, - values::SortableValue, - Atom, Db, Resource, Storelike, Value, + agents::ForAgent, atoms::IndexAtom, errors::AtomicResult, storelike::Query, + values::SortableValue, Atom, Db, Resource, Storelike, Value, }; use serde::{Deserialize, Serialize}; diff --git a/lib/src/resources.rs b/lib/src/resources.rs index 033c893a7..712d16cfb 100644 --- a/lib/src/resources.rs +++ b/lib/src/resources.rs @@ -49,6 +49,7 @@ impl Resource { /// Removes / deletes the resource from the store by performing a Commit. /// Recursively deletes the resource's children. + #[tracing::instrument(skip(store))] pub fn destroy( &mut self, store: &impl Storelike,