private int computeSubscriptionId(Set<String> metrics, int pushIntervalMs, Uuid clientInstanceId) {
        byte[] metricsBytes = (metrics.toString() + pushIntervalMs).getBytes(StandardCharsets.UTF_8);
        long computedCrc = Crc32C.compute(metricsBytes, 0, metricsBytes.length);
        return (int) computedCrc ^ clientInstanceId.hashCode();
    }
Computes the SubscriptionId as a unique identifier for a client instance's subscription set,
the id is generated by calculating a CRC32C of the configured metrics subscriptions including
the PushIntervalMs, XORed with the ClientInstanceId.
server/src/main/java/org/apache/kafka/server/ClientMetricsManager.java