Werk #18310: OTel: Fix ZeroDivisionError for histogram

Component Checks & agents
Title OTel: Fix ZeroDivisionError for histogram
Date Oct 1, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p14
Not yet released
Checkmk Cloud (CCE), Checkmk MSP (CME)

This update resolves a crash that occurred when parsing OpenTelemetry histogram metrics with a zero count. Previously, metrics with an empty count triggered a ZeroDivisionError. With this change, such metrics are now safely skipped, preventing the error.

To the list of all Werks