Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

Fix gin plugin bug #52

Merged
merged 1 commit into from
Mar 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions plugins/gin/gin.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
package gin

import (
"fmt"
"strconv"
"sync"
"time"
Expand Down Expand Up @@ -63,10 +64,10 @@ func Middleware(engine *gin.Engine, tracer *go2sky.Tracer) gin.HandlerFunc {
rm[r.Method] = mm
}
mm[r.Handler] = routeInfo{
operationName: c.Request.Host + c.Request.URL.Path,
operationName: fmt.Sprintf("/%s%s", r.Method, r.Path),
}
m.routeMap = rm
}
m.routeMap = rm
})
var operationName string
handlerName := c.HandlerName()
Expand Down