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

Inconsistent tracing across kafka binder and kafka binder reactive #2916

Open
mzalewski82 opened this issue Mar 10, 2024 · 0 comments
Open

Comments

@mzalewski82
Copy link

mzalewski82 commented Mar 10, 2024

Describe the issue

Regardless of internal differences both binders allow to declare functional reactive consumers. Unfortunately, Observability doesn't work the same way in both cases.

After applying all info I've found about Observability in the docs, I reached the point where kafka-binder works as expected:
Jaeger 1

In case of kafka-binder-reactive traceparent is received and decoded as one span is visible in Jaeger (1st kafka-stream-reactive-client hello.in receive span visible on the screenshot above).
All the rest of spans has a new TraceID:
Jaeger 2

Both consumers are receiving the same message, with the same traceparent header. Both share everything but binder and consumer group.

To Reproduce
Small repo I created to reproduce:
https://github.com/mzalewski82/spring-cloud-stream-tracing

It contains 2 apps.

I've also attached a docker compose file to easily setup local env.
Jaeger: http://localhost:16686

Version of the framework
I'm using Spring Boot 3.2.3, Spring Cloud 2023.0.0.

Expected behavior
Tracing works the same way regardless of Kafka binder used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants