boolean validate(MetricsContext metricsContext) {
        return ClientTelemetryUtils.validateRequiredResourceLabels(metricsContext.contextLabels());
    }
Validate that all the data required for generating correct metrics is present.

@param metricsContext {@link MetricsContext}
@return false if all the data required for generating correct metrics is missing, true
otherwise.
clients/src/main/java/org/apache/kafka/common/telemetry/internals/ClientTelemetryProvider.java