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

Support exemplars for single process mode #669

Merged
merged 1 commit into from
Oct 29, 2021
Merged

Support exemplars for single process mode #669

merged 1 commit into from
Oct 29, 2021

Conversation

csmarchbanks
Copy link
Member

This PR adds support for exemplars for counters and histograms when instrumenting your code.

@csmarchbanks csmarchbanks force-pushed the exemplars branch 2 times, most recently from c47b2c8 to e6e5c2d Compare June 17, 2021 04:32
@csmarchbanks csmarchbanks marked this pull request as ready for review June 17, 2021 04:33
@csmarchbanks csmarchbanks mentioned this pull request Jun 17, 2021
@csmarchbanks csmarchbanks force-pushed the exemplars branch 6 times, most recently from 26dcc3b to 1bd82fb Compare June 17, 2021 17:04
@csmarchbanks csmarchbanks marked this pull request as draft June 17, 2021 17:22
Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
@csmarchbanks csmarchbanks marked this pull request as ready for review June 22, 2021 20:49
@yacir
Copy link

yacir commented Sep 13, 2021

Hi @csmarchbanks @brian-brazil 👋🏽
Any idea about this feature release date please ?

Thx

@csmarchbanks
Copy link
Member Author

Hi @yacir, I am testing this out with some teammates soon internally. Unless some concerns come up I plan to merge and release this soon afterward.

Copy link

@gerboland gerboland left a comment

Choose a reason for hiding this comment

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

Hey, I've given this a good test, works fine, output as expected. Code clean too. I'm happy to approve

@csmarchbanks csmarchbanks merged commit c8f1bd3 into master Oct 29, 2021
@csmarchbanks csmarchbanks deleted the exemplars branch October 29, 2021 14:28
@ConverJens
Copy link

@csmarchbanks @gerboland
Do you support gauges and custom collectors as well?

@csmarchbanks
Copy link
Member Author

OpenMetrics does not allow gauges to have exemplars so they are not supported. It looks like custom collectors only have partial support right now, exemplars can only be specified for histograms. It would be good to add support for Counters and GaugeHistograms for custom collectors as well. Would you be willing to open an issue (or PR if you want) for support in custom collectors?

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

Successfully merging this pull request may close these issues.

5 participants