Documentation ¶
Index ¶
Constants ¶
View Source
const RequestDurationMetricName = "request_duration_s"
RequestDurationMetricName is the name of the http request duration metric.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointTransformer ¶
EndpointTransformer is the interface for a transformer that can be configured for modifying the endpoint label on the request duration metric.
type TimedRoundTripper ¶
type TimedRoundTripper struct { http.RoundTripper // contains filtered or unexported fields }
TimedRoundTripper is an `http.RoundTripper` that captures request timing.
func NewTimedRoundTripper ¶
func NewTimedRoundTripper(rt http.RoundTripper, endpointTransformer EndpointTransformer) *TimedRoundTripper
NewTimedRoundTripper constructs a new TimedRoundTripper with configurable EndpointTransformer.
Click to show internal directories.
Click to hide internal directories.