Commit 2a37214
authored
refactor!: use new iroh-metrics version, no more global tracking (#58)
## Description
Adapts iroh-metrics for n0-computer/iroh-metrics#15 and n0-computer/iroh#3262
Depends on n0-computer/iroh#3262
## Breaking Changes
* `metrics::Metrics` now implements `MetricsGroup` from the ì[email protected]`
* Metrics are no longer tracked into the `static_core` from `iroh-metrics`, but instead are tracked per `Gossip` and exposed via `Gossip::metrics`
* `proto::state::State::handle` now takes `Option<&Metrics>` as new 4th parameter
## 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.1 parent dbec9b0 commit 2a37214
File tree
9 files changed
+434
-378
lines changed- .cargo
- .github/workflows
- src
- proto
9 files changed
+434
-378
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
153 | 155 | | |
154 | 156 | | |
155 | 157 | | |
| |||
0 commit comments