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

Lack of consistency in retrieval of observed values #235

Open
iustin opened this issue Nov 1, 2024 · 0 comments
Open

Lack of consistency in retrieval of observed values #235

iustin opened this issue Nov 1, 2024 · 0 comments

Comments

@iustin
Copy link

iustin commented Nov 1, 2024

Hi,

Looking at the library, it looks like:

  • Counter and Gauge allow retrieving the current value.
  • Family half-allows it - there's get_or_create, but that has the side-effect of creating the value if non-existent.
  • Histogram and Info don't allow it at all.

Now, in production, there's not much use, but in tests, I'd rather be able to test the values directly rather than encode and parse back the text format. Would you mind a pull request allowing clean retrieval of:

  • Info string
  • Histogram count and sum?

Thanks!

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

No branches or pull requests

1 participant