Skip to content

Commit 99aed5b

Browse files
authored
controllers/krate/publish: Add more tracing instrumentation (#10090)
1 parent 1b5de48 commit 99aed5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/controllers/krate/publish.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,7 @@ async fn count_versions_published_today(
577577
.await
578578
}
579579

580+
#[instrument(skip_all)]
580581
async fn read_json_metadata<R: AsyncRead + Unpin>(
581582
reader: &mut R,
582583
max_length: u32,
@@ -608,6 +609,7 @@ async fn read_json_metadata<R: AsyncRead + Unpin>(
608609
.map_err(|e| bad_request(format_args!("invalid upload request: {e}")))
609610
}
610611

612+
#[instrument(skip_all)]
611613
async fn read_tarball_bytes<R: AsyncRead + Unpin>(
612614
reader: &mut R,
613615
max_length: u32,
@@ -638,6 +640,7 @@ async fn read_tarball_bytes<R: AsyncRead + Unpin>(
638640
Ok(Bytes::from(tarball_bytes))
639641
}
640642

643+
#[instrument(skip_all)]
641644
async fn is_reserved_name(name: &str, conn: &mut AsyncPgConnection) -> QueryResult<bool> {
642645
select(exists(reserved_crate_names::table.filter(
643646
canon_crate_name(reserved_crate_names::name).eq(canon_crate_name(name)),

0 commit comments

Comments
 (0)