More tracing cleaning

This commit is contained in:
asonix 2023-12-22 13:30:17 -06:00
parent aa8fe7f3e8
commit 4369283534
2 changed files with 5 additions and 2 deletions

View File

@ -94,7 +94,7 @@ pub(crate) async fn generate<S: Store + 'static>(
} }
#[allow(clippy::too_many_arguments)] #[allow(clippy::too_many_arguments)]
#[tracing::instrument(skip(repo, store, hash, config))] #[tracing::instrument(skip(tmp_dir, repo, store, hash, config))]
async fn process<S: Store + 'static>( async fn process<S: Store + 'static>(
tmp_dir: &TmpDir, tmp_dir: &TmpDir,
repo: &ArcRepo, repo: &ArcRepo,

View File

@ -996,7 +996,10 @@ async fn process<S: Store + 'static>(
)) ))
} }
#[tracing::instrument(name = "Serving processed image headers", skip(repo, store, config))] #[tracing::instrument(
name = "Serving processed image headers",
skip(tmp_dir, repo, store, config)
)]
async fn process_head<S: Store + 'static>( async fn process_head<S: Store + 'static>(
range: Option<web::Header<Range>>, range: Option<web::Header<Range>>,
web::Query(ProcessQuery { source, operations }): web::Query<ProcessQuery>, web::Query(ProcessQuery { source, operations }): web::Query<ProcessQuery>,