Installation steps

  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 (
        "github.com/gin-gonic/gin"
        "go.atatus.com/agent/module/atgin"
    )
    
    func main() {
        engine := gin.New()
        engine.Use(atgin.Middleware(engine))
        ...
    }
    
  3. Update your go module dependency.

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

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