You may track errors using the CaptureError(ctx, error)
method.
Syntax
copy
CaptureError(ctx, error)
Parameter
Parameter | Type | Description |
---|---|---|
ctx | Context (Required) | |
error | Exception (Required) | Custom Exception instance. |
Examples
copy
import (
"go.atatus.com/agent"
)
if error != nil {
err := atatus.CaptureError(ctx, error)
err.Send()
}