Skip to content

Conversation

@spoutn1k
Copy link
Contributor

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 2 times, most recently 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?

@spoutn1k
Copy link
Contributor Author

spoutn1k commented Sep 1, 2025

@spoutn1k spoutn1k force-pushed the spoutn1k/svelte-encoding branch 5 times, most recently from 27e9c41 to 74c450a Compare September 1, 2025 07:57
@mxinden mxinden changed the title Avoid encoding descriptor of empty family fix(encoding): do not encode descriptor of empty family Sep 2, 2025
@mxinden
Copy link
Member

mxinden commented Sep 2, 2025

I don't have permissions to apply the above suggestions. Mind granting me those permissions, or applying them yourself?

@spoutn1k spoutn1k force-pushed the spoutn1k/svelte-encoding branch from 74c450a to 2109c5d Compare September 2, 2025 12:08
Signed-off-by: Jean-Baptiste Skutnik <jskutnik@ddn.com>
Signed-off-by: Jean-Baptiste Skutnik <jskutnik@ddn.com>
@spoutn1k spoutn1k force-pushed the spoutn1k/svelte-encoding branch from 2109c5d to 82e1d7c Compare September 2, 2025 12:11
@spoutn1k
Copy link
Contributor Author

spoutn1k commented Sep 2, 2025

I rebased and applied the changes in the mix.

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.

Thank you!

@mxinden mxinden merged commit 82ab3c4 into prometheus:master Oct 18, 2025
1 check passed
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