Class TracingKafkaPropagatorGetter

java.lang.Object
org.springframework.cloud.sleuth.instrument.kafka.TracingKafkaPropagatorGetter
All Implemented Interfaces:
Propagator.Getter<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>

public class TracingKafkaPropagatorGetter extends Object implements Propagator.Getter<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>
Getter extracting the values from the ConsumerRecord headers for Kafka based communication.
Since:
3.1.0
Author:
Anders Clausen, Flaviu Muresan
  • Constructor Details

    • TracingKafkaPropagatorGetter

      public TracingKafkaPropagatorGetter()
  • Method Details

    • get

      public String get(org.apache.kafka.clients.consumer.ConsumerRecord<?,?> carrier, String key)
      Specified by:
      get in interface Propagator.Getter<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>