aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/installer.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-07-25 14:06:44 +0900
committernsfisis <nsfisis@gmail.com>2026-07-25 15:34:24 +0900
commitd4608662f28b9a5135986b1702afe3199957eabe (patch)
treec75a42f12fb04c722dec87c135869f9737b5d272 /crates/shirabe/src/installer.rs
parent42b5f9e321c918cef542c120ad21ba8a7339eb29 (diff)
downloadphp-shirabe-d4608662f28b9a5135986b1702afe3199957eabe.tar.gz
php-shirabe-d4608662f28b9a5135986b1702afe3199957eabe.tar.zst
php-shirabe-d4608662f28b9a5135986b1702afe3199957eabe.zip
feat(tracing): init tracing subscriber from $SHIRABE_TRACING
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/installer.rs')
-rw-r--r--crates/shirabe/src/installer.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/shirabe/src/installer.rs b/crates/shirabe/src/installer.rs
index 3cdb046b..883ee134 100644
--- a/crates/shirabe/src/installer.rs
+++ b/crates/shirabe/src/installer.rs
@@ -216,6 +216,7 @@ impl Installer {
}
/// Run installation (or update)
+ #[tracing::instrument(skip_all)]
pub fn run(&mut self) -> anyhow::Result<i64> {
// Disable GC to save CPU cycles, as the dependency solver can create hundreds of thousands
// of PHP objects, the GC can spend quite some time walking the tree of references looking
@@ -560,6 +561,7 @@ impl Installer {
Ok(0)
}
+ #[tracing::instrument(skip_all)]
pub(crate) fn do_update(
&mut self,
local_repo: crate::repository::RepositoryInterfaceHandle,