refactor: simplify collected metrics (#21963)

This commit is contained in:
Julien Robert
2024-09-28 11:20:39 +00:00
committed by GitHub
parent dd9e5825ae
commit 787ee6980f
20 changed files with 59 additions and 158 deletions
+4
View File
@@ -14,6 +14,7 @@ import (
"cosmossdk.io/x/protocolpool/types"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/telemetry"
sdk "github.com/cosmos/cosmos-sdk/types"
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
@@ -507,5 +508,8 @@ func (k Keeper) validateContinuousFund(ctx context.Context, msg types.MsgCreateC
}
func (k Keeper) BeginBlocker(ctx context.Context) error {
start := telemetry.Now()
defer telemetry.ModuleMeasureSince(types.ModuleName, start, telemetry.MetricKeyBeginBlocker)
return k.SetToDistribute(ctx)
}