Skip to content

Filter null Humio meter events#7635

Open
xfocus3 wants to merge 1 commit into
micrometer-metrics:mainfrom
xfocus3:fix-7579-filter-null
Open

Filter null Humio meter events#7635
xfocus3 wants to merge 1 commit into
micrometer-metrics:mainfrom
xfocus3:fix-7579-filter-null

Conversation

@xfocus3

@xfocus3 xfocus3 commented Jun 17, 2026

Copy link
Copy Markdown

Fixes #7579.

Summary

  • filter out null Humio event payloads before joining the publish batch
  • add a regression test covering a mixed batch where one meter produces a valid event and another produces null

Verification

  • ./gradlew :micrometer-registry-humio:test --tests io.micrometer.humio.HumioMeterRegistryTest.publishDropsNullMeterEvents --no-daemon
  • ./gradlew :micrometer-registry-humio:test --no-daemon
  • git diff --check origin/main..HEAD

Some Humio meter writers return null when a meter has no finite attributes. Filter those null entries before joining the event stream so publish() does not emit JSON null values.

Fixes micrometer-metrics#7579

Signed-off-by: Ahmed El amraouiyine <amraouiyine@gmail.com>
@xfocus3 xfocus3 force-pushed the fix-7579-filter-null branch from 2a734cd to 1ebcfbe Compare June 17, 2026 13:25
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.

HumioMeterRegistry uses Meter.match with mixed nullability but doesn't handle null after

1 participant