metrics

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

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

func (*NoopTxMetrics) RPCError()

func (*NoopTxMetrics) RecordBaseFee added in v1.4.0

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

func (*NoopTxMetrics) RecordGasBumpCount

func (*NoopTxMetrics) RecordGasBumpCount(int)

func (*NoopTxMetrics) RecordNonce

func (*NoopTxMetrics) RecordNonce(uint64)

func (*NoopTxMetrics) RecordPendingTx

func (*NoopTxMetrics) RecordPendingTx(int64)

func (*NoopTxMetrics) RecordTipCap added in v1.4.0

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

func (*NoopTxMetrics) RecordTxConfirmationLatency

func (*NoopTxMetrics) RecordTxConfirmationLatency(int64)

func (*NoopTxMetrics) TxConfirmed

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

func (*NoopTxMetrics) TxPublished

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)
	RecordTipCap(*big.Int)
	RPCError()
}

type TxMetrics

type TxMetrics struct {
	TxL1GasFee prometheus.Gauge

	TxGasBump prometheus.Gauge

	LatencyConfirmedTx prometheus.Gauge
	// contains filtered or unexported fields
}

func MakeTxMetrics

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

func (*TxMetrics) RPCError

func (t *TxMetrics) RPCError()

func (*TxMetrics) RecordBaseFee added in v1.4.0

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

func (*TxMetrics) RecordGasBumpCount

func (t *TxMetrics) RecordGasBumpCount(times int)

func (*TxMetrics) RecordNonce

func (t *TxMetrics) RecordNonce(nonce uint64)

func (*TxMetrics) RecordPendingTx

func (t *TxMetrics) RecordPendingTx(pending int64)

func (*TxMetrics) RecordTipCap added in v1.4.0

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

func (*TxMetrics) RecordTxConfirmationLatency

func (t *TxMetrics) RecordTxConfirmationLatency(latency int64)

func (*TxMetrics) TxConfirmed

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

TxConfirmed records lots of information about the confirmed transaction

func (*TxMetrics) TxPublished

func (t *TxMetrics) TxPublished(errString string)

Jump to

Keyboard shortcuts

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