You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[8.17](backport #44442) metricbeat: ensure event.duration field is not discarded on Windows (#44453)
* metricbeat: ensure event.duration field is not discarded on Windows (#44442)
* metricbeat: ensure event.duration field is not discarded on Windows
Windows, starting with Go 1.23+, provides high-resolution timers, but the
effective clock resolution remains around 0.5 ms. When event processing is
very fast, the elapsed time between start and end may be below this
resolution, resulting in a zero duration.
A zero event duration is interpreted as absence of value and discarded when
setting event fields. This commit ensures a minimum duration is always set.
* linter fixes
* use rand.N
* add changelog
(cherry picked from commit 7839c6b)
* Update CHANGELOG.next.asciidoc
---------
Co-authored-by: Mauri de Souza Meneguzzo <[email protected]>
Co-authored-by: Pierre HILBERT <[email protected]>
0 commit comments