Interface KafkaTelemetryProducerTracingFilter<K,V>

Type Parameters:
K - key class
V - value class

public interface KafkaTelemetryProducerTracingFilter<K,V>
Interface to filter producer messages for tracing.
Since:
5.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    filter(@NonNull org.apache.kafka.clients.producer.ProducerRecord<K,V> record, @NonNull org.apache.kafka.clients.producer.Producer<K,V> producer)
    Filter method for producer records, which should be traced.
  • Method Details

    • filter

      boolean filter(@NonNull @NonNull org.apache.kafka.clients.producer.ProducerRecord<K,V> record, @NonNull @NonNull org.apache.kafka.clients.producer.Producer<K,V> producer)
      Filter method for producer records, which should be traced.
      Parameters:
      record - the producer record
      producer - the producer
      Returns:
      true if this producer record should be traced, false - otherwise.