mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
Add tracing logic in pallet macro for hooks and dispatchables (#8305)
* span in hooks * add span for dispatchable * Update frame/support/src/lib.rs * Update frame/support/src/lib.rs Co-authored-by: David <dvdplm@gmail.com> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: David <dvdplm@gmail.com>
This commit is contained in:
committed by
GitHub
parent
1f911ddb61
commit
1602f8dd2d
@@ -1229,6 +1229,9 @@ pub mod pallet_prelude {
|
||||
/// NOTE: OnRuntimeUpgrade is implemented with `Hooks::on_runtime_upgrade` and some additional
|
||||
/// logic. E.g. logic to write pallet version into storage.
|
||||
///
|
||||
/// NOTE: The macro also adds some tracing logic when implementing the above traits. The following
|
||||
/// hooks emit traces: `on_initialize`, `on_finalize` and `on_runtime_upgrade`.
|
||||
///
|
||||
/// # Call: `#[pallet::call]` mandatory
|
||||
///
|
||||
/// Implementation of pallet dispatchables.
|
||||
|
||||
Reference in New Issue
Block a user