stats

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerStats

type HandlerStats interface {
	// BlockRequestHandler stats
	IncBlockRequest()
	IncMissingBlockHash()
	UpdateBlocksReturned(num uint16)
	UpdateBlockRequestProcessingTime(duration time.Duration)

	// CodeRequestHandler stats
	IncCodeRequest()
	IncMissingCodeHash()
	UpdateCodeReadTime(duration time.Duration)
	UpdateCodeBytesReturned(bytes uint32)

	// LeafsRequestHandler stats
	IncLeafsRequest()
	UpdateLeafsReturned(numLeafs uint16)
	UpdateLeafsRequestProcessingTime(duration time.Duration)
	IncMissingRoot()
}

HandlerStats reports prometheus metrics for the state sync handlers

func NewHandlerStats

func NewHandlerStats() HandlerStats

func NewNoopHandlerStats

func NewNoopHandlerStats() HandlerStats

Jump to

Keyboard shortcuts

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