metrics

package
v1.0.5-experimental.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NopCollector = &nopCollector{}

Functions

This section is empty.

Types

type Collector

type Collector interface {
	ApiErrorOccurred()
	ServerPanicked(reason string)
	CadenceHeightIndexed(height uint64)
	EVMHeightIndexed(height uint64)
	EVMTransactionIndexed(count int)
	EVMAccountInteraction(address string)
	MeasureRequestDuration(start time.Time, method string)
	OperatorBalance(account *flow.Account)
	AvailableSigningKeys(count int)
	GasEstimationIterations(count int)
	BlockIngestionTime(blockCreation time.Time)
}

func NewCollector

func NewCollector(logger zerolog.Logger) Collector

type DefaultCollector

type DefaultCollector struct {
	// contains filtered or unexported fields
}

func (*DefaultCollector) ApiErrorOccurred

func (c *DefaultCollector) ApiErrorOccurred()

func (*DefaultCollector) AvailableSigningKeys added in v1.0.0

func (c *DefaultCollector) AvailableSigningKeys(count int)

func (*DefaultCollector) BlockIngestionTime added in v1.0.4

func (c *DefaultCollector) BlockIngestionTime(blockCreation time.Time)

func (*DefaultCollector) CadenceHeightIndexed added in v0.36.4

func (c *DefaultCollector) CadenceHeightIndexed(height uint64)

func (*DefaultCollector) EVMAccountInteraction added in v0.27.0

func (c *DefaultCollector) EVMAccountInteraction(address string)

func (*DefaultCollector) EVMHeightIndexed added in v0.27.0

func (c *DefaultCollector) EVMHeightIndexed(height uint64)

func (*DefaultCollector) EVMTransactionIndexed added in v0.36.5

func (c *DefaultCollector) EVMTransactionIndexed(count int)

func (*DefaultCollector) GasEstimationIterations added in v1.0.2

func (c *DefaultCollector) GasEstimationIterations(count int)

func (*DefaultCollector) MeasureRequestDuration

func (c *DefaultCollector) MeasureRequestDuration(start time.Time, method string)

func (*DefaultCollector) OperatorBalance added in v0.31.0

func (c *DefaultCollector) OperatorBalance(account *flow.Account)

func (*DefaultCollector) ServerPanicked

func (c *DefaultCollector) ServerPanicked(reason string)

Jump to

Keyboard shortcuts

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