Skip to content

feat: show last responding hop IP in culprit display - #17

Merged
zoosky merged 1 commit into
mainfrom
feature/show-last-hop-ip
Jan 17, 2026
Merged

feat: show last responding hop IP in culprit display#17
zoosky merged 1 commit into
mainfrom
feature/show-last-hop-ip

Conversation

@zoosky

@zoosky zoosky commented Jan 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Display culprit as "Hop N (after X.X.X.X)" to show which IP responded before failure
  • Store gateway IP for inferred ISP diagnoses so the "after" IP is available

Changes

Display (outages.rs, outage_detail.rs)

  • Changed format from Hop 2 (ISP Modem) to Hop 2 (after 10.0.0.1)
  • Shows the last responding hop's IP, clarifying where the failure occurred

Inference (main.rs)

  • Store gateway IP as failing_hop_ip when inferring ISP issue
  • Print gateway IP in live diagnosis output

Example Output

  ID  Start Time           Duration  Culprit
───────────────────────────────────────────────────────────────────────────
1351  2026-01-17 17:14:38      2.4s  Hop 2 (after 10.0.0.1)

Test Plan

  • All 60 tests pass
  • QA checks pass
  • Verify new format in vigil outages output after next outage

- Change culprit display to 'Hop N (after X.X.X.X)' format
- Store gateway IP as failing_hop_ip for inferred ISP diagnoses
- Clarifies which hop responded before the failure occurred
@zoosky
zoosky merged commit ffe0614 into main Jan 17, 2026
4 checks passed
@zoosky
zoosky deleted the feature/show-last-hop-ip branch January 18, 2026 06: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