contrib/labstack/echo.v4
Those integration are enabled by having the
following import
in the project’s orchestrion.tool.go
file:
import (
_ "github.com/DataDog/orchestrion"
_ "github.com/DataDog/dd-trace-go/contrib/labstack/echo.v4/v2" // integration
//...
)
High performance, extensible, minimalist Go web framework.
New
Call to
echo.New
Replace the expression using the template:
// Using the following synthetic imports:
import (
echo "github.com/labstack/echo/v4"
echotrace "github.com/DataDog/dd-trace-go/contrib/labstack/echo.v4/v2"
)
func() *echo.Echo {
e := {{ . }}
e.Use(echotrace.Middleware())
return e
}()