metrics

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricsNamespace = "ufm"
)

Variables

View Source
var (
	Debug bool
)

Functions

func RecordError

func RecordError(provider string, errorLabel string)

func RecordErrorDetails

func RecordErrorDetails(provider string, label string, err error)

RecordErrorDetails concats the error message to the label removing non-alpha chars

func RecordFirstSeenLatency

func RecordFirstSeenLatency(providerSource string, providerSeen string, latency time.Duration)

func RecordGasUsed

func RecordGasUsed(provider string, val uint64)

func RecordProviderToProviderLatency

func RecordProviderToProviderLatency(providerSource string, providerSeen string, latency time.Duration)

func RecordRPCLatency

func RecordRPCLatency(provider string, client string, method string, latency time.Duration)

func RecordRoundTripLatency

func RecordRoundTripLatency(provider string, latency time.Duration)

func RecordTransactionsInFlight

func RecordTransactionsInFlight(network string, count int)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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