vert-x3 / vertx-kafka-client

Reactive Kafka Client for Vert.x
Apache License 2.0
84 stars 82 forks source link

Tracing context missing from Kafka Consumer #273

Open mcadecio opened 1 month ago

mcadecio commented 1 month ago

Version

4.5.9

Context

I recently upgraded the Vertx version in one of my applications and noticed that Span context is being cleared prematurely resulting in calls to other services missing the 'traceparent' header as well as spans ending much earlier than expected.

Do you have a reproducer?

The project uses Otel as the tracing provider.

Steps to reproduce

  1. Start kafka server using docker compose file in ./docker
  2. Run Main java file
  3. Run curl command curl --verbose --header 'traceparent: 00-eafaefe4aa38e8efbcaa5868ebee1c6a-148fa5fc0892068f-01' http://localhost:8888/
  4. View application logs
  5. After making a call to a method that returns a Future, the span context (traceId, spanId) is missing.

Extra