Skip to content

Commit

Permalink
DELETE method add tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
lennart-k committed Jan 4, 2025
1 parent 53a23fb commit 1e635e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/dav/src/resource/methods/delete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<R: ResourceService>(
path: Path<R::PathComponents>,
req: HttpRequest,
user: User,
resource_service: Data<R>,
root_span: RootSpan,
) -> Result<impl Responder, R::Error> {
let no_trash = req
.headers()
Expand Down

0 comments on commit 1e635e1

Please sign in to comment.