-
Notifications
You must be signed in to change notification settings - Fork 848
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
Move stats to metrics #226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed the high-level idea that merges stats
into metrics
makes the API easier to understand. Though I think in this case we should move View
APIs to this package too, since in order to get aggregated metrics from measurements, users still need to define View
s. IMO It's a bit weird to put View
at a different package.
View is an implementation detail so they will be in |
My comment in the description was more to document what else needs to happen. |
Some questions/comments:
|
The main idea is to reduce confusion about why two top level APIs exists to record metrics/stats/measurement.
We still need to offer the ability to record raw measurements as well as pre-defined metrics (including aggregation and labels).
The structure of the Metrics package is not final:
Filters
that apply to all created metrics (similar with metric registry in Micrometer for example).