Documentation ¶
Index ¶
- Constants
- func FullL1SyncTime(lastProcessTime time.Duration)
- func FullSyncIterationTime(lastProcessTime time.Duration)
- func FullTrustedSyncTime(lastProcessTime time.Duration)
- func GetTrustedBatchInfoTime(lastProcessTime time.Duration)
- func GetTrustedBatchNumberTime(lastProcessTime time.Duration)
- func InitializationTime(lastProcessTime time.Duration)
- func LastSyncedBatchNumber(batchNum float64)
- func ProcessL1DataTime(lastProcessTime time.Duration)
- func ProcessTrustedBatchTime(lastProcessTime time.Duration)
- func ReadL1DataTime(lastProcessTime time.Duration)
- func Register()
Constants ¶
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" // LastSyncedBatchNumberName is the name of tha lable to get latest synced batch number LastSyncedBatchNumberName = Prefix + "latest_synced_batch_number" )
Variables ¶
This section is empty.
Functions ¶
func FullL1SyncTime ¶
FullL1SyncTime observes the time for synchronize the trusted state on the histogram.
func FullSyncIterationTime ¶
FullSyncIterationTime observes the time for synchronize the trusted state on the histogram.
func FullTrustedSyncTime ¶
FullTrustedSyncTime observes the time for synchronize the trusted state on the histogram.
func GetTrustedBatchInfoTime ¶
GetTrustedBatchInfoTime observes the time for synchronize the trusted state on the histogram.
func GetTrustedBatchNumberTime ¶
GetTrustedBatchNumberTime observes the time for synchronize the trusted state on the histogram.
func InitializationTime ¶
InitializationTime observes the time initializing the synchronizer on the histogram.
func LastSyncedBatchNumber ¶ added in v0.5.0
func LastSyncedBatchNumber(batchNum float64)
LastSyncedBatchNumber observes latest synced batch number
func ProcessL1DataTime ¶
ProcessL1DataTime observes the time for synchronize the trusted state on the histogram.
func ProcessTrustedBatchTime ¶
ProcessTrustedBatchTime observes the time for synchronize the trusted state on the histogram.
func ReadL1DataTime ¶
ReadL1DataTime observes the time for synchronize the trusted state on the histogram.
Types ¶
This section is empty.