Commit 59e5a80
GH-3210: KafkaTemplate currentSpan tagging issue
Fixes: #3210
* When adding a tag to the current span during the sending of a kafka message
using KafkaTemplate, the tag gets added to another span because KafkaTemplate
doesn't open the scope for the started observation. Fixing this issue by wrapping
the doSend method call in a proper observation scope.
**Auto-cherry-pick to `3.0.x`**
# Conflicts:
# spring-kafka/src/test/java/org/springframework/kafka/support/micrometer/ObservationTests.java1 parent 9bc45c9 commit 59e5a80
File tree
1 file changed
+3
-1
lines changed- spring-kafka/src/main/java/org/springframework/kafka/core
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
770 | 770 | | |
771 | 771 | | |
772 | 772 | | |
773 | | - | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
774 | 776 | | |
775 | 777 | | |
776 | 778 | | |
| |||
0 commit comments