Skip to content

refactor(domain): unify terminal scrape telemetry emission - #70

Merged
gildesmarais merged 1 commit into
mainfrom
refactor/unify-terminal-scrape-telemetry
Oct 22, 2026
Merged

gildesmarais merged 1 commit into
mainfrom
refactor/unify-terminal-scrape-telemetry

Conversation

@gildesmarais

Copy link
Copy Markdown
Member

What changed

  • Extract _finish_outcome in ScrapeService so RequestIdCollisionError, TimeoutError, and normal completion share one lease snapshot + terminal telemetry + scrape_finished path.
  • Remove unused logger = get_logger() from ops_telemetry.py.

Why

Single ownership of terminal scrape event emission; delete triplicate telemetry tails.

Risk

  • low — same fields and emit order; collision/timeout/success still take the shared finish helper.

Review map

Review map: whole PR is small — start at app/domain/scrape_service.py.

Validation

  • make check — exit 0 (210 tests, ruff, pyright, spectral; re-run before push)

@gildesmarais
gildesmarais merged commit d1294c9 into main Oct 22, 2026
13 checks passed
@gildesmarais
gildesmarais deleted the refactor/unify-terminal-scrape-telemetry branch October 22, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant