Werk #17353: OTel: Fix crash with empty hostname computation fields

Component Checks & agents
Title OTel: Fix crash with empty hostname computation fields
Date Jun 26, 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.0p8 Checkmk Cloud (CCE), Checkmk MSP (CME)

If the "Host name computation" attribute is left empty in the OTel Collector configuration, during the activation of changes, a crash occurs due to an AssertionError related to the host name. With this change, users are no longer allowed to leave the field empty.

To the list of all Werks