Packages

o

kamon.instrumentation.kafka.client

KafkaInstrumentation

object KafkaInstrumentation

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KafkaInstrumentation
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Settings(continueTraceOnConsumer: Boolean, useDelayedSpans: Boolean) extends Product with Serializable
  2. implicit final class Syntax extends AnyVal

    Syntactical sugar to extract a Context from a ConsumerRecord instance.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def consumerSpan(record: ConsumerRecord[_, _], operationName: String): Span

    Creates a new consumer Span for the provided consumer record.

    Creates a new consumer Span for the provided consumer record. The relationship between the trace on the producer side of the topic and the new consumer Span is controlled by the "continue-trace-on-consumer" setting:

    • When enabled (default), the new consumer Span will be created as a child Span of the producer's Span. Both Spans will be part of the same trace.
    • When disabled, the new consumer Span will start a new trace, but will have a link to the Span on the producer side.

    NOTE: Continuing or linking Spans to the trace on the producer side is only possible when automatic instrumentation is enabled. If you are running your application without Kanela then you will only get a simple consumer Span, without any connection to the original trace.

  7. def consumerSpan(record: ConsumerRecord[_, _]): Span

    Creates a new consumer Span for the provided consumer record.

    Creates a new consumer Span for the provided consumer record. The relationship between the trace on the producer side of the topic and the new consumer Span is controlled by the "continue-trace-on-consumer" setting:

    • When enabled (default), the new consumer Span will be created as a child Span of the producer's Span. Both Spans will be part of the same trace.
    • When disabled, the new consumer Span will start a new trace, but will have a link to the Span on the producer side.

    NOTE: Continuing or linking Spans to the trace on the producer side is only possible when automatic instrumentation is enabled. If you are running your application without Kanela then you will only get a simple consumer Span, without any connection to the original trace.

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def extractContext[K, V](consumerRecord: ConsumerRecord[K, V]): Context
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def runWithConsumerSpan[T](record: ConsumerRecord[_, _], operationName: String, finishSpan: Boolean)(f: ⇒ T): T

    Creates a new consumer Span for the provided consumer record and sets it as the current Span while running the provided block of code.

    Creates a new consumer Span for the provided consumer record and sets it as the current Span while running the provided block of code. This function can optionally finish the Span once the code block execution has finished.

    The relationship between the trace on the producer side of the topic and the new consumer Span is controlled by the "continue-trace-on-consumer" setting:

    • When enabled (default), the new consumer Span will be created as a child Span of the producer's Span. Both Spans will be part of the same trace.
    • When disabled, the new consumer Span will start a new trace, but will have a link to the Span on the producer side.

    NOTE: Continuing or linking Spans to the trace on the producer side is only possible when automatic instrumentation is enabled. If you are running your application without Kanela then you will only get a simple consumer Span, without any connection to the original trace.

  19. def runWithConsumerSpan[T](record: ConsumerRecord[_, _], operationName: String)(f: ⇒ T): T

    Creates a new consumer Span for the provided consumer record and sets it as the current Span while running the provided block of code.

    Creates a new consumer Span for the provided consumer record and sets it as the current Span while running the provided block of code. This function can optionally finish the Span once the code block execution has finished.

    The relationship between the trace on the producer side of the topic and the new consumer Span is controlled by the "continue-trace-on-consumer" setting:

    • When enabled (default), the new consumer Span will be created as a child Span of the producer's Span. Both Spans will be part of the same trace.
    • When disabled, the new consumer Span will start a new trace, but will have a link to the Span on the producer side.

    NOTE: Continuing or linking Spans to the trace on the producer side is only possible when automatic instrumentation is enabled. If you are running your application without Kanela then you will only get a simple consumer Span, without any connection to the original trace.

  20. def runWithConsumerSpan[T](record: ConsumerRecord[_, _])(f: ⇒ T): T

    Creates a new consumer Span for the provided consumer record and sets it as the current Span while running the provided block of code.

    Creates a new consumer Span for the provided consumer record and sets it as the current Span while running the provided block of code. This function can optionally finish the Span once the code block execution has finished.

    The relationship between the trace on the producer side of the topic and the new consumer Span is controlled by the "continue-trace-on-consumer" setting:

    • When enabled (default), the new consumer Span will be created as a child Span of the producer's Span. Both Spans will be part of the same trace.
    • When disabled, the new consumer Span will start a new trace, but will have a link to the Span on the producer side.

    NOTE: Continuing or linking Spans to the trace on the producer side is only possible when automatic instrumentation is enabled. If you are running your application without Kanela then you will only get a simple consumer Span, without any connection to the original trace.

  21. def settings: Settings
  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  27. object Keys

Inherited from AnyRef

Inherited from Any

Ungrouped