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
metricbeat: ensure event.duration field is not discarded on Windows (#44442) (#44454)
* 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)
Co-authored-by: Mauri de Souza Meneguzzo <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.next.asciidoc
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ otherwise no tag is added. {issue}42208[42208] {pull}42403[42403]
68
68
- Add GCP organization and project details to ECS cloud fields. {pull}40461[40461]
69
69
- Fix the function to determine CPU cores on windows {issue}42593[42593] {pull}43409[43409]
70
70
- Handle permission errors while collecting data from Windows services and don't interrupt the overall collection by skipping affected services {issue}40765[40765] {pull}43665[43665]
71
+
- Fixed a bug where `event.duration` could be missing from an event on Windows systems due to low-resolution clock. {pull}44440[44440]
0 commit comments