java.lang.Object
io.opentelemetry.instrumentation.kafkaclients.common.v0_11.internal.KafkaUtil

public final class KafkaUtil extends Object
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Method Details

    • getConsumerGroup

      @Nullable public static String getConsumerGroup(@Nullable org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
    • getClientId

      @Nullable public static String getClientId(@Nullable org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
    • extractBootstrapServers

      @Nullable public static String extractBootstrapServers(org.apache.kafka.clients.producer.Producer<?,?> producer)
    • extractBootstrapServers

      @Nullable public static String extractBootstrapServers(@Nullable List<String> serversConfig)