Skip to content

Avoid encoding 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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

spoutn1k
Copy link

Fixes #271. The implementation should be extensible and a user choice when implementing is_empty on the EncodeMetric trait. 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.

@spoutn1k spoutn1k force-pushed the spoutn1k/svelte-encoding branch from 7bceb5e to d17742b Compare August 12, 2025 09:28
Signed-off-by: Jean-Baptiste Skutnik <jskutnik@ddn.com>
@spoutn1k spoutn1k force-pushed the spoutn1k/svelte-encoding branch from d17742b to 2f0b0ab Compare August 12, 2025 09:29
Copy link
Member

@mxinden mxinden 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 the patch.

Needs a test and a changelog entry.

In addition, can you point to the corresponding code in the Golang client?

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.

Empty metric result when no value is observed
2 participants