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
[processor/transform] use default unit in extract_count_metric() (open-telemetry#31636)
**Description:**
The `transformprocessor` offers a function `extract_count_metric()`.
Currently this function copies over the `unit` from the original metric
to a new `count` metric. However, this unit is not applicable as the
value is a count of how many values were recorded in a Explicit
Bucket/Exponential Histogram or Summary.
Therefore this PR changes that function so that it adds the default unit
(`1`) to the extracted count metric instead.
**Link to tracking Issue:** open-telemetry#31575
**Testing:** Unit tests (updated)
**Documentation:** Added a changelog entry as the change is user-facing
(the unit of the emitted telemetry is changed)
---------
Co-authored-by: Tyler Helmuth <[email protected]>
0 commit comments