-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feature: exemplar support for promhttp #854
Comments
Actually better idea would be to add
(and same for counter and gauge) That would solve most of the cases (: |
Would be nice to have an easy way using exemplars with the instrumentation tools in |
You are right 2nd idea is bad, I forgot you need a dynamic thing and the following might be too crazy:
I thought about it, and I don't think sampling is needed 🤔 If you choose to have exemplars, it might be ok to add all of them on each observation/increment. User can choose which metric to have with exemplar, but once they do they won't be able to choose per sampling/code/method. I wonder if it's fine at the end. Why not just adding all of codes/methods? |
I'm thinking about high-frequency observations. The The proposed function could just have the convention that returning an empty label set means that this observation should be done without an exemplar. In that way, the caller can implement sampling if they need. Different thing: I wouldn't use the word “Curry” here. It has a rather specific meaning. Using it for partially setting labels as already a bit of a stretch, but the similarity is still visible (IMHO). Adding an exemplar to an observation is just too different. |
Sorry to bother, any updates on this? |
Problem Statement
I am building HTTP client and server instrumentation for both metrics and tracing, but it's currently hard/impossible to compose both using
promhttp
This will become more and more "normal" so wonder if there a good way to extend
promhttp
to Instrument with Exermplars. Right now I have to do things on my own:Proposal
Maybe something similar to
promauto.With
?WDYT? @beorn7 (:
The text was updated successfully, but these errors were encountered: