-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
metric API is to verbose #2653
Comments
We've discussed this here and here and made the decision to use the package structure reflected in #2587. I don't think it is worth going back to the bike shed on this. |
The discussion #2557 (review) does not seem to be "decided". The PR was closed while the discussion was happening (see the close event happened after few hours since last comment from @XSAM)... But probably this is how the SIG operates. |
@bogdandrutu come join the SIG - Thursdays at 1300 PT - would be good to have you join the discussions. |
I think feedback from users, especially because I will be one of the first users of this in the collector, does not need to go to the SIG meeting. I can join in 2w when probably this will be 1.0 :)) or people will say is too late to change |
Could we help the user by the addition of new package-level methods in
with 11 more functions like the above? |
I am sorry for closing the PR without responding to the last comments. On reflection, I can see how that can look like trying to stifle discussion, which I was not trying to do. I think, to keep the rest of the project moving, let's try to keep the discussion of further changes to the API here. |
From the SIG meeting last week:
|
I see that issue referenced multiple times, which is a great issue documenting multiple possibilities, but there is no analysis on why that version was picked vs the flatten one.
The argument that if you think something is better do the work does not work with me :). I am giving feedback, and if you choose to ignore it is up to you, but this API smells as is, because I have to do an extra "random" call to a func |
Thanks for your feedback! We discussed this proposed change again yesterday in the SIG meeting and came to the decision that we do not plan to pursue this proposal. An important take-away also from the meeting yesterday was that we plan to do a better job going forward in explaining and documenting the design choices we have explored and evaluated. We recognize that would have helped clarify our new API design better. |
I'm not the intended target of this library -- I don't actively develop with Go -- but I felt I should add my experience reading the API spec while investigating the existing implementations in the various languages. Basically I found the Go library confusing because it diverted from the API spec. I know the spec isn't, and can't be, exact since languages differ greatly, but felt it shouldn't differ unless required for idiomatic code. .net, python, erlang all have I don't have a suggestion or know if this is an actual pain other developers would ever feel, just adding a datapoint in case it helps :) |
It is very unintuitive for external users, and too much code is needed and jump around between packages to register a simple
Counter
. See example:How can we simplify this to become more intuitive? I would like this to be something like:
OR
The text was updated successfully, but these errors were encountered: