For Cosmos DB we introduced a simpler API to extract transaction information from the headers and the messages https://docs.particular.net/persistence/cosmosdb/transactions This persister could benefit from similar improvements