Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add histogram-based metrics #440

Merged
merged 14 commits into from
Sep 25, 2024

Conversation

vilunov
Copy link
Contributor

@vilunov vilunov commented Sep 23, 2024

No description provided.

@Phill101 Phill101 self-requested a review September 23, 2024 10:07
Copy link
Contributor

@Phill101 Phill101 left a comment

Choose a reason for hiding this comment

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

lgtm

@mr-git
Copy link
Contributor

mr-git commented Sep 23, 2024

what is the goal?

did I understood correctly, that goal is to provide option to use either Summary or Histogram based metrics?

@mr-git
Copy link
Contributor

mr-git commented Sep 23, 2024

LGTM, though I paid more attention from perspective of next developer

@mr-git
Copy link
Contributor

mr-git commented Sep 23, 2024

As a next developer, I'd like to see more details in metrics help strings, like what are the possible values in some cases, where it is not obvious what there could be.

Please review help strings critically and improve where it is due.

@coveralls
Copy link

coveralls commented Sep 24, 2024

Pull Request Test Coverage Report for Build 11029572465

Details

  • 28 of 193 (14.51%) changed or added relevant lines in 3 files are covered.
  • 954 unchanged lines in 46 files lost coverage.
  • Overall coverage decreased (-1.8%) to 92.633%

Changes Missing Coverage Covered Lines Changed/Added Lines %
modules/metrics/src/main/scala/com/evolutiongaming/skafka/consumer/ConsumerMetricsOf.scala 0 12 0.0%
skafka/src/main/scala/com/evolutiongaming/skafka/producer/ProducerMetrics.scala 16 89 17.98%
skafka/src/main/scala/com/evolutiongaming/skafka/consumer/ConsumerMetrics.scala 12 92 13.04%
Files with Coverage Reduction New Missed Lines %
skafka/src/main/scala/com/evolutiongaming/skafka/consumer/WithSize.scala 1 66.67%
skafka/src/main/scala/com/evolutiongaming/skafka/consumer/ConsumerRecords.scala 1 90.91%
skafka/src/main/scala/com/evolutiongaming/skafka/SecurityProtocol.scala 1 60.0%
skafka/src/main/scala/com/evolutiongaming/skafka/producer/CreateProducerJ.scala 1 75.0%
modules/play-json/src/main/scala/com/evolutiongaming/skafka/producer/JsonProducer.scala 2 66.67%
skafka/src/main/scala/com/evolutiongaming/skafka/KeystoreType.scala 2 44.44%
skafka/src/main/scala/com/evolutiongaming/skafka/consumer/RebalanceListener1.scala 2 50.0%
skafka/src/main/scala/com/evolutiongaming/skafka/producer/RecordMetadata.scala 2 66.67%
skafka/src/main/scala/com/evolutiongaming/skafka/consumer/RebalanceListener.scala 2 33.33%
modules/play-json/src/main/scala/com/evolutiongaming/skafka/producer/ToBytesFromWrites.scala 2 0.0%
Totals Coverage Status
Change from base Build 11013160085: -1.8%
Covered Lines: 2540
Relevant Lines: 2742

💛 - Coveralls

@dfakhritdinov dfakhritdinov merged commit 0b37012 into evolution-gaming:master Sep 25, 2024
3 of 4 checks passed
vilunov added a commit to vilunov/skafka that referenced this pull request Sep 25, 2024
* Extract ProducerMetrics implementations into named classes

* Add Histograms implementation for ProducerMetrics

* Extract ConsumerMetrics implementations into named classes

* Add Histogram implementation of ConsumerMetrics

* Name Throwables in MonadCancel

* Docs for latencyBuckets

* Apply suggestions from code review

Co-authored-by: Mareks Rampāns <[email protected]>

* Update skafka/src/main/scala/com/evolutiongaming/skafka/consumer/ConsumerMetrics.scala

Co-authored-by: Mareks Rampāns <[email protected]>

* changed name

* fix scala 3

* Apply suggestions from code review

Co-authored-by: Mareks Rampāns <[email protected]>

* bump minor version

---------

Co-authored-by: Mareks Rampāns <[email protected]>
Co-authored-by: Denys Fakhritdinov <[email protected]>

(cherry picked from commit 0b37012)
dfakhritdinov pushed a commit that referenced this pull request Sep 25, 2024
* Add histogram-based metrics (#440)

* Extract ProducerMetrics implementations into named classes

* Add Histograms implementation for ProducerMetrics

* Extract ConsumerMetrics implementations into named classes

* Add Histogram implementation of ConsumerMetrics

* Name Throwables in MonadCancel

* Docs for latencyBuckets

* Apply suggestions from code review

Co-authored-by: Mareks Rampāns <[email protected]>

* Update skafka/src/main/scala/com/evolutiongaming/skafka/consumer/ConsumerMetrics.scala

Co-authored-by: Mareks Rampāns <[email protected]>

* changed name

* fix scala 3

* Apply suggestions from code review

Co-authored-by: Mareks Rampāns <[email protected]>

* bump minor version

---------

Co-authored-by: Mareks Rampāns <[email protected]>
Co-authored-by: Denys Fakhritdinov <[email protected]>

(cherry picked from commit 0b37012)

* bump stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants