package
2.1.1
Repository: https://github.com/skip-mev/connect.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewAPIMetrics returns a Provider Metrics implementation that uses Prometheus.
NewAPIMetricsFromConfig returns a new Metrics struct given the main oracle metrics config.
NewNopAPIMetrics returns a Provider Metrics implementation that does nothing.
RedactedEndpointURL returns a redacted version of the given URL.

# Constants

EndpointLabel is a label for the endpoint of a provider API response.
RedactedURL is a label for the redacted URL of a provider API response.
RPCCodeError is the status code for a failed RPC request.
RPCCodeOK is the status code for a successful RPC request.
StatusCodeExactLabel is a label for the exact status code of a provider API response.
StatusCodeLabel is a label for the status code of a provider API response.
StatusLabel is a label for the status of a provider API response.

# Structs

APIMetricsImpl contains metrics exposed by this package.

# Interfaces

APIMetrics is an interface that defines the API for metrics collection for providers that implement the APIQueryHandler.

# Type aliases

No description provided by the author