You can set user details to debug which customer faces performance issues and crashes. The user information send along with errors, traces, analytics and transactions.

Compatibility

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

Syntax

atatus.setUser(obj)

Parameter

Parameter Type Description
obj Object (Required) Contains user id, name and email. Id is required.

Example

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

atatus.setUser({
    id: user.id,
    name: user.name,
    email: user.email
})

See also