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) }