elastic / elastic/logstash

Timed actions that take less then 1ms can be missed in the metrics.

Open
#8,184 0 comments 0 reactions 0 assignees View on GitHub
metrics
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
1d 4h
Merged PRs (30d)
88

Description

Since 1ms is the smallest unit of time available to the Metrics, any action that takes less 1ms can be counted as 0ms. Given the right circumstances, over time the loss of the fractional ms can add up to produce incorrect results.

Metric times should be recorded in nano seconds, and converted to the appropriate unit upon usage.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how Metrics records action durations and where those values are converted for use. Check the aggregation path for sub-millisecond actions and verify that nanosecond precision is preserved without changing the reported units.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
observability-sre
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.