Skip to content

Commit

Permalink
revert obvious testing error
Browse files Browse the repository at this point in the history
Signed-off-by: Eliott Bouhana <eliott.bouhana@datadoghq.com>
  • Loading branch information
eliottness committed Aug 5, 2024
1 parent 32af1ce commit 11bca3f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contrib/gin-gonic/gin/gintrace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 11bca3f

Please sign in to comment.