public class ProducerTracer<S> extends Object
Modifier and Type | Class and Description |
---|---|
class |
ProducerTracer.StartedSpan |
Modifier and Type | Method and Description |
---|---|
static <S> ProducerTracer |
create(VertxTracer tracer,
KafkaClientOptions opts)
Creates a ProducerTracer, which provides an opinionated facade for using
VertxTracer
with a Kafka Producer use case. |
ProducerTracer.StartedSpan |
prepareSendMessage(Context context,
org.apache.kafka.clients.producer.ProducerRecord record) |
public static <S> ProducerTracer create(VertxTracer tracer, KafkaClientOptions opts)
VertxTracer
with a Kafka Producer use case.
The method will return null
if Tracing is not setup in Vert.x, or if TracingPolicy.IGNORE
is used.S
- the type of spans that is going to be generated, depending on the tracing system (zipkin, opentracing ...)tracer
- the generic tracer objectopts
- Kafka client optionsProducerTracer
, or null
public ProducerTracer.StartedSpan prepareSendMessage(Context context, org.apache.kafka.clients.producer.ProducerRecord record)
Copyright © 2022 Eclipse. All rights reserved.