Skip to content

Commit 9341d02

Browse files
committed
Restore error instrumentation
Signed-off-by: Jim Crossley <[email protected]>
1 parent ef542d5 commit 9341d02

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

modules/importer/src/runner/common/walker/git.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ where
173173
}
174174

175175
/// Sync version, as all git functions are sync
176-
#[instrument(skip(self))]
176+
#[instrument(skip(self), err)]
177177
fn run_sync(self) -> Result<Continuation, Error> {
178178
log::debug!("Starting run for: {}", self.source);
179179

@@ -282,7 +282,7 @@ where
282282
}
283283
}
284284

285-
#[instrument(skip(self))]
285+
#[instrument(skip(self), err)]
286286
fn clone_repo(&self, path: &Path) -> Result<Repository, git2::Error> {
287287
self.progress
288288
.message_sync(format!("Cloning repository: {}", self.source));

modules/importer/src/runner/csaf/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use url::Url;
2929
use walker_common::fetcher::{Fetcher, FetcherOptions};
3030

3131
impl super::ImportRunner {
32-
#[instrument(skip_all)]
32+
#[instrument(skip_all, err)]
3333
pub async fn run_once_csaf(
3434
&self,
3535
context: impl RunContext,

modules/importer/src/runner/cve/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ impl<C: RunContext> Callbacks<Vec<u8>> for Context<C> {
7070
}
7171

7272
impl super::ImportRunner {
73-
#[instrument(skip(self, context))]
73+
#[instrument(skip(self, context), err)]
7474
pub async fn run_once_cve(
7575
&self,
7676
context: impl RunContext + 'static,

modules/importer/src/runner/osv/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl<C: RunContext> Callbacks<Vec<u8>> for Context<C> {
9797
}
9898

9999
impl super::ImportRunner {
100-
#[instrument(skip(self, context))]
100+
#[instrument(skip(self, context), err)]
101101
pub async fn run_once_osv(
102102
&self,
103103
context: impl RunContext + 'static,

modules/importer/src/runner/sbom/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use url::Url;
2828
use walker_common::fetcher::{Fetcher, FetcherOptions};
2929

3030
impl super::ImportRunner {
31-
#[instrument(skip_all)]
31+
#[instrument(skip_all, err)]
3232
pub async fn run_once_sbom(
3333
&self,
3434
context: impl RunContext,

modules/importer/src/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ impl ImporterService {
247247
.await
248248
}
249249

250-
#[instrument(skip(self, report, continuation))]
250+
#[instrument(skip(self, report, continuation), err)]
251251
pub async fn update_finish(
252252
&self,
253253
name: &str,

modules/ingestor/src/graph/advisory/advisory_vulnerability.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl AdvisoryVulnerabilityContext<'_> {
4545
)
4646
}
4747

48-
#[instrument(skip(self, connection))]
48+
#[instrument(skip(self, connection), err)]
4949
pub async fn ingest_package_status<C: ConnectionTrait>(
5050
&self,
5151
cpe_context: Option<Cpe>,

0 commit comments

Comments
 (0)