fix(tvix/castore): instrument blob uploads with current span

Change-Id: I67e18486c48f06787fad8be506e95eecc23e994d
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12825
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Jonas Chevalier <zimbatm@zimbatm.com>
This commit is contained in:
Florian Klink 2024-11-22 19:14:13 +02:00 committed by flokli
parent 0b1068677e
commit 12d1dcbfcc

View file

@ -9,6 +9,7 @@ use tokio::{
task::{JoinError, JoinSet}, task::{JoinError, JoinSet},
}; };
use tokio_util::io::InspectReader; use tokio_util::io::InspectReader;
use tracing::{info_span, Instrument};
use crate::{blobservice::BlobService, B3Digest, Path, PathBuf}; use crate::{blobservice::BlobService, B3Digest, Path, PathBuf};
@ -140,6 +141,7 @@ where
drop(permit); drop(permit);
Ok(()) Ok(())
} }
.instrument(info_span!("upload_task"))
}); });
return Ok(digest); return Ok(digest);