Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Dummy = &dummy{}
Dummy is a dummy recorder.
Functions ¶
This section is empty.
Types ¶
type Recorder ¶
type Recorder interface { // ObserveHTTPRequestDuration measures the duration of an HTTP request. ObserveHTTPRequestDuration(ctx context.Context, id string, duration time.Duration, method, code string) // ObserveHTTPResponseSize measures the size of an HTTP response in bytes. ObserveHTTPResponseSize(ctx context.Context, id string, sizeBytes int64, method, code string) // AddInflightRequests increments and decrements the number of inflight request being // processed. AddInflightRequests(ctx context.Context, id string, quantity int) }
Recorder knows how to record and measure the metrics. This Interface has the required methods to be used with the HTTP middlewares.
Click to show internal directories.
Click to hide internal directories.