metrics

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2024 License: MIT Imports: 5 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoopTxMetrics

type NoopTxMetrics struct{}

func (*NoopTxMetrics) RPCError added in v1.0.3

func (*NoopTxMetrics) RPCError()

func (*NoopTxMetrics) RecordBaseFee added in v1.5.0

func (*NoopTxMetrics) RecordBaseFee(*big.Int)

func (*NoopTxMetrics) RecordBlobBaseFee added in v1.7.3

func (*NoopTxMetrics) RecordBlobBaseFee(*big.Int)

func (*NoopTxMetrics) RecordGasBumpCount added in v1.0.3

func (*NoopTxMetrics) RecordGasBumpCount(int)

func (*NoopTxMetrics) RecordNonce added in v1.0.3

func (*NoopTxMetrics) RecordNonce(uint64)

func (*NoopTxMetrics) RecordPendingTx added in v1.0.6

func (*NoopTxMetrics) RecordPendingTx(int64)

func (*NoopTxMetrics) RecordTipCap added in v1.4.3

func (*NoopTxMetrics) RecordTipCap(*big.Int)

func (*NoopTxMetrics) RecordTxConfirmationLatency added in v1.0.3

func (*NoopTxMetrics) RecordTxConfirmationLatency(int64)

func (*NoopTxMetrics) TxConfirmed added in v1.0.3

func (*NoopTxMetrics) TxConfirmed(*types.Receipt)

func (*NoopTxMetrics) TxPublished added in v1.0.3

func (*NoopTxMetrics) TxPublished(string)

type TxMetricer

type TxMetricer interface {
	RecordGasBumpCount(int)
	RecordTxConfirmationLatency(int64)
	RecordNonce(uint64)
	RecordPendingTx(pending int64)
	TxConfirmed(*types.Receipt)
	TxPublished(string)
	RecordBaseFee(*big.Int)
	RecordBlobBaseFee(*big.Int)
	RecordTipCap(*big.Int)
	RPCError()
}

type TxMetrics

type TxMetrics struct {
	// contains filtered or unexported fields
}

func MakeTxMetrics

func MakeTxMetrics(ns string, factory metrics.Factory) TxMetrics

func (*TxMetrics) RPCError added in v1.0.3

func (t *TxMetrics) RPCError()

func (*TxMetrics) RecordBaseFee added in v1.5.0

func (t *TxMetrics) RecordBaseFee(baseFee *big.Int)

func (*TxMetrics) RecordBlobBaseFee added in v1.7.3

func (t *TxMetrics) RecordBlobBaseFee(blobBaseFee *big.Int)

func (*TxMetrics) RecordGasBumpCount added in v1.0.3

func (t *TxMetrics) RecordGasBumpCount(times int)

func (*TxMetrics) RecordNonce added in v1.0.3

func (t *TxMetrics) RecordNonce(nonce uint64)

func (*TxMetrics) RecordPendingTx added in v1.0.6

func (t *TxMetrics) RecordPendingTx(pending int64)

func (*TxMetrics) RecordTipCap added in v1.4.3

func (t *TxMetrics) RecordTipCap(tipcap *big.Int)

func (*TxMetrics) RecordTxConfirmationLatency added in v1.0.3

func (t *TxMetrics) RecordTxConfirmationLatency(latency int64)

func (*TxMetrics) TxConfirmed added in v1.0.3

func (t *TxMetrics) TxConfirmed(receipt *types.Receipt)

TxConfirmed records lots of information about the confirmed transaction

func (*TxMetrics) TxPublished added in v1.0.3

func (t *TxMetrics) TxPublished(errString string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL