Skip to content

Commit

Permalink
kan vi gjøre dette istedenfor?
Browse files Browse the repository at this point in the history
  • Loading branch information
davidsteinsland committed Aug 27, 2024
1 parent a1d22f4 commit c167374
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class KafkaRapid(

init {
log.info("rapid initialized, autoCommit=$autoCommit")

KafkaClientMetrics(consumer).bindTo(meterRegistry)
KafkaClientMetrics(producer).bindTo(meterRegistry)
}

fun seekToBeginning() {
Expand Down Expand Up @@ -215,8 +218,6 @@ class KafkaRapid(
}
}

fun getMetrics() = listOf(KafkaClientMetrics(consumer), KafkaClientMetrics(producer))

companion object {
private const val Stopped = false
private const val Started = true
Expand Down

0 comments on commit c167374

Please sign in to comment.