diff --git a/chain/chain.go b/chain/chain.go index c9e09691c..107665cd8 100644 --- a/chain/chain.go +++ b/chain/chain.go @@ -241,7 +241,7 @@ func (c *Chain) GetTransaction(id thor.Bytes32) (*tx.Transaction, *TxMeta, error if err != nil { return nil, nil, err } - metricTransactionReadCounter().Add(1) + metricTransactionRepositoryCounter().AddWithLabel(1, map[string]string{"type": "read"}) return tx, txMeta, nil } @@ -257,7 +257,7 @@ func (c *Chain) GetTransactionReceipt(txID thor.Bytes32) (*tx.Receipt, error) { if err != nil { return nil, err } - metricReceiptReadCounter().Add(1) + metricReceiptRepositoryCounter().AddWithLabel(1, map[string]string{"type": "read"}) return receipt, nil }