cumulativetodelta: initial data points are included for monotonic counters #18053
Labels
bug
Something isn't working
help wanted
Extra attention is needed
priority:p2
Medium
processor/cumulativetodelta
Cumulative To Delta processor
Stale
Component(s)
processor/cumulativetodelta
What happened?
The cumulative-to-delta processor includes the initial delta from zero to the current value as a data point:
opentelemetry-collector-contrib/processor/cumulativetodeltaprocessor/internal/tracking/tracker.go
Lines 92 to 104 in 34b31da
Even for monotonic counters, this is counterintuitive and noisy. For example, here is what that looks like in real production data when the collector is restarted:
The processor should drop the first data point regardless of whether the dataset is monotonic or not, because the first data point can not be guaranteed to be a delta.
Collector version
0.70.0
Environment information
Environment
OS: Ubuntu 22.04
OpenTelemetry Collector configuration
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: