From 1e635e1b49419525ca830887f195a3a7789f3c72 Mon Sep 17 00:00:00 2001 From: Lennart <18233294+lennart-k@users.noreply.github.com> Date: Sat, 4 Jan 2025 21:15:56 +0100 Subject: [PATCH] DELETE method add tracing --- crates/dav/src/resource/methods/delete.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/dav/src/resource/methods/delete.rs b/crates/dav/src/resource/methods/delete.rs index 59e5c5c..d93a7fa 100644 --- a/crates/dav/src/resource/methods/delete.rs +++ b/crates/dav/src/resource/methods/delete.rs @@ -8,12 +8,16 @@ use actix_web::HttpRequest; use actix_web::HttpResponse; use actix_web::Responder; use rustical_store::auth::User; +use tracing::instrument; +use tracing_actix_web::RootSpan; +#[instrument(parent = root_span.id(), skip(path, req, root_span, resource_service))] pub async fn route_delete( path: Path, req: HttpRequest, user: User, resource_service: Data, + root_span: RootSpan, ) -> Result { let no_trash = req .headers()