How to identify which master has initiated the transaction in UVM TB

In reply to verific_engi:

You should use as a transaction member a master_id. Transactions coming from master0 get the id=0
and transactions from master1 get the id=1. Then you can identify which transaction comes from which master.