Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Eagerly reject null label values#1335

Merged
zeitlinger merged 1 commit intoprometheus:mainprometheus/client_java:mainfrom
benjaminp:null-label-valuesbenjaminp/client_java:null-label-valuesCopy head branch name to clipboard
Apr 29, 2025
Merged

Eagerly reject null label values#1335
zeitlinger merged 1 commit intoprometheus:mainprometheus/client_java:mainfrom
benjaminp:null-label-valuesbenjaminp/client_java:null-label-valuesCopy head branch name to clipboard

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 benjamin@engflow.com

@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 <benjamin@engflow.com>
@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 <benjamin@engflow.com>

Signed-off-by: Benjamin Peterson <benjamin@engflow.com>
Signed-off-by: dao-jun <daojun@apache.org>
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 <benjamin@engflow.com>

Signed-off-by: Benjamin Peterson <benjamin@engflow.com>
Signed-off-by: dao-jun <daojun@apache.org>
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

Comments

Close sidebar
Morty Proxy This is a proxified and sanitized view of the page, visit original site.