-
Notifications
You must be signed in to change notification settings - Fork 104
fix(encoding): do not encode descriptor of empty family #279
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
fix(encoding): do not encode descriptor of empty family #279
Conversation
d17742b to
2f0b0ab
Compare
mxinden
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch.
Needs a test and a changelog entry.
In addition, can you point to the corresponding code in the Golang client?
2f0b0ab to
1d7f079
Compare
|
Seems like the go code doing this is here: https://github.com/prometheus/client_golang/blob/84a4734fe73aecc9ec36e1fbcb09c9a2d679f392/prometheus/internal/metric.go#L82-L101 |
27e9c41 to
74c450a
Compare
|
I don't have permissions to apply the above suggestions. Mind granting me those permissions, or applying them yourself? |
74c450a to
2109c5d
Compare
Signed-off-by: Jean-Baptiste Skutnik <jskutnik@ddn.com>
Signed-off-by: Jean-Baptiste Skutnik <jskutnik@ddn.com>
2109c5d to
82e1d7c
Compare
|
I rebased and applied the changes in the mix. |
mxinden
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Fixes #271. The implementation should be extensible and a user choice when implementing
is_emptyon theEncodeMetrictrait. This disables metric descriptor generation on families. The original issue does not make clear if this is an implementation choice or a bug, I can feature-gate the change if this is a choice.