Rookout's Go SDK is a Go module that supports on the fly debugging and data extraction from Go applications in production.
Go versions 1.16 and higher are supported.
Linux (including Alpine) and Mac operating systems are supported.
Add the Rookout SDK by running:
go get -d github.com/Rookout/GoSDK
Import Rookout in the file containing your main
package:
import (
rookout "github.com/Rookout/GoSDK"
)
Call rookout.Start
as early as possible in your main
function:
rookout.Start(rookout.RookOptions{token=[Your Rookout Token]})
For the best experience, build your application with extra debug info:
go build -gcflags="all=-dwarflocationlists=true"
For more info see the complete setup guide in our docs.