reactor-kafka icon indicating copy to clipboard operation
reactor-kafka copied to clipboard

Add Micrometer Support for Consumer and Producer

Open garyrussell opened this issue 3 years ago • 4 comments
trafficstars

Resolves https://github.com/reactor/reactor-kafka/issues/206#issuecomment-1006119883

garyrussell avatar Feb 08 '22 21:02 garyrussell

Need to rework this on Monday due to gradle upgrade (thanks @simonbasle ).

garyrussell avatar Mar 04 '22 15:03 garyrussell

Another thought would be to just add the listener interface and leave off the micrometer implementations out and just add the code to the reference manual since it's so small; the user can copy/paste.

WDYT?

garyrussell avatar Mar 08 '22 16:03 garyrussell

Another thought would be to just add the listener interface and leave off the micrometer implementations out and just add the code to the reference manual since it's so small; the user can copy/paste.

WDYT?

I think it misses the whole point. As a user, I'd like to just have an easy way of making this work. If you expect most of the users to copy-paste the metrics, I think it worth it to let them be there, and the more advanced needs will implement the interface.

migroskub avatar Mar 09 '22 22:03 migroskub

@garyrussell yeah that could be an intermediate way to improve things in 1.3.x.

Let me list a few factoids and constraints:

  • Micrometer 2.x is around the corner, GA late 2022
  • there are no metrics at all in reactor-kafka 1.3.x right now
  • reactor-kafka 1.3.x cannot use Micrometer 2.x (we need to maintain compatibility with reactor-core 3.4.x which uses Micrometer 1)
  • there could be a reactor-kafka 1.4.0, part of the 2022.0 upcoming release cycle (or compatible with it) that uses Micrometer 2.x (late 2022)

@migroskub I understand your perspective, but as stated above there are no metrics right now. if you're adamant about metrics right now then you could be considered an advanced user and would get an interface to listen and implement metrics with some effort, albeit minimal. Then in 1.4.0 all users will get something more future-proof working off the shelf.

Just playing devil's advocate here. I don't want to rush implementing metrics with Micrometer 1.x when Micrometer 2.x is around the corner.

simonbasle avatar Mar 10 '22 10:03 simonbasle

Replaced by https://github.com/reactor/reactor-kafka/pull/323 available in 1.3.17

garyrussell avatar May 01 '23 13:05 garyrussell