Custom transformers change data before it goes into a model. The main goal is to improve the model's results. So, the key metrics to watch are the model's accuracy, precision, recall, and F1 score after using the transformer. These show if the data change helped the model learn better.
Also, check the consistency of the transformer: it should always transform data the same way. This ensures the model gets reliable input.