cloudbeat panics after getting a new config (for example, updated integration version). it ends up restarting, but it shouldn't panic
To Reproduce
Steps to reproduce the behavior:
Install integration and deploy an agent
Send reconfiguration by doing one of the following:
edit integration values other than name, if possible
update integration version
change agent log level
monitor agent logs and look for:
configuration change
fatal panic error
Expected behavior
cloudbeat handles reconfiguration gracefully and restarts without panic
Screenshots
Additional context
long running environment logs,(fallbackFields:!(message),smartField:content,type:smart-field)),controls:(data_stream.namespace:(mode:include,selection:(selectedOptions:!(),type:options))),datasetSelection:(selection:(dataset:(name:%27logs-elastic_agent.cloudbeat-*%27,title:cloudbeat_logs),name:elastic_agent,title:%27Elastic%20Agent%27,version:%271.18.0%27),selectionType:single),filters:!(),query:(language:kuery,query:%27%27),refreshInterval:(pause:!t,value:60000),rowHeight:0,rowsPerPage:500,time:(from:%272024-04-18T13:00:00.000Z%27,to:%272024-04-18T14:23:06.694Z%27),v:1))
Describe the bug
cloudbeat panics after getting a new config (for example, updated integration version). it ends up restarting, but it shouldn't panic
To Reproduce Steps to reproduce the behavior:
Expected behavior
cloudbeat handles reconfiguration gracefully and restarts without panic
Screenshots
Additional context