If you wish to end any particular transaction currently active, use the atatus.endTransaction() function.

Compatibility

Compatible with all Node.js agent versions

Syntax

atatus.endTransaction()

Parameter

atatus.endTransaction() does not accept any parameters.

Example 1

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

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

Example 2

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

var txn = atatus.startTransaction("custom transaction name");
// Your code here.
txn.end();

See also