Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit c86a3aa

Browse files
committed
Added named arguments to ReportStats interface
1 parent b279db1 commit c86a3aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rye.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type MWHandler struct {
2828
// CustomStatter allows the client to log any additional statsD metrics Rye
2929
// computes around the request handler.
3030
type CustomStatter interface {
31-
ReportStats(string, time.Duration, *http.Request, *Response) error
31+
ReportStats(handlerName string, elapsedTime time.Duration, req *http.Request, resp *Response) error
3232
}
3333

3434
// Config struct allows you to set a reference to a statsd.Statter and include it's stats rate.

0 commit comments

Comments
 (0)