You can exclude a particular transaction with excludeURL function. Let us say you want to exclude URL starts with /v1/internal/, then you can do it as follows:
The argument of the excludeURL function is a Regex pattern string. The URL that is matching the pattern will not be monitored.