From c86a3aa42db2220612b5ff0401bf6696aa9e70b8 Mon Sep 17 00:00:00 2001 From: Bryan Stanley Date: Thu, 4 Oct 2018 10:48:43 -0400 Subject: [PATCH] Added named arguments to ReportStats interface --- rye.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rye.go b/rye.go index f6ae82e..022649f 100644 --- a/rye.go +++ b/rye.go @@ -28,7 +28,7 @@ type MWHandler struct { // CustomStatter allows the client to log any additional statsD metrics Rye // computes around the request handler. type CustomStatter interface { - ReportStats(string, time.Duration, *http.Request, *Response) error + ReportStats(handlerName string, elapsedTime time.Duration, req *http.Request, resp *Response) error } // Config struct allows you to set a reference to a statsd.Statter and include it's stats rate.