Syntactical sugar to extract a Context from a ConsumerRecord instance.
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:
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.
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:
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.
Copies internal state managed by Kamon from one consumer record to another, if possible.
Copies internal state managed by Kamon from one consumer record to another, if possible. This utility is only necessary when there is custom code that creates ConsumerRecord instances which "forget" the consumer data that was injected by Kamon while calling the poll method.
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:
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.
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:
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.
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:
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.