Class KafkaPropagation
java.lang.Object
io.opentelemetry.instrumentation.kafka.internal.KafkaPropagation
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 TypeMethodDescriptionstatic <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 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)
-