-
Notifications
You must be signed in to change notification settings - Fork 305
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staking: 🎁 add additional tracing telemetry (#4017)
this is a group of improvements to the telemetry in the staking component, cherry-picked out of #4001. this improves the logs seen in tests, and additionally takes the time to make some other small gardening tweaks: consolidating imports, adding documentation comments, etc. this is another branch in the spirit of #4009. the changes here are itemized into distinct, small code transformations to facilitate review, and demonstrate that these are noop changes. you can start [here](f7f78b9). * f331964 - feat(staking): ❗ traces for invalid or missing parameters * d33598d - docs(staking): 🤝 add a doc comment * f6c60a8 - staking: 🙂 remove needless `Ok(_)` * fd4b8da - feat(staking): 💬 log when delegation changes are not found * fe597ff - feat(staking): 🔍 trace-level spans for `StateReadExt` methods * 0447600 - refactor(staking): 🚡 use `self::` prefix in reexports * 67893c9 - refactor(staking): 🙂 remove import from reexports * 043222e - refactor(staking): 🎁 consolidate public submodules * 6376796 - refactor(staking): 🎁 consolidate submodules * b5bd240 - refactor(staking): 👯 component flag reexports StateWriteExt * d57beaa - chore(staking): 🥡 consolidate component reexports * aa52f6d - chore(staking): 🧹 tidy epoch_handler imports * 765ed75 - refactor(compact-block): 🧹 tidy imports * 7cb93f7 - feat(staking): 🌐 log why epoch ended * 081d041 - refactor(staking): add context to `state.end_epoch` call * 5701295 - feat(app): 🦠 tracing telemetry for `App::end_block` * f7f78b9 - docs(staking): 📕 add doc comment for `end_epoch`
- Loading branch information
Showing
7 changed files
with
86 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
45 changes: 19 additions & 26 deletions
45
crates/core/component/stake/src/component/epoch_handler.rs
This file contains 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
This file contains 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
This file contains 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
This file contains 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