You may track errors using the CaptureError(ctx, error) method.

Syntax

copy
icon/buttons/copy
CaptureError(ctx, error)

Parameter

Parameter Type Description
ctx Context (Required)
error Exception (Required) Custom Exception instance.

Examples

copy
icon/buttons/copy
import (
    "go.atatus.com/agent"
)

if error != nil {
        err := atatus.CaptureError(ctx, error)
        err.Send()
}