metrics

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapDB

func WrapDB(beaconDB storage.BeaconDB, cfg Config) storage.BeaconDB

WrapDB wraps the given beacon database into one that also exports metrics.

Types

type Config

type Config struct {
	Driver       string
	QueriesTotal metrics.Counter
}

type Observable

type Observable func(context.Context) (label string, err error)

type Observer

type Observer struct {
	Cfg Config
}

func (Observer) Observe

func (o Observer) Observe(ctx context.Context, op string, action Observable)

Jump to

Keyboard shortcuts

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