Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Micrometer tracing context propagation problem #383

Open
mzalewski82 opened this issue Feb 16, 2024 · 1 comment
Open

Micrometer tracing context propagation problem #383

mzalewski82 opened this issue Feb 16, 2024 · 1 comment
Labels
❓need-triage This issue needs triage, hasn't been looked at by a team member yet

Comments

@mzalewski82
Copy link

mzalewski82 commented Feb 16, 2024

Expected Behavior

ParentID should be propagated correctly, so full trace can be visualized in Jaeger.

Actual Behavior

TraceID is preserved but ParentID is lost which leads to flat span tree in Jaeger.
Moreover there's a ParentID reported in Jaeger as missing which is visible in the logs.

It looks like some intermediate span(s) is not propagated to Jaeger correctly.

Steps to Reproduce

Please have a look at this simple example.
https://github.com/mzalewski82/reactor-kafka-tracing
It contains 2 Spring Boot apps.
web which is exposing a REST API.
Data received through this API is saved in MongoDB using Spring Data reactive repo (context propagation is ok here).
Same data is pushed to Kafka
'kafka-reactor-clientreads this data from 'Kafka' using 2 different clients. One is usingKafkaReceiver another one 'ReactiveKafkaConsumerTemplate. Both share the same tracing parent propagation problem.

  1. Run infra using attached docker-compose file.
  2. Run both apps
  3. Call http:https://localhost:8080/hello?name=NiceName
  4. Check Jaeger http:https://localhost:16686

Your Environment

  • Reactor version(s) used: 3.6.2
  • Other relevant libraries versions (eg. netty, ...): Spring Boot 3.2.2, reactor-kafka 1.3.22
  • JVM version (java -version): 17 zulu or 21 graalvmce
  • OS and version (eg uname -a): macOS Sonoma 14.3.1
@reactorbot reactorbot added the ❓need-triage This issue needs triage, hasn't been looked at by a team member yet label Feb 16, 2024
@KafkaProServerless
Copy link

Upvote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓need-triage This issue needs triage, hasn't been looked at by a team member yet
Projects
None yet
Development

No branches or pull requests

3 participants