If you wish to start a transaction, use the atatus.startTransaction() function.

Compatibility

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

Syntax

atatus.startTransaction(transaction_name)

Parameter

Parameter Type Description
transaction_name String (Required) Transaction name.

Example

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

atatus.startTransaction("custom transaction name");
// Your code here.
atatus.endTransaction();

See also