Installation Steps For Echo 4.x.x

If you are using Echo 4.x (github.com/labstack/echo/v4), use module/atechov4.

  1. Get the latest Go agent from

    copy
    icon/buttons/copy
    go get go.atatus.com/agent
    
  2. Add atechov4 into Gin Middleware.

    copy
    icon/buttons/copy
    import (
        "github.com/labstack/echo/v4"
        "go.atatus.com/agent/module/atechov4"
    )
    
    func main() {
        e := echo.New()
        e.Use(atechov4.Middleware())
        ...
    }
    
  3. Update your go module dependency.

    go mod tidy
    
  4. Restart your Gin server to view your performance data within minutes.

    env ATATUS_LICENSE_KEY="lic_apm_aajer7238823kkdsv" ATATUS_APP_NAME="Go App" go run *.go
    

Installation Steps For Echo 3.x.x

If you are using Echo 3.x (github.com/labstack/echo), use module/atecho.

  1. Get the latest Go agent from

    copy
    icon/buttons/copy
    go get go.atatus.com/agent
    
  2. Add atgin into Gin Middleware.

    copy
    icon/buttons/copy
    import (
        echo "github.com/labstack/echo"
        "go.atatus.com/agent/module/atecho"
    )
    
    func main() {
        e := echo.New()
        e.Use(atecho.Middleware())
        ...
    }
    
  3. Update your go module dependency.

    go mod tidy
    
  4. Restart your Gin server to view your performance data within minutes.

    env ATATUS_LICENSE_KEY="lic_apm_aajer7238823kkdsv" ATATUS_APP_NAME="Go App" go run *.go