Skip to content

Commit 62cd854

Browse files
gap-editoraljo242
andauthored
refactor: update telemetry keys in module BeginBlockers/PreBlockers (#24547)
Co-authored-by: Alex | Interchain Labs <[email protected]>
1 parent 9168ce4 commit 62cd854

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

x/upgrade/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
2525

2626
## [Unreleased]
2727

28+
### Improvements
29+
30+
* [#24543](https://github.com/cosmos/cosmos-sdk/issues/24543) Use `telemetry.MetricKeyPreBlocker` metric key instead of `telemetry.MetricKeyBeginBlocker` in `PreBlocker`.
31+
2832
## [v0.2.0](https://github.com/cosmos/cosmos-sdk/releases/tag/x/upgrade/v0.2.0) - 2025-04-24
2933

3034
* SDK v0.53.x support.

x/upgrade/abci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
//
2626
// Note: The MetricKey will change to MetricKeyPreBlocker in v0.54.0.
2727
func PreBlocker(ctx context.Context, k *keeper.Keeper) (appmodule.ResponsePreBlock, error) {
28-
defer telemetry.ModuleMeasureSince(types.ModuleName, telemetry.Now(), telemetry.MetricKeyBeginBlocker)
28+
defer telemetry.ModuleMeasureSince(types.ModuleName, telemetry.Now(), telemetry.MetricKeyPreBlocker)
2929

3030
sdkCtx := sdk.UnwrapSDKContext(ctx)
3131
blockHeight := sdkCtx.HeaderInfo().Height

0 commit comments

Comments
 (0)