Skip to content

Commit

Permalink
Update contrib/gin-gonic/gin/gintrace.go
Browse files Browse the repository at this point in the history
Co-authored-by: Julio Guerra <julio@datadog.com>
  • Loading branch information
Hellzy and Julio-Guerra committed Feb 10, 2022
1 parent bb99099 commit ebc8f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/gin-gonic/gin/gintrace.go
Expand Up @@ -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)
}
Expand Down

0 comments on commit ebc8f85

Please sign in to comment.