Commit 56a41f3
authored
Add start/stop count metrics to AbstractMessageListenerContainer
Adds two Micrometer counters to AbstractMessageListenerContainer to
track listener container lifecycle events:
- spring.kafka.container.start.count: incremented each time a
container is successfully started via doStart()
- spring.kafka.container.stop.count: incremented each time a
container is stopped, covering both wait=true and wait=false paths
Closes #4277
Signed-off-by: Vineeth Yelagandula <111960524+Yelagandula@users.noreply.github.com>1 parent 813b9af commit 56a41f3
1 file changed
Lines changed: 15 additions & 0 deletions
File tree
- spring-kafka/src/main/java/org/springframework/kafka/listener
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
145 | 148 | | |
146 | 149 | | |
147 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
148 | 159 | | |
149 | 160 | | |
150 | 161 | | |
| |||
530 | 541 | | |
531 | 542 | | |
532 | 543 | | |
| 544 | + | |
| 545 | + | |
533 | 546 | | |
534 | 547 | | |
535 | 548 | | |
| |||
633 | 646 | | |
634 | 647 | | |
635 | 648 | | |
| 649 | + | |
636 | 650 | | |
637 | 651 | | |
638 | 652 | | |
| |||
642 | 656 | | |
643 | 657 | | |
644 | 658 | | |
| 659 | + | |
645 | 660 | | |
646 | 661 | | |
647 | 662 | | |
| |||
0 commit comments