def METHOD_NAME(cls, is_cluster):
    # type: (Any, bool) -> None
    """
    This function can be used to instrument custom redis client classes or
    subclasses.
    """
    old_execute_command = cls.execute_command
    def sentry_patched_execute_command(self, name, *args, **kwargs):
        # type: (Any, str, *Any, **Any) -> Any
        hub = Hub.current
        integration = hub.get_integration(RedisIntegration)
        if integration is None:
            return old_execute_command(self, name, *args, **kwargs)
        description = _get_span_description(name, *args)
        data_should_be_truncated = (
            integration.max_data_size and len(description) > integration.max_data_size
        )
        if data_should_be_truncated:
            description = description[: integration.max_data_size - len("...")] + "..."
        with hub.start_span(op=OP.DB_REDIS, description=description) as span:
            _set_client_data(span, is_cluster, name, *args)
            return old_execute_command(self, name, *args, **kwargs)
    cls.execute_command = sentry_patched_execute_command