Skip to content

Conversation

@artembilan
Copy link
Member

Related to: micrometer-metrics/micrometer#4976

  • Introduce a KafkaMetricsSupport to have a common API for the MeterBinder registration
  • Rework MicrometerConsumerListener, MicrometerProducerListener and KafkaStreamsMicrometerListener to extend the KafkaMetricsSupport which allows to minimize code duplication
  • Expose ctors on those listeners based on the TaskScheduler
  • Implement a simple ScheduledExecutorServiceAdapter to adapt a TaskScheduler to the expected by the KafkaMetrics ScheduledExecutorService

@artembilan artembilan added this to the 3.3.0-RC1 milestone Oct 16, 2024
Copy link
Contributor

@sobychacko sobychacko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about a few sentences in the red docs as well, since we are providing some protected api methods that can be overridden?

@artembilan artembilan force-pushed the kafka_metrics_scheduler branch from 69e6881 to cf4a1fb Compare October 17, 2024 14:18
@artembilan artembilan requested a review from sobychacko October 17, 2024 14:19
@artembilan artembilan force-pushed the kafka_metrics_scheduler branch from cf4a1fb to 7a039e5 Compare October 17, 2024 14:59
Related to: micrometer-metrics/micrometer#4976

* Introduce a `KafkaMetricsSupport` to have a common API for the `MeterBinder` registration
* Rework `MicrometerConsumerListener`, `MicrometerProducerListener` and `KafkaStreamsMicrometerListener`
to extend the `KafkaMetricsSupport` which allows to minimize code duplication
* Expose ctors on those listeners based on the `TaskScheduler`
* Implement a simple `ScheduledExecutorServiceAdapter` to adapt a `TaskScheduler`
to the expected by the `KafkaMetrics` `ScheduledExecutorService`
…et projects

* Add more JavaDocs to the `KafkaMetricsSupport`
* Mention `KafkaMetricsSupport` in the docs
@artembilan artembilan force-pushed the kafka_metrics_scheduler branch from 7a039e5 to e437c52 Compare October 17, 2024 15:17
@sobychacko sobychacko merged commit 37c9015 into spring-projects:main Oct 17, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants