contrib/gin-gonic/gin

Those integration are enabled by having the following import in the project’s orchestrion.tool.go file:

import (
	_ "github.com/DataDog/orchestrion"

	_ "gopkg.in/DataDog/dd-trace-go.v1/contrib/gin-gonic/gin" // integration
	//...
)

Gin is a web framework written in Go.

New

Join Point
One of
Advice
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
}()