Resource resource() {
        return resource;
    }
The metrics resource for this provider which will be used to generate the metrics.

@return A fully formed {@link Resource} with all the tags.
clients/src/main/java/org/apache/kafka/common/telemetry/internals/ClientTelemetryProvider.java