Skip to content

Eagerly reject null label values #1335

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

Merged
merged 1 commit into from
Apr 29, 2025

Conversation

benjaminp
Copy link
Contributor

Scraping generally doesn't support null label values and can throw NPEs at various points. It's easiest to debug such problems at the point null is introduced.

Signed-off-by: Benjamin Peterson [email protected]

@zeitlinger
Copy link
Member

looks good - can you add a test case?

Scraping generally doesn't support null label values and can throw NPEs at various points. It's easiest to debug such problems at the point null is introduced.

Signed-off-by: Benjamin Peterson <[email protected]>
@benjaminp
Copy link
Contributor Author

Thank you for the review. Test added

@zeitlinger zeitlinger merged commit 2625cb1 into prometheus:main Apr 29, 2025
4 checks passed
@zeitlinger
Copy link
Member

thanks for the contribution

@benjaminp benjaminp deleted the null-label-values branch April 29, 2025 14:06
dao-jun pushed a commit to dao-jun/client_java that referenced this pull request May 15, 2025
Scraping generally doesn't support null label values and can throw NPEs
at various points. It's easiest to debug such problems at the point null
is introduced.

Signed-off-by: Benjamin Peterson <[email protected]>

Signed-off-by: Benjamin Peterson <[email protected]>
Signed-off-by: dao-jun <[email protected]>
dao-jun pushed a commit to dao-jun/client_java that referenced this pull request May 15, 2025
Scraping generally doesn't support null label values and can throw NPEs
at various points. It's easiest to debug such problems at the point null
is introduced.

Signed-off-by: Benjamin Peterson <[email protected]>

Signed-off-by: Benjamin Peterson <[email protected]>
Signed-off-by: dao-jun <[email protected]>
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.

2 participants