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:
parent
0b1068677e
commit
12d1dcbfcc
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue