Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestDuration ¶
RequestDuration observes (histogram) the duration of a request from the provided starting time.
func RequestHandled ¶
func RequestHandled(label RequestHandledLabel)
RequestHandled increments the requests handled counter vector by one for the given label.
Types ¶
type RequestHandledLabel ¶
type RequestHandledLabel string
RequestHandledLabel represents the possible values for the `jsonrpc_request_handled` metric `type` label.
const ( // RequestHandledLabelInvalid represents an request of type invalid RequestHandledLabelInvalid RequestHandledLabel = "invalid" // RequestHandledLabelSingle represents an request of type single RequestHandledLabelSingle RequestHandledLabel = "single" // RequestHandledLabelBatch represents an request of type batch RequestHandledLabelBatch RequestHandledLabel = "batch" )
Click to show internal directories.
Click to hide internal directories.