sanitize transport input in metrics
Some metrics contain random strings for transports, let's allow only the known ones.