Skip to content

scrape: resolve_and_validate tracing span entered after async await — covers no work #4731

@bug-ops

Description

@bug-ops

Description

resolve_and_validate in crates/zeph-tools/src/scrape.rs (~lines 1140–1147) has the same span-after-await pattern as #4712. The tracing span is created before an async operation but entered after the .await completes, so the span covers only the synchronous result-checking code rather than the actual async work.

Spotted during the code review of PR #4730 (which fixed #4712 in apply_ipi_filter).

Fix Direction

Apply #[tracing::instrument] on resolve_and_validate, consistent with the fix applied to apply_ipi_filter in PR #4730. Remove the manual span.enter().

Environment

  • HEAD: 77ed84b
  • File: crates/zeph-tools/src/scrape.rs ~lines 1140–1147

Related

Metadata

Metadata

Assignees

Labels

P3Research — medium-high complexitybugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions