You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor!: update to latest iroh-metrics version, use non-global metrics collection (#85)
## Description
Updates metrics tracking to the new non-global tracking.
Metrics are tracked per downloader. We already only track metrics within
the downloader, so this was rather straightforward.
The tracking of request stats was changed to be tracked once the
download task completes, as this seemed easier to me. Needs a careful
review, but I think the change is sound (i.e. no change).
Depends on n0-computer/iroh#3262
## Breaking Changes
* `metrics::Metrics` now implements `MetricsGroup` from the recent
ìroh-metrics` release (TODO: fill in version after release)
* Metrics are no longer tracked into the `static_core` from
`iroh-metrics`, but instead are tracked per `Downloder` and exposed via
`Downloader::metrics`
## Notes & open questions
<!-- Any notes, remarks or open questions you have to make about the PR.
-->
## 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 breaking changes documented.
---------
Co-authored-by: Ruediger Klaehn <rklaehn@protonmail.com>
0 commit comments