diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-07-25 14:06:44 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-07-25 15:34:24 +0900 |
| commit | d4608662f28b9a5135986b1702afe3199957eabe (patch) | |
| tree | c75a42f12fb04c722dec87c135869f9737b5d272 /crates/shirabe/src/repository | |
| parent | 42b5f9e321c918cef542c120ad21ba8a7339eb29 (diff) | |
| download | php-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/repository')
| -rw-r--r-- | crates/shirabe/src/repository/composer_repository.rs | 3 | ||||
| -rw-r--r-- | crates/shirabe/src/repository/platform_repository.rs | 1 | ||||
| -rw-r--r-- | crates/shirabe/src/repository/repository_set.rs | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/crates/shirabe/src/repository/composer_repository.rs b/crates/shirabe/src/repository/composer_repository.rs index 84d8fbf7..fbee87d7 100644 --- a/crates/shirabe/src/repository/composer_repository.rs +++ b/crates/shirabe/src/repository/composer_repository.rs @@ -1707,6 +1707,7 @@ impl ComposerRepository { } /// @param packageNames array of package name => ConstraintInterface|null - if a constraint is provided, only packages matching it will be loaded + #[tracing::instrument(skip_all)] fn load_async_packages( &mut self, mut package_names: IndexMap<String, Option<AnyConstraint>>, @@ -1951,6 +1952,7 @@ impl ComposerRepository { }) } + #[tracing::instrument(skip_all)] async fn start_cached_async_download( &self, file_name: &str, @@ -2659,6 +2661,7 @@ impl ComposerRepository { Ok(packages) } + #[tracing::instrument(skip_all)] fn create_packages( &mut self, packages: Vec<IndexMap<String, PhpMixed>>, diff --git a/crates/shirabe/src/repository/platform_repository.rs b/crates/shirabe/src/repository/platform_repository.rs index 0d63940c..2b198c88 100644 --- a/crates/shirabe/src/repository/platform_repository.rs +++ b/crates/shirabe/src/repository/platform_repository.rs @@ -129,6 +129,7 @@ impl PlatformRepository { Ok(()) } + #[tracing::instrument(skip_all)] pub(crate) fn initialize(&mut self) -> anyhow::Result<()> { self.inner.initialize(); diff --git a/crates/shirabe/src/repository/repository_set.rs b/crates/shirabe/src/repository/repository_set.rs index b858151c..c407a1ce 100644 --- a/crates/shirabe/src/repository/repository_set.rs +++ b/crates/shirabe/src/repository/repository_set.rs @@ -297,6 +297,7 @@ impl RepositorySet { /// @param PackageInterface[] $packages /// @return ($allowPartialAdvisories is true ? array{advisories: array<string, array<PartialSecurityAdvisory|SecurityAdvisory>>, unreachableRepos: array<string>} : array{advisories: array<string, array<SecurityAdvisory>>, unreachableRepos: array<string>}) + #[tracing::instrument(skip_all)] pub fn get_matching_security_advisories( &self, packages: Vec<PackageInterfaceHandle>, |
