Commit ac7911c
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.
# Conflicts:
# spring-kafka/src/test/java/org/springframework/kafka/support/micrometer/ObservationTests.java
(cherry picked from commit 59e5a80)1 parent d244661 commit ac7911c
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 | |
|---|---|---|---|
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
771 | | - | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
772 | 774 | | |
773 | 775 | | |
774 | 776 | | |
| |||
0 commit comments