Class KafkaTracing.Builder

  • Enclosing class:
    KafkaTracing

    public static final class KafkaTracing.Builder
    extends java.lang.Object
    • Method Detail

      • remoteServiceName

        public KafkaTracing.Builder remoteServiceName​(java.lang.String remoteServiceName)
        The remote service name that describes the broker in the dependency graph. Defaults to "kafka"
      • writeB3SingleFormat

        public KafkaTracing.Builder writeB3SingleFormat​(boolean writeB3SingleFormat)
        When true, only writes a single b3 header for outbound propagation.

        Use this to reduce overhead. Note: normal Tracing.propagation() is used to parse incoming headers. The implementation must be able to read "b3" headers.