Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
APIDuration metric.Vec[metric.Observer]
RateLimit metric.Vec[metric.Observer]
}
Metrics holds the Prometheus metrics for external cloud API usage.
func (*Metrics) ObserveAPICall ¶
ObserveAPICall records the duration of an API call with the given operation name and response code.
Click to show internal directories.
Click to hide internal directories.