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

There should be a way to create a synchronous guage. #1483

Closed
ewoolsey opened this issue Jan 19, 2024 · 2 comments
Closed

There should be a way to create a synchronous guage. #1483

ewoolsey opened this issue Jan 19, 2024 · 2 comments
Labels
enhancement New feature or request triage:todo Needs to be traiged.

Comments

@ewoolsey
Copy link

ewoolsey commented Jan 19, 2024

Basically, there should be a way to create a gauge that doesn't require a callback to be set. Perhaps there is some magic that one can do currently which allows this with ObservableGauge but I have not seen how. There are two main reasons I can think of for this feature.

  1. compatibility with the metrics facade. Their implementation uses synchronous gauges so theoretically it would be possible to make a metrics-exporter-opentelemety. This is my current use case, and as far as I can tell this is unsolvable without this feature.
  2. You have have a value that you keep track of that only changes during events, think the balance in a wallet. The observable gauge isn't great here since it doesn't update during the event. A counter would also be problematic in this situation for obvious reasons.
@ewoolsey ewoolsey added enhancement New feature or request triage:todo Needs to be traiged. labels Jan 19, 2024
@lalitb
Copy link
Member

lalitb commented Jan 19, 2024

@ewoolsey there is experimental support for Synchronous gauge added as part of #1410, just in case you are looking for this.

@ewoolsey
Copy link
Author

@lalitb I swear I did a search for this and somehow didn't find anything. Thanks so much for the link that is exactly what I need to make this work! I'll close with this comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage:todo Needs to be traiged.
Projects
None yet
Development

No branches or pull requests

2 participants