Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Remove unbound labels from added custom tendermint metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
v-homsi committed Nov 7, 2022
1 parent 41425fc commit ae066e2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions x/evm/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,12 @@ func (k *Keeper) EthereumTx(goCtx context.Context, msg *types.MsgEthereumTx) (*t

labels := []metrics.Label{
telemetry.NewLabel("tx_type", fmt.Sprintf("%d", tx.Type())),
telemetry.NewLabel("from", sender),
}
if tx.To() == nil {
labels = []metrics.Label{telemetry.NewLabel("execution", "create")}
} else {
labels = []metrics.Label{
telemetry.NewLabel("execution", "call"),
telemetry.NewLabel("to", tx.To().Hex()), // recipient address (contract or account)
}
}

Expand Down

0 comments on commit ae066e2

Please sign in to comment.