Class KafkaPropagation
- java.lang.Object
-
- io.opentelemetry.instrumentation.kafka.internal.KafkaPropagation
-
public final class KafkaPropagation extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisPropagationEnabled()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 booleanshouldPropagate(org.apache.kafka.clients.ApiVersions apiVersions)
-
-
-
Method Detail
-
isPropagationEnabled
public static boolean isPropagationEnabled()
-
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)
-
-