Skip to content

Conversation

artembilan
Copy link
Member

Fixes: #3146

There is a requirement to see logs correlated even in the CompletableFuture result after KafkaTemplate.send() operation

  • Add observation.openScope() into the buildCallback() logic

Auto-cherry-pick to 3.1.x & 3.0.x

Fixes: spring-projects#3146

There is a requirement to see logs correlated even in the `CompletableFuture` result after `KafkaTemplate.send()` operation

* Add `observation.openScope()` into the `buildCallback()` logic

**Auto-cherry-pick to `3.1.x` & `3.0.x`**
@artembilan artembilan requested a review from sobychacko March 21, 2024 16:03
@sobychacko sobychacko merged commit d29836b into spring-projects:main Mar 21, 2024
@artembilan artembilan deleted the GH-3146 branch May 31, 2024 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In kafka events, the traceId and spanId are not written in the logs
2 participants