metrics

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 4 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) RecordGasBumpCount

func (*NoopTxMetrics) RecordGasBumpCount(int)

func (*NoopTxMetrics) RecordNonce

func (*NoopTxMetrics) RecordNonce(uint64)

func (*NoopTxMetrics) RecordPendingTx

func (*NoopTxMetrics) RecordPendingTx(int64)

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)
	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) 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) 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