opentelemetry-proto icon indicating copy to clipboard operation
opentelemetry-proto copied to clipboard

Metrics Number data points requirements for value

Open bogdandrutu opened this issue 4 years ago • 2 comments

Define if it is an error or not to receive for the same "Resource, InstrumentationLibrary, MetricName, Labels/Attributes, StartTime" first point with int value and next point with double value.

We need to document this behavior.

bogdandrutu avatar Mar 26 '21 19:03 bogdandrutu

Copying from Slack to make sure it's not lost: OM considers it non-breaking, but not something that should happen frequently: https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#exposition-across-time-and-metric-evolution

RichiH avatar Mar 29 '21 14:03 RichiH

We discussed this in the Metrics Data Model SiG.

  1. Based on previous discussion we don't think this is blocking declaring our API sstable.
  2. We should specify what is allowable within a collector ("on the wire"), specifically around aggregations.

We had talked about a notion of "weak conformance" that allows migrating int to double when this situation occurs. Specification remains TBD.

jsuereth avatar Mar 30 '21 18:03 jsuereth