You can include extra information in traces, errors and http failures by using the setCustomData function.

Compatibility

Compatible with Node.js agent version 1.x or higher

Syntax

atatus.setCustomData(custom_data)

Parameter

Parameter Type Description
custom_data (Required) Can contain any property that can be JSON encoded.

Example

copy
icon/buttons/copy
import atatus from "atatus-nodejs";

atatus.setCustomData({
    plan: 'Premium',
    email: 'john.doe@acme.com',
    accountId: 54321
})

See also