metrics

package
v0.3.1-RC4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: AGPL-3.0, AGPL-3.0-or-later Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Prefix for the metrics of the synchronizer package.
	Prefix = "synchronizer_"

	// InitializationTimeName is the name of the label for the initialization of the synchronizer.
	InitializationTimeName = Prefix + "initialization_time"

	// FullTrustedSyncTimeName is the name of the label for the synchronization of the trusted state.
	FullTrustedSyncTimeName = Prefix + "full_trusted_sync_time"

	// FullL1SyncTimeName is the name of the label for the synchronization of the L1 state.
	FullL1SyncTimeName = Prefix + "full_L1_sync_time"

	// FullSyncIterationTimeName is the name of the label for a L1 synchronization.
	FullSyncIterationTimeName = Prefix + "full_L1_sync_time"

	// ReadL1DataTimeName is the name of the label to read L1 data.
	ReadL1DataTimeName = Prefix + "read_L1_data_time"

	// ProcessL1DataTimeName is the name of the label to process L1 data.
	ProcessL1DataTimeName = Prefix + "process_L1_data_time"

	// GetTrustedBatchNumberTimeName is the name of the label to get trusted batchNumber.
	GetTrustedBatchNumberTimeName = Prefix + "get_trusted_batchNumber_time"

	// GetTrustedBatchInfoTimeName is the name of the label to get trusted batchInfo.
	GetTrustedBatchInfoTimeName = Prefix + "get_trusted_batchInfo_time"

	// ProcessTrustedBatchTimeName is the name of the label to process trusted batch.
	ProcessTrustedBatchTimeName = Prefix + "process_trusted_batch_time"
)

Variables

This section is empty.

Functions

func FullL1SyncTime

func FullL1SyncTime(lastProcessTime time.Duration)

FullL1SyncTime observes the time for synchronize the trusted state on the histogram.

func FullSyncIterationTime

func FullSyncIterationTime(lastProcessTime time.Duration)

FullSyncIterationTime observes the time for synchronize the trusted state on the histogram.

func FullTrustedSyncTime

func FullTrustedSyncTime(lastProcessTime time.Duration)

FullTrustedSyncTime observes the time for synchronize the trusted state on the histogram.

func GetTrustedBatchInfoTime

func GetTrustedBatchInfoTime(lastProcessTime time.Duration)

GetTrustedBatchInfoTime observes the time for synchronize the trusted state on the histogram.

func GetTrustedBatchNumberTime

func GetTrustedBatchNumberTime(lastProcessTime time.Duration)

GetTrustedBatchNumberTime observes the time for synchronize the trusted state on the histogram.

func InitializationTime

func InitializationTime(lastProcessTime time.Duration)

InitializationTime observes the time initializing the synchronizer on the histogram.

func ProcessL1DataTime

func ProcessL1DataTime(lastProcessTime time.Duration)

ProcessL1DataTime observes the time for synchronize the trusted state on the histogram.

func ProcessTrustedBatchTime

func ProcessTrustedBatchTime(lastProcessTime time.Duration)

ProcessTrustedBatchTime observes the time for synchronize the trusted state on the histogram.

func ReadL1DataTime

func ReadL1DataTime(lastProcessTime time.Duration)

ReadL1DataTime observes the time for synchronize the trusted state on the histogram.

func Register

func Register()

Register the metrics for the synchronizer package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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