Distinguishing Shadow Transactions from Reader Processes
As all processes running on the secondary server share the same node object, you can use the
The type property value of 5 indicates a shadow process (that is, a process replaying transactions on a secondary server), and can be tested for as follows.
if process.type = 5.Character then