Hi there
we use quarkus-opentracing, quarkus-smallrye-reactive-messaging-kafka and opentracing-kafka-client to pass tracing headers through kafka messages.
however, sending the tracing headers from a jax-rs resource to a kafka message does not seem to be working as we expect.
@ApplicationScoped
public class MsgProducer {
@Inject
@Channel("msg")
Emitter<CustomObject> emitter;
public void send(CustomObject obj) {
// trace exists here
emitter.send(obj);
}
}
calling send() from rest-resource does not inject the tracing header in the emitted kafka message.
Snippet from Application.properties
mp.messaging.outgoing.msg.connector=smallrye-kafka
mp.messaging.outgoing.msg.topic=topic
mp.messaging.outgoing.msg.incerceptor.classes=io.opentracing.contrib.kafka.TracingProducerInterceptor
Is there anything I missed?
thanks in advance
Christof