metrics

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UrlParamUsage = metrics.NewCounter(`http_requests_params{name="url"}`)
)

we might want to use getOrCreate instead of newCounter to dynamically handle all http statused with less code used http statuses are limited (4) so it is safer and better in terms of performance

Functions

func DefaultServer

func DefaultServer(addr string) *http.Server

func IncDatabaseErr

func IncDatabaseErr()

func IncEthNodeClusterErr

func IncEthNodeClusterErr()

func IncMetamaskInterceptorWrongNonce

func IncMetamaskInterceptorWrongNonce()

func IncPrivateTx

func IncPrivateTx()

func IncRPCNodeProxyClientErr

func IncRPCNodeProxyClientErr()

IncRPCNodeProxyClientErr increments client total errors counter when error caused on the client side/request building

func IncRPCNodeProxyServerErr

func IncRPCNodeProxyServerErr()

IncRPCNodeProxyServerErr increments server total errors counter when error caused on the server/transport layer

func IncRedisErr

func IncRedisErr()

func IncRelayClientErr

func IncRelayClientErr()

func IncRelayServerErr

func IncRelayServerErr()

func IncStatusEndpointErr

func IncStatusEndpointErr()

func IncUniswapInterceptorNonceDiffTooHigh

func IncUniswapInterceptorNonceDiffTooHigh()

func InitCustomersConfigMetric

func InitCustomersConfigMetric(customers ...string)

func ReportCustomerConfigWasUpdated

func ReportCustomerConfigWasUpdated(customer string)

func StatusBadRequestInc

func StatusBadRequestInc()

func StatusInternalServerErrorInc

func StatusInternalServerErrorInc()

func StatusNotFoundInc

func StatusNotFoundInc()

func StatusOKInc

func StatusOKInc()

func UrlParamUsageInc added in v1.13.0

func UrlParamUsageInc()

Types

This section is empty.

Jump to

Keyboard shortcuts

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