Skip to content

Fix NPE in sanitizeMetricName when unit or aggregationTemporality is …#6687

Merged
dlvenable merged 6 commits intoopensearch-project:mainfrom
srikanthpadakanti:prometheus-sink-npe-fix
Apr 2, 2026
Merged

Fix NPE in sanitizeMetricName when unit or aggregationTemporality is …#6687
dlvenable merged 6 commits intoopensearch-project:mainfrom
srikanthpadakanti:prometheus-sink-npe-fix

Conversation

@srikanthpadakanti
Copy link
Copy Markdown
Contributor

Description

Fix NPE in PrometheusTimeSeries.sanitizeMetricName() when unit or aggregationTemporality is null.

Issues Resolved

Resolves #6683

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…null

Signed-off-by: Srikanth Padakanti <srikanth_padakanti@apple.com>
Copy link
Copy Markdown
Member

@dlvenable dlvenable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dlvenable
dlvenable previously approved these changes Mar 31, 2026
Copy link
Copy Markdown
Member

@dlvenable dlvenable 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 @srikanthpadakanti for this fix!

Srikanth Padakanti added 2 commits March 31, 2026 15:06
Copy link
Copy Markdown
Member

@dlvenable dlvenable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dlvenable dlvenable merged commit e1ad844 into opensearch-project:main Apr 2, 2026
71 of 72 checks 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.

Prometheus sink NPE in sanitizeMetricName when unit or aggregationTemporality is null.

3 participants