-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes monotonicity issues we have implementing the specification. #2010
Conversation
- Prevent negative measurements in Histogram Instruments so we can include monotonic sum in the data and export to prometheus. - Remove explicit monotonicity argument to aggregators and always infer from instrument type. - Expand list of supported instruments for Sum aggregation with details on default aggregation. - Add note on handling `sum` in histogram for instruments that allow negative measurements.
Co-authored-by: Aaron Abbott <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. If there is demand for a histogram of signed measurements, my preference then would be to add a field to encode the primitive measurement type (which is either Counter, UpDownCounter, or Gauge, in which case the Sum is not necessarily well-defined for Gauge histograms, as I wrote in open-telemetry/oteps#156).
…en-telemetry#2010) * Fixes monotonicity issues we have implementing the specificaiton. - Prevent negative measurements in Histogram Instruments so we can include monotonic sum in the data and export to prometheus. - Remove explicit monotonicity argument to aggregators and always infer from instrument type. - Expand list of supported instruments for Sum aggregation with details on default aggregation. - Add note on handling `sum` in histogram for instruments that allow negative measurements. * Update specification/metrics/sdk.md Co-authored-by: Aaron Abbott <[email protected]> Co-authored-by: Aaron Abbott <[email protected]> Co-authored-by: Joshua MacDonald <[email protected]>
Fixes #2009
Changes
can include monotonic sum in the data and export to prometheus.
from instrument type.
on default aggregation.
sum
in histogram for instruments that allownegative measurements.
Related issues:
sum
to present with negative measurements in Histogram opentelemetry-proto#303