From ebc8f8590546127de076f0e1fe5bc97bff54c491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mazeau?= Date: Thu, 10 Feb 2022 16:53:35 +0100 Subject: [PATCH] Update contrib/gin-gonic/gin/gintrace.go Co-authored-by: Julio Guerra --- contrib/gin-gonic/gin/gintrace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/gin-gonic/gin/gintrace.go b/contrib/gin-gonic/gin/gintrace.go index 419b7496c2..a5b53d32e9 100644 --- a/contrib/gin-gonic/gin/gintrace.go +++ b/contrib/gin-gonic/gin/gintrace.go @@ -24,8 +24,8 @@ import ( // Middleware returns middleware that will trace incoming requests. If service is empty then the // default service name will be used. func Middleware(service string, opts ...Option) gin.HandlerFunc { - cfg := newConfig(service) appsecEnabled := appsec.Enabled() + cfg := newConfig(service) for _, opt := range opts { opt(cfg) }