github.com/gin-gonic/gin
Gin is a web framework written in Go.
Use tracer middleware
One of
- Call to
gin.Default
- Call to
gin.New
Replace the expression using the template:
// Using the following synthetic imports:
import (
gin "github.com/gin-gonic/gin"
gintrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/gin-gonic/gin"
)
func() *gin.Engine {
e := {{ . }}
e.Use(gintrace.Middleware(""))
return e
}()