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

feat: add synchronous gauge #1718

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

xuan-cao-swi
Copy link
Contributor

Description:

Add simple gauge metrics that only record last value of recording.

Closes #1704

TODO:

  1. Replace the default aggregation with last_value once this pull request is merged.
  2. Update the test case to better represent how a gauge should behave differently from a counter.
  3. Update the metrics exporter to include the gauge type.

@xuan-cao-swi xuan-cao-swi changed the title feat: add gauge feat: add synchronous gauge Sep 4, 2024
Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this, Xuan! Even more reason to get #1604 merged.

Copy link
Contributor

@kaylareopelle kaylareopelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to mark this as "request changes" because I don't think we should merge this in until it uses LastValue as the default aggregation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Synchronous Gauge Instrument
2 participants