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
import atatus from "atatus-nodejs";
atatus.startTransaction("custom transaction name");
// Your code here.
atatus.endTransaction();
Example 2
copy
import atatus from "atatus-nodejs";
var txn = atatus.startTransaction("custom transaction name");
// Your code here.
txn.end();