metrics

package
v0.7.0-fork11-RC1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 3 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// Prefix for the metrics of the state package.
	Prefix = "state_"
	// ExecutorProcessingTimeName is the name of the metric that shows the processing time in the executor.
	ExecutorProcessingTimeName = Prefix + "executor_processing_time"
	// CallerLabelName is the name of the label for the caller.
	CallerLabelName = "caller"

	// SequencerCallerLabel is used when sequencer is calling the function
	SequencerCallerLabel CallerLabel = "sequencer"
	// SynchronizerCallerLabel is used when synchronizer is calling the function
	SynchronizerCallerLabel CallerLabel = "synchronizer"
	// DiscardCallerLabel is used we want to skip measuring the execution time
	DiscardCallerLabel CallerLabel = "discard"
)

Variables

This section is empty.

Functions

func ExecutorProcessingTime

func ExecutorProcessingTime(caller string, lastExecutionTime time.Duration)

ExecutorProcessingTime observes the last processing time of the executor in the histogram vector by the provided elapsed time and for the given label.

func Register

func Register()

Register the metrics for the sequencer package.

Types

type CallerLabel added in v0.0.990

type CallerLabel string

CallerLabel is used to point which entity is the caller of a given function

Jump to

Keyboard shortcuts

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