From 11bca3fad5123a339460911318ab70a5fe11428f Mon Sep 17 00:00:00 2001 From: Eliott Bouhana Date: Mon, 5 Aug 2024 15:19:25 +0200 Subject: [PATCH] revert obvious testing error Signed-off-by: Eliott Bouhana --- contrib/gin-gonic/gin/gintrace.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contrib/gin-gonic/gin/gintrace.go b/contrib/gin-gonic/gin/gintrace.go index 2738862c7d..1746c2689a 100644 --- a/contrib/gin-gonic/gin/gintrace.go +++ b/contrib/gin-gonic/gin/gintrace.go @@ -30,8 +30,7 @@ func init() { // Middleware returns middleware that will trace incoming requests. If service is empty then the // default service name will be used. -func Middleware(opts ...Option) gin.HandlerFunc { - service := "" +func Middleware(service string, opts ...Option) gin.HandlerFunc { cfg := newConfig(service) for _, opt := range opts { opt(cfg)