Skip to content

feat(metrics): lookup/resolver stats - #4543

Merged
Frando merged 4 commits into
mainfrom
Frando/resolver_metrics
Sep 28, 2026
Merged

Frando merged 4 commits into
mainfrom
Frando/resolver_metrics

Conversation

@Frando

@Frando Frando commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

Description

Adds counters to track lookup success rates and also tracks it by type of resolver.
Also updates iroh-metrics to 1.0.2.

API Changes

Notes & open questions

Change checklist

  • Self-review.
  • Documentation updates following the style guide, if relevant.
  • Tests if relevant.
  • All API changes documented.
  • This PR was created by a human that thought critically about the
    proposed change and wrote an as clear and concise description as
    they could.
  • This PR isn't slop, and is carefully crafted to do have the
    intented effect.

@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Documentation for this PR has been generated and is available at: https://n0-computer.github.io/iroh/pr/4543/docs/iroh/

Last updated: 2026-09-28T08:00:31Z

@github-actions

github-actions Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Netsim report & logs for this PR have been generated and is available at: LOGS
This report will remain available for 3 days.

Last updated for commit: ce3cf7f

@n0bot n0bot Bot added this to iroh Sep 21, 2026
@github-project-automation github-project-automation Bot moved this to 🚑 Needs Triage in iroh Sep 21, 2026
@Frando
Frando force-pushed the Frando/resolver_metrics branch from 58cb300 to f8477f7 Compare September 25, 2026 07:23
Arqu and others added 2 commits September 25, 2026 09:23
## Description

Adds counters to track lookup success rates and also tracks it by type
of resolver.

## Breaking Changes

<!-- Optional, if there are any breaking changes document them,
including how to migrate older code. -->

## Notes & open questions

<!-- Any notes, remarks or open questions you have to make about the PR.
-->

## Change checklist
<!-- Remove any that are not relevant. -->
- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [x] All breaking changes documented.
- [x] This PR was created by a human that thought critically about the
      proposed change and wrote an as clear and concise description as
      they could.
- [x] This PR isn't slop, and is carefully crafted to do have the
      intented effect.
@Frando
Frando force-pushed the Frando/resolver_metrics branch from f8477f7 to e675e31 Compare September 25, 2026 07:23
@Frando
Frando requested a review from Arqu September 25, 2026 07:26

@matheus23 matheus23 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes are identical to #4411, except for the iroh-metrics version bump :)

Comment thread Cargo.toml Outdated
type_associated_const_marked_deprecated = { required-update = "minor" }
type_marked_deprecated = { required-update = "minor" }
type_method_marked_deprecated = { required-update = "minor" }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Astra's words

Adds an unnecessary trailing blank line to the root Cargo.toml.

lol

@Frando
Frando enabled auto-merge September 25, 2026 07:40
@Frando
Frando added this pull request to the merge queue Sep 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 25, 2026
@Frando
Frando added this pull request to the merge queue Sep 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 25, 2026
@Frando
Frando added this pull request to the merge queue Sep 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Sep 25, 2026
@Frando
Frando added this pull request to the merge queue Sep 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 25, 2026
@Frando
Frando enabled auto-merge September 28, 2026 08:01
@Frando
Frando added this pull request to the merge queue Sep 28, 2026
Merged via the queue into main with commit b29c0a4 Sep 28, 2026
39 checks passed
@Frando
Frando deleted the Frando/resolver_metrics branch September 28, 2026 08:17
gsnaiper pushed a commit to gsnaiper/iroh that referenced this pull request Oct 8, 2026
## Description

Adds counters to track lookup success rates and also tracks it by type
of resolver.
Also updates iroh-metrics to 1.0.2.

## API Changes

<!-- Optional, any API additions, deprecations or breaking changes,
including how to migrate older code. -->

## Notes & open questions

* Previously merged as n0-computer#4411 and reverted in n0-computer#4542 because it broke
semver: Adding a `Family` made `EndpointMetrics` no longer implement
`UnwindSafe`. n0-computer/iroh-metrics#137 fixes
this by making `Family` be `UnwindSafe`.
* Min crates check is expected to fail, because iroh-metrics 1.0.2 is
newer than 3 days. It's our own crate, so this is fine.

## Change checklist

- [x] Self-review.
- [x] Documentation updates following the [style
guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text),
if relevant.
- [x] Tests if relevant.
- [x] All API changes documented.
- [x] This PR was created by a human that thought critically about the
      proposed change and wrote an as clear and concise description as
      they could.
- [x] This PR isn't slop, and is carefully crafted to do have the
      intented effect.

---------

Co-authored-by: Asmir Avdicevic <asmir.avdicevic64@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants