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

[Metrics API] The Record method of class Histogram now must have a context param, but in the Add method of class Counter it is optional #2155

Closed
xieyuguang opened this issue May 24, 2023 · 2 comments · Fixed by #2416
Labels
breaking change API or ABI breaking change do-not-stale

Comments

@xieyuguang
Copy link

The Record method of class Histogram now must have a context param, but in the Add method of class Counter it is optional. This brings confusion to users.

@xieyuguang xieyuguang changed the title [Metrics API]the Record method of class Histogram now must have a context param, but in the Add method of class Counter it is optional [Metrics API] The Record method of class Histogram now must have a context param, but in the Add method of class Counter it is optional May 24, 2023
@lalitb
Copy link
Member

lalitb commented May 25, 2023

Yes agree, Histogram should have overload method without Context, to be consistent with other instruments. This can be accommodate as part a ABI breaking release whenever planned.

@github-actions
Copy link

This issue was marked as stale due to lack of activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change API or ABI breaking change do-not-stale
Projects
None yet
2 participants