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

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

    Modifier and Type
    Method
    Description
    static <K, V> org.apache.kafka.clients.producer.ProducerRecord<K,V>
    propagateContext(io.opentelemetry.context.Context context, org.apache.kafka.clients.producer.ProducerRecord<K,V> record)
     
    static <K, V> org.apache.kafka.clients.producer.ProducerRecord<K,V>
    propagateContext(io.opentelemetry.context.propagation.TextMapPropagator propagator, io.opentelemetry.context.Context context, org.apache.kafka.clients.producer.ProducerRecord<K,V> record)
     
    static boolean
    shouldPropagate(org.apache.kafka.clients.ApiVersions apiVersions)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • shouldPropagate

      public static boolean shouldPropagate(org.apache.kafka.clients.ApiVersions apiVersions)
    • propagateContext

      public static <K, V> org.apache.kafka.clients.producer.ProducerRecord<K,V> propagateContext(io.opentelemetry.context.Context context, org.apache.kafka.clients.producer.ProducerRecord<K,V> record)
    • propagateContext

      public static <K, V> org.apache.kafka.clients.producer.ProducerRecord<K,V> propagateContext(io.opentelemetry.context.propagation.TextMapPropagator propagator, io.opentelemetry.context.Context context, org.apache.kafka.clients.producer.ProducerRecord<K,V> record)