feat(0.6.0): refined segment labels + early destination ASN lookup (BREAKING)#19
Merged
feat(0.6.0): refined segment labels + early destination ASN lookup (BREAKING)#19
Conversation
- Add PathLabel enum and TracerouteResult::path_labels() - Text output: append role to segment (e.g., [BEYOND | TRANSIT]) - JSON output: optional per-hop path_label field - Tests updated; fmt/clippy clean 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
…lookup; docs update - SegmentType: add Transit/Destination, remove Beyond (breaking) - Engine: parallel destination ASN lookup from target IP - CLI: text/JSON emit refined segments - Docs: README + docs/LIBRARY_USAGE.md updated to 0.6.0 - Tests/examples adjusted; fmt/clippy/tests clean 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #19 +/- ##
==========================================
- Coverage 58.93% 58.56% -0.37%
==========================================
Files 29 29
Lines 1651 1687 +36
==========================================
+ Hits 973 988 +15
- Misses 678 699 +21
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: v0.5.1 – Replace BEYOND with TRANSIT/DESTINATION
Summary
Replaces the BEYOND segment in outputs with TRANSIT and DESTINATION. Library gains helpers to compute these refined segments based on destination ASN.
Changes
Library
ftr::EffectiveSegmentenum andTracerouteResult::effective_segments()for refined segments (LAN, ISP, TRANSIT, DESTINATION, UNKNOWN).TracerouteResult::path_labels()also available for finer control.SegmentTypeunchanged.CLI
segmentfield now emitsTRANSIT/DESTINATIONinstead ofBEYOND.Rationale
Makes it easier to identify which parts of the route traverse transit providers versus the destination’s own network, aiding debugging, performance analysis, and visualization use cases.
Compatibility
Tests/Quality
cargo fmtandcargo clippy -- -D warningsclean.Screenshots/Examples
Checklist
RELEASE_NOTES_v0.5.1.md)