def enable_legacy_validation():
    """Enable legacy name validation instead of allowing all UTF8 characters."""
    global _legacy_validation
    _legacy_validation = True
Enable legacy name validation instead of allowing all UTF8 characters.
prometheus_client/validation.py