forked from cerc-io/laconicd-deprecated
Remove unbound labels from added custom tendermint metrics (#1434)
* Remove unbound labels from added custom tendermint metrics * Add entry to changelog
This commit is contained in:
@@ -32,15 +32,11 @@ 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")}
|
||||
labels = append(labels, telemetry.NewLabel("execution", "create"))
|
||||
} else {
|
||||
labels = []metrics.Label{
|
||||
telemetry.NewLabel("execution", "call"),
|
||||
telemetry.NewLabel("to", tx.To().Hex()), // recipient address (contract or account)
|
||||
}
|
||||
labels = append(labels, telemetry.NewLabel("execution", "call"))
|
||||
}
|
||||
|
||||
response, err := k.ApplyTransaction(ctx, tx)
|
||||
|
||||
Reference in New Issue
Block a user