Skip to content

API: Introduce DefaultMetricsContext and Timer interface#5286

Merged
rdblue merged 1 commit into
apache:masterfrom
nastra:default-metrics-context-and-timer-api
Jul 20, 2022
Merged

API: Introduce DefaultMetricsContext and Timer interface#5286
rdblue merged 1 commit into
apache:masterfrom
nastra:default-metrics-context-and-timer-api

Conversation

@nastra
Copy link
Copy Markdown
Contributor

@nastra nastra commented Jul 15, 2022

The idea here is that a DefaultMetricsContext can be used with native
Java Counters/Timers to measure things.

Additionally, this is introducing an API and a default implementation
for a Timer, which can be used to measure execution time.

@nastra nastra force-pushed the default-metrics-context-and-timer-api branch from b3785e7 to b3d3879 Compare July 15, 2022 13:49
Comment thread api/src/main/java/org/apache/iceberg/metrics/DefaultTimer.java Outdated
Comment thread api/src/main/java/org/apache/iceberg/metrics/DefaultTimer.java Outdated
Comment thread api/src/main/java/org/apache/iceberg/metrics/DefaultTimer.java Outdated
Comment thread api/src/main/java/org/apache/iceberg/metrics/DefaultTimer.java Outdated
Copy link
Copy Markdown
Contributor

@rdblue rdblue left a comment

Choose a reason for hiding this comment

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

Sorry, I didn't see this until I left a lot of comments on the combined PR. Could you take a look at my review comments from that one?

@nastra nastra force-pushed the default-metrics-context-and-timer-api branch 2 times, most recently from 1e04c03 to 7c3a67f Compare July 18, 2022 09:21
@nastra
Copy link
Copy Markdown
Contributor Author

nastra commented Jul 18, 2022

@rdblue @danielcweeks I believe I addressed all comments, can you guys re-review please?

The idea here is that a `DefaultMetricsContext` can be used with native
Java Counters/Timers to measure things.

Additionally, this is introducing an API and a default implementation
for a Timer, which can be used to measure execution time.
@nastra nastra force-pushed the default-metrics-context-and-timer-api branch from 7c3a67f to 8bd148a Compare July 19, 2022 16:47
@rdblue rdblue merged commit 2df9484 into apache:master Jul 20, 2022
@rdblue
Copy link
Copy Markdown
Contributor

rdblue commented Jul 20, 2022

Looks great. Thanks for adding this, @nastra!

singhpk234 pushed a commit to singhpk234/iceberg that referenced this pull request Jul 20, 2022
@nastra nastra deleted the default-metrics-context-and-timer-api branch July 20, 2022 06:37
zhongyujiang pushed a commit to zhongyujiang/iceberg that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants