From 04e83debb69030909c234a5e5f2580e72e09b7eb Mon Sep 17 00:00:00 2001 From: Connor Adams Date: Fri, 19 Jun 2020 13:57:37 -0400 Subject: [PATCH] Add Exemplar support to Metrics Proto --- gen/go/metrics/v1/metrics.pb.go | 517 +++++++++++-------- opentelemetry/proto/metrics/v1/metrics.proto | 125 ++--- 2 files changed, 358 insertions(+), 284 deletions(-) diff --git a/gen/go/metrics/v1/metrics.pb.go b/gen/go/metrics/v1/metrics.pb.go index 546c770c8..91b7761f9 100644 --- a/gen/go/metrics/v1/metrics.pb.go +++ b/gen/go/metrics/v1/metrics.pb.go @@ -83,7 +83,7 @@ func (x MetricDescriptor_Type) String() string { } func (MetricDescriptor_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{3, 0} + return fileDescriptor_3c3112f9fa006917, []int{4, 0} } // Temporality is the temporal quality values of a metric have. It @@ -178,7 +178,7 @@ func (x MetricDescriptor_Temporality) String() string { } func (MetricDescriptor_Temporality) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{3, 1} + return fileDescriptor_3c3112f9fa006917, []int{4, 1} } // A collection of InstrumentationLibraryMetrics from a Resource. @@ -283,6 +283,104 @@ func (m *InstrumentationLibraryMetrics) GetMetrics() []*Metric { return nil } +// A representation of raw measurements, which can have statistical meaning based +// on how the measurement was sampled, as well as a span ID and trace ID of the +// active span when the measurement was recorded +type RawValue struct { + // Numerical value of the measurement that was recorded. Only one of these + // two fields is used for the data, based on MetricDescriptor.measurement_type + DoubleValue float64 `protobuf:"fixed64,1,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"` + Int64Value int64 `protobuf:"varint,2,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"` + // Exact time that the measurement was recorded + TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` + // Labels that were passed with the measurement, but not included in the DataPoint's labels + AdditionalLabels []*v11.StringKeyValue `protobuf:"bytes,4,rep,name=additional_labels,json=additionalLabels,proto3" json:"additional_labels,omitempty"` + // (Optional) Span ID of the current trace + SpanId []byte `protobuf:"bytes,5,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` + // (Optional) Trace ID of the current trace + TraceId []byte `protobuf:"bytes,6,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` + // (Optional) When sample_count is non-zero, this exemplar has been chosen in a statistically + // unbiased way such that the exemplar is representative of `sample_count` individual events + SampleCount float64 `protobuf:"fixed64,7,opt,name=sample_count,json=sampleCount,proto3" json:"sample_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RawValue) Reset() { *m = RawValue{} } +func (m *RawValue) String() string { return proto.CompactTextString(m) } +func (*RawValue) ProtoMessage() {} +func (*RawValue) Descriptor() ([]byte, []int) { + return fileDescriptor_3c3112f9fa006917, []int{2} +} + +func (m *RawValue) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RawValue.Unmarshal(m, b) +} +func (m *RawValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RawValue.Marshal(b, m, deterministic) +} +func (m *RawValue) XXX_Merge(src proto.Message) { + xxx_messageInfo_RawValue.Merge(m, src) +} +func (m *RawValue) XXX_Size() int { + return xxx_messageInfo_RawValue.Size(m) +} +func (m *RawValue) XXX_DiscardUnknown() { + xxx_messageInfo_RawValue.DiscardUnknown(m) +} + +var xxx_messageInfo_RawValue proto.InternalMessageInfo + +func (m *RawValue) GetDoubleValue() float64 { + if m != nil { + return m.DoubleValue + } + return 0 +} + +func (m *RawValue) GetInt64Value() int64 { + if m != nil { + return m.Int64Value + } + return 0 +} + +func (m *RawValue) GetTimeUnixNano() uint64 { + if m != nil { + return m.TimeUnixNano + } + return 0 +} + +func (m *RawValue) GetAdditionalLabels() []*v11.StringKeyValue { + if m != nil { + return m.AdditionalLabels + } + return nil +} + +func (m *RawValue) GetSpanId() []byte { + if m != nil { + return m.SpanId + } + return nil +} + +func (m *RawValue) GetTraceId() []byte { + if m != nil { + return m.TraceId + } + return nil +} + +func (m *RawValue) GetSampleCount() float64 { + if m != nil { + return m.SampleCount + } + return 0 +} + // Defines a Metric which has one or more timeseries. // // The data model and relation between entities is shown in the diagram below. @@ -335,23 +433,18 @@ func (m *InstrumentationLibraryMetrics) GetMetrics() []*Metric { type Metric struct { // metric_descriptor describes the Metric. MetricDescriptor *MetricDescriptor `protobuf:"bytes,1,opt,name=metric_descriptor,json=metricDescriptor,proto3" json:"metric_descriptor,omitempty"` - // Data is a list of one or more DataPoints for a single metric. Only one of the - // following fields is used for the data, depending on the type of the metric defined - // by MetricDescriptor.type field. - Int64DataPoints []*Int64DataPoint `protobuf:"bytes,2,rep,name=int64_data_points,json=int64DataPoints,proto3" json:"int64_data_points,omitempty"` - DoubleDataPoints []*DoubleDataPoint `protobuf:"bytes,3,rep,name=double_data_points,json=doubleDataPoints,proto3" json:"double_data_points,omitempty"` - HistogramDataPoints []*HistogramDataPoint `protobuf:"bytes,4,rep,name=histogram_data_points,json=histogramDataPoints,proto3" json:"histogram_data_points,omitempty"` - SummaryDataPoints []*SummaryDataPoint `protobuf:"bytes,5,rep,name=summary_data_points,json=summaryDataPoints,proto3" json:"summary_data_points,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // A list of one or more DataPoints for a single metric. + Data []*Metric_DataPoint `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Metric) Reset() { *m = Metric{} } func (m *Metric) String() string { return proto.CompactTextString(m) } func (*Metric) ProtoMessage() {} func (*Metric) Descriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{2} + return fileDescriptor_3c3112f9fa006917, []int{3} } func (m *Metric) XXX_Unmarshal(b []byte) error { @@ -379,30 +472,95 @@ func (m *Metric) GetMetricDescriptor() *MetricDescriptor { return nil } -func (m *Metric) GetInt64DataPoints() []*Int64DataPoint { +func (m *Metric) GetData() []*Metric_DataPoint { + if m != nil { + return m.Data + } + return nil +} + +// A DataPoint represents a single point in a timeseries +// that describes the time-varying values of a metric. +type Metric_DataPoint struct { + // The set of labels that uniquely identify this timeseries. + Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` + // Only one of the following fields is used for the data, + // depending on the type of the metric defined by MetricDescriptor.type field. + Int64DataPoint *Int64DataPoint `protobuf:"bytes,2,opt,name=int64_data_point,json=int64DataPoint,proto3" json:"int64_data_point,omitempty"` + DoubleDataPoint *DoubleDataPoint `protobuf:"bytes,3,opt,name=double_data_point,json=doubleDataPoint,proto3" json:"double_data_point,omitempty"` + HistogramDataPoint *HistogramDataPoint `protobuf:"bytes,4,opt,name=histogram_data_point,json=histogramDataPoint,proto3" json:"histogram_data_point,omitempty"` + SummaryDataPoint *SummaryDataPoint `protobuf:"bytes,5,opt,name=summary_data_point,json=summaryDataPoint,proto3" json:"summary_data_point,omitempty"` + // (Optional) List of exemplars collected from + // measurements that were used to form the data point + Exemplars []*RawValue `protobuf:"bytes,6,rep,name=exemplars,proto3" json:"exemplars,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *Metric_DataPoint) Reset() { *m = Metric_DataPoint{} } +func (m *Metric_DataPoint) String() string { return proto.CompactTextString(m) } +func (*Metric_DataPoint) ProtoMessage() {} +func (*Metric_DataPoint) Descriptor() ([]byte, []int) { + return fileDescriptor_3c3112f9fa006917, []int{3, 0} +} + +func (m *Metric_DataPoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Metric_DataPoint.Unmarshal(m, b) +} +func (m *Metric_DataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Metric_DataPoint.Marshal(b, m, deterministic) +} +func (m *Metric_DataPoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_Metric_DataPoint.Merge(m, src) +} +func (m *Metric_DataPoint) XXX_Size() int { + return xxx_messageInfo_Metric_DataPoint.Size(m) +} +func (m *Metric_DataPoint) XXX_DiscardUnknown() { + xxx_messageInfo_Metric_DataPoint.DiscardUnknown(m) +} + +var xxx_messageInfo_Metric_DataPoint proto.InternalMessageInfo + +func (m *Metric_DataPoint) GetLabels() []*v11.StringKeyValue { + if m != nil { + return m.Labels + } + return nil +} + +func (m *Metric_DataPoint) GetInt64DataPoint() *Int64DataPoint { if m != nil { - return m.Int64DataPoints + return m.Int64DataPoint } return nil } -func (m *Metric) GetDoubleDataPoints() []*DoubleDataPoint { +func (m *Metric_DataPoint) GetDoubleDataPoint() *DoubleDataPoint { if m != nil { - return m.DoubleDataPoints + return m.DoubleDataPoint } return nil } -func (m *Metric) GetHistogramDataPoints() []*HistogramDataPoint { +func (m *Metric_DataPoint) GetHistogramDataPoint() *HistogramDataPoint { if m != nil { - return m.HistogramDataPoints + return m.HistogramDataPoint } return nil } -func (m *Metric) GetSummaryDataPoints() []*SummaryDataPoint { +func (m *Metric_DataPoint) GetSummaryDataPoint() *SummaryDataPoint { if m != nil { - return m.SummaryDataPoints + return m.SummaryDataPoint + } + return nil +} + +func (m *Metric_DataPoint) GetExemplars() []*RawValue { + if m != nil { + return m.Exemplars } return nil } @@ -418,8 +576,10 @@ type MetricDescriptor struct { Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"` // type is the type of values this metric has. Type MetricDescriptor_Type `protobuf:"varint,4,opt,name=type,proto3,enum=opentelemetry.proto.metrics.v1.MetricDescriptor_Type" json:"type,omitempty"` + // the value type of the unaggregated measurements, MUST be either INT64 or DOUBLE + MeasurementType MetricDescriptor_Type `protobuf:"varint,5,opt,name=measurement_type,json=measurementType,proto3,enum=opentelemetry.proto.metrics.v1.MetricDescriptor_Type" json:"measurement_type,omitempty"` // temporality is the Temporality of values this metric has. - Temporality MetricDescriptor_Temporality `protobuf:"varint,5,opt,name=temporality,proto3,enum=opentelemetry.proto.metrics.v1.MetricDescriptor_Temporality" json:"temporality,omitempty"` + Temporality MetricDescriptor_Temporality `protobuf:"varint,6,opt,name=temporality,proto3,enum=opentelemetry.proto.metrics.v1.MetricDescriptor_Temporality" json:"temporality,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -429,7 +589,7 @@ func (m *MetricDescriptor) Reset() { *m = MetricDescriptor{} } func (m *MetricDescriptor) String() string { return proto.CompactTextString(m) } func (*MetricDescriptor) ProtoMessage() {} func (*MetricDescriptor) Descriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{3} + return fileDescriptor_3c3112f9fa006917, []int{4} } func (m *MetricDescriptor) XXX_Unmarshal(b []byte) error { @@ -478,6 +638,13 @@ func (m *MetricDescriptor) GetType() MetricDescriptor_Type { return MetricDescriptor_INVALID_TYPE } +func (m *MetricDescriptor) GetMeasurementType() MetricDescriptor_Type { + if m != nil { + return m.MeasurementType + } + return MetricDescriptor_INVALID_TYPE +} + func (m *MetricDescriptor) GetTemporality() MetricDescriptor_Temporality { if m != nil { return m.Temporality @@ -488,8 +655,6 @@ func (m *MetricDescriptor) GetTemporality() MetricDescriptor_Temporality { // Int64DataPoint is a single data point in a timeseries that describes the time-varying // values of a int64 metric. type Int64DataPoint struct { - // The set of labels that uniquely identify this timeseries. - Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // start_time_unix_nano is the time when the cumulative value was reset to zero. // This is used for Counter type only. For Gauge the value is not specified and // defaults to 0. @@ -499,12 +664,12 @@ type Int64DataPoint struct { // // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. - StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` + StartTimeUnixNano uint64 `protobuf:"fixed64,1,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` + TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // value itself. - Value int64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` + Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -514,7 +679,7 @@ func (m *Int64DataPoint) Reset() { *m = Int64DataPoint{} } func (m *Int64DataPoint) String() string { return proto.CompactTextString(m) } func (*Int64DataPoint) ProtoMessage() {} func (*Int64DataPoint) Descriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{4} + return fileDescriptor_3c3112f9fa006917, []int{5} } func (m *Int64DataPoint) XXX_Unmarshal(b []byte) error { @@ -535,13 +700,6 @@ func (m *Int64DataPoint) XXX_DiscardUnknown() { var xxx_messageInfo_Int64DataPoint proto.InternalMessageInfo -func (m *Int64DataPoint) GetLabels() []*v11.StringKeyValue { - if m != nil { - return m.Labels - } - return nil -} - func (m *Int64DataPoint) GetStartTimeUnixNano() uint64 { if m != nil { return m.StartTimeUnixNano @@ -566,8 +724,6 @@ func (m *Int64DataPoint) GetValue() int64 { // DoubleDataPoint is a single data point in a timeseries that describes the time-varying // value of a double metric. type DoubleDataPoint struct { - // The set of labels that uniquely identify this timeseries. - Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // start_time_unix_nano is the time when the cumulative value was reset to zero. // This is used for Counter type only. For Gauge the value is not specified and // defaults to 0. @@ -577,12 +733,12 @@ type DoubleDataPoint struct { // // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. - StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` + StartTimeUnixNano uint64 `protobuf:"fixed64,1,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` + TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // value itself. - Value float64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"` + Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -592,7 +748,7 @@ func (m *DoubleDataPoint) Reset() { *m = DoubleDataPoint{} } func (m *DoubleDataPoint) String() string { return proto.CompactTextString(m) } func (*DoubleDataPoint) ProtoMessage() {} func (*DoubleDataPoint) Descriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{5} + return fileDescriptor_3c3112f9fa006917, []int{6} } func (m *DoubleDataPoint) XXX_Unmarshal(b []byte) error { @@ -613,13 +769,6 @@ func (m *DoubleDataPoint) XXX_DiscardUnknown() { var xxx_messageInfo_DoubleDataPoint proto.InternalMessageInfo -func (m *DoubleDataPoint) GetLabels() []*v11.StringKeyValue { - if m != nil { - return m.Labels - } - return nil -} - func (m *DoubleDataPoint) GetStartTimeUnixNano() uint64 { if m != nil { return m.StartTimeUnixNano @@ -645,8 +794,6 @@ func (m *DoubleDataPoint) GetValue() float64 { // values of a Histogram. A Histogram contains summary statistics for a population of values, // it may optionally contain the distribution of those values across a set of buckets. type HistogramDataPoint struct { - // The set of labels that uniquely identify this timeseries. - Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // start_time_unix_nano is the time when the cumulative value was reset to zero. // // The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano]. @@ -655,17 +802,17 @@ type HistogramDataPoint struct { // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. // Note: this field is always unspecified and ignored if MetricDescriptor.type==GAUGE_HISTOGRAM. - StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` + StartTimeUnixNano uint64 `protobuf:"fixed64,1,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` + TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // count is the number of values in the population. Must be non-negative. This value // must be equal to the sum of the "count" fields in buckets if a histogram is provided. - Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` + Count uint64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // sum of the values in the population. If count is zero then this field // must be zero. This value must be equal to the sum of the "sum" fields in buckets if // a histogram is provided. - Sum float64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"` + Sum float64 `protobuf:"fixed64,4,opt,name=sum,proto3" json:"sum,omitempty"` // buckets is an optional field contains the values of histogram for each bucket. // // The sum of the values in the buckets "count" field must equal the value in the count field. @@ -676,7 +823,7 @@ type HistogramDataPoint struct { // Note: if HistogramDataPoint.bucket_options defines bucket bounds then this field // must also be present and number of elements in this field must be equal to the // number of buckets defined by bucket_options. - Buckets []*HistogramDataPoint_Bucket `protobuf:"bytes,6,rep,name=buckets,proto3" json:"buckets,omitempty"` + Buckets []*HistogramDataPoint_Bucket `protobuf:"bytes,5,rep,name=buckets,proto3" json:"buckets,omitempty"` // explicit_bounds specifies buckets with explicitly defined bounds for values. // The bucket boundaries are described by "bounds" field. // @@ -691,7 +838,7 @@ type HistogramDataPoint struct { // Note: only [a, b) intervals are currently supported for each bucket. If we decides // to also support (a, b] intervals we should add support for these by defining a boolean // value which decides what type of intervals to use. - ExplicitBounds []float64 `protobuf:"fixed64,7,rep,packed,name=explicit_bounds,json=explicitBounds,proto3" json:"explicit_bounds,omitempty"` + ExplicitBounds []float64 `protobuf:"fixed64,6,rep,packed,name=explicit_bounds,json=explicitBounds,proto3" json:"explicit_bounds,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -701,7 +848,7 @@ func (m *HistogramDataPoint) Reset() { *m = HistogramDataPoint{} } func (m *HistogramDataPoint) String() string { return proto.CompactTextString(m) } func (*HistogramDataPoint) ProtoMessage() {} func (*HistogramDataPoint) Descriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{6} + return fileDescriptor_3c3112f9fa006917, []int{7} } func (m *HistogramDataPoint) XXX_Unmarshal(b []byte) error { @@ -722,13 +869,6 @@ func (m *HistogramDataPoint) XXX_DiscardUnknown() { var xxx_messageInfo_HistogramDataPoint proto.InternalMessageInfo -func (m *HistogramDataPoint) GetLabels() []*v11.StringKeyValue { - if m != nil { - return m.Labels - } - return nil -} - func (m *HistogramDataPoint) GetStartTimeUnixNano() uint64 { if m != nil { return m.StartTimeUnixNano @@ -775,19 +915,17 @@ func (m *HistogramDataPoint) GetExplicitBounds() []float64 { type HistogramDataPoint_Bucket struct { // The number of values in each bucket of the histogram, as described by // bucket_options. - Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` - // exemplar is an optional representative value of the bucket. - Exemplar *HistogramDataPoint_Bucket_Exemplar `protobuf:"bytes,2,opt,name=exemplar,proto3" json:"exemplar,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *HistogramDataPoint_Bucket) Reset() { *m = HistogramDataPoint_Bucket{} } func (m *HistogramDataPoint_Bucket) String() string { return proto.CompactTextString(m) } func (*HistogramDataPoint_Bucket) ProtoMessage() {} func (*HistogramDataPoint_Bucket) Descriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{6, 0} + return fileDescriptor_3c3112f9fa006917, []int{7, 0} } func (m *HistogramDataPoint_Bucket) XXX_Unmarshal(b []byte) error { @@ -815,83 +953,9 @@ func (m *HistogramDataPoint_Bucket) GetCount() uint64 { return 0 } -func (m *HistogramDataPoint_Bucket) GetExemplar() *HistogramDataPoint_Bucket_Exemplar { - if m != nil { - return m.Exemplar - } - return nil -} - -// Exemplars are example points that may be used to annotate aggregated -// Histogram values. They are metadata that gives information about a -// particular value added to a Histogram bucket. -type HistogramDataPoint_Bucket_Exemplar struct { - // Value of the exemplar point. It determines which bucket the exemplar belongs to. - // If bucket_options define bounds for this bucket then this value must be within - // the defined bounds. - Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` - // time_unix_nano is the moment when this exemplar was recorded. - // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` - // exemplar_attachments are contextual information about the example value. - // Keys in this list must be unique. - Attachments []*v11.StringKeyValue `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HistogramDataPoint_Bucket_Exemplar) Reset() { *m = HistogramDataPoint_Bucket_Exemplar{} } -func (m *HistogramDataPoint_Bucket_Exemplar) String() string { return proto.CompactTextString(m) } -func (*HistogramDataPoint_Bucket_Exemplar) ProtoMessage() {} -func (*HistogramDataPoint_Bucket_Exemplar) Descriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{6, 0, 0} -} - -func (m *HistogramDataPoint_Bucket_Exemplar) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HistogramDataPoint_Bucket_Exemplar.Unmarshal(m, b) -} -func (m *HistogramDataPoint_Bucket_Exemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HistogramDataPoint_Bucket_Exemplar.Marshal(b, m, deterministic) -} -func (m *HistogramDataPoint_Bucket_Exemplar) XXX_Merge(src proto.Message) { - xxx_messageInfo_HistogramDataPoint_Bucket_Exemplar.Merge(m, src) -} -func (m *HistogramDataPoint_Bucket_Exemplar) XXX_Size() int { - return xxx_messageInfo_HistogramDataPoint_Bucket_Exemplar.Size(m) -} -func (m *HistogramDataPoint_Bucket_Exemplar) XXX_DiscardUnknown() { - xxx_messageInfo_HistogramDataPoint_Bucket_Exemplar.DiscardUnknown(m) -} - -var xxx_messageInfo_HistogramDataPoint_Bucket_Exemplar proto.InternalMessageInfo - -func (m *HistogramDataPoint_Bucket_Exemplar) GetValue() float64 { - if m != nil { - return m.Value - } - return 0 -} - -func (m *HistogramDataPoint_Bucket_Exemplar) GetTimeUnixNano() uint64 { - if m != nil { - return m.TimeUnixNano - } - return 0 -} - -func (m *HistogramDataPoint_Bucket_Exemplar) GetAttachments() []*v11.StringKeyValue { - if m != nil { - return m.Attachments - } - return nil -} - // SummaryDataPoint is a single data point in a timeseries that describes the time-varying // values of a Summary metric. type SummaryDataPoint struct { - // The set of labels that uniquely identify this timeseries. - Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"` // start_time_unix_nano is the time when the cumulative value was reset to zero. // // The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano]. @@ -899,19 +963,19 @@ type SummaryDataPoint struct { // // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. - StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` + StartTimeUnixNano uint64 `protobuf:"fixed64,1,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"` // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` + TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // The total number of recorded values since start_time. Optional since // some systems don't expose this. - Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` + Count uint64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // The total sum of recorded values since start_time. Optional since some // systems don't expose this. If count is zero then this field must be zero. - Sum float64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"` + Sum float64 `protobuf:"fixed64,4,opt,name=sum,proto3" json:"sum,omitempty"` // A list of values at different percentiles of the distribution calculated // from the current snapshot. The percentiles must be strictly increasing. - PercentileValues []*SummaryDataPoint_ValueAtPercentile `protobuf:"bytes,6,rep,name=percentile_values,json=percentileValues,proto3" json:"percentile_values,omitempty"` + PercentileValues []*SummaryDataPoint_ValueAtPercentile `protobuf:"bytes,5,rep,name=percentile_values,json=percentileValues,proto3" json:"percentile_values,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -921,7 +985,7 @@ func (m *SummaryDataPoint) Reset() { *m = SummaryDataPoint{} } func (m *SummaryDataPoint) String() string { return proto.CompactTextString(m) } func (*SummaryDataPoint) ProtoMessage() {} func (*SummaryDataPoint) Descriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{7} + return fileDescriptor_3c3112f9fa006917, []int{8} } func (m *SummaryDataPoint) XXX_Unmarshal(b []byte) error { @@ -942,13 +1006,6 @@ func (m *SummaryDataPoint) XXX_DiscardUnknown() { var xxx_messageInfo_SummaryDataPoint proto.InternalMessageInfo -func (m *SummaryDataPoint) GetLabels() []*v11.StringKeyValue { - if m != nil { - return m.Labels - } - return nil -} - func (m *SummaryDataPoint) GetStartTimeUnixNano() uint64 { if m != nil { return m.StartTimeUnixNano @@ -1007,7 +1064,7 @@ func (m *SummaryDataPoint_ValueAtPercentile) Reset() { *m = SummaryDataP func (m *SummaryDataPoint_ValueAtPercentile) String() string { return proto.CompactTextString(m) } func (*SummaryDataPoint_ValueAtPercentile) ProtoMessage() {} func (*SummaryDataPoint_ValueAtPercentile) Descriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{7, 0} + return fileDescriptor_3c3112f9fa006917, []int{8, 0} } func (m *SummaryDataPoint_ValueAtPercentile) XXX_Unmarshal(b []byte) error { @@ -1047,13 +1104,14 @@ func init() { proto.RegisterEnum("opentelemetry.proto.metrics.v1.MetricDescriptor_Temporality", MetricDescriptor_Temporality_name, MetricDescriptor_Temporality_value) proto.RegisterType((*ResourceMetrics)(nil), "opentelemetry.proto.metrics.v1.ResourceMetrics") proto.RegisterType((*InstrumentationLibraryMetrics)(nil), "opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics") + proto.RegisterType((*RawValue)(nil), "opentelemetry.proto.metrics.v1.RawValue") proto.RegisterType((*Metric)(nil), "opentelemetry.proto.metrics.v1.Metric") + proto.RegisterType((*Metric_DataPoint)(nil), "opentelemetry.proto.metrics.v1.Metric.DataPoint") proto.RegisterType((*MetricDescriptor)(nil), "opentelemetry.proto.metrics.v1.MetricDescriptor") proto.RegisterType((*Int64DataPoint)(nil), "opentelemetry.proto.metrics.v1.Int64DataPoint") proto.RegisterType((*DoubleDataPoint)(nil), "opentelemetry.proto.metrics.v1.DoubleDataPoint") proto.RegisterType((*HistogramDataPoint)(nil), "opentelemetry.proto.metrics.v1.HistogramDataPoint") proto.RegisterType((*HistogramDataPoint_Bucket)(nil), "opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket") - proto.RegisterType((*HistogramDataPoint_Bucket_Exemplar)(nil), "opentelemetry.proto.metrics.v1.HistogramDataPoint.Bucket.Exemplar") proto.RegisterType((*SummaryDataPoint)(nil), "opentelemetry.proto.metrics.v1.SummaryDataPoint") proto.RegisterType((*SummaryDataPoint_ValueAtPercentile)(nil), "opentelemetry.proto.metrics.v1.SummaryDataPoint.ValueAtPercentile") } @@ -1063,69 +1121,76 @@ func init() { } var fileDescriptor_3c3112f9fa006917 = []byte{ - // 1012 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x57, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0x5e, 0xc7, 0x69, 0xda, 0x9e, 0x74, 0x5b, 0x67, 0x5a, 0xd8, 0xa8, 0xd2, 0x2e, 0x25, 0x42, - 0x50, 0x10, 0x75, 0x68, 0x29, 0x95, 0x90, 0x40, 0x90, 0x6c, 0x22, 0xd6, 0x22, 0x7f, 0x9a, 0x38, - 0x95, 0xba, 0xd2, 0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0xd0, 0xd0, 0x93, 0x5e, 0x7e, 0x31, 0xa1, 0xfc, 0x3a, 0x18, 0x86, 0x83, 0xa9, 0x86, - 0xa1, 0x27, 0xe9, 0xa7, 0xf8, 0x02, 0xd3, 0x49, 0xf4, 0x61, 0x3e, 0x21, 0xac, 0x3a, 0xc9, 0xfe, - 0x33, 0x18, 0x16, 0x84, 0xe1, 0xe3, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x3f, 0x02, 0x26, 0x81, - 0x42, 0x0c, 0x00, 0x00, + // 1130 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdd, 0x8e, 0xdb, 0x44, + 0x14, 0xae, 0xf3, 0xdb, 0x9c, 0x6c, 0x13, 0x67, 0xba, 0xa2, 0x61, 0xa5, 0xb6, 0x69, 0x84, 0x20, + 0x20, 0xea, 0xd0, 0xa5, 0x54, 0x42, 0x02, 0x41, 0xd2, 0x04, 0x6a, 0x91, 0x3f, 0x4d, 0x9c, 0x15, + 0x5b, 0x44, 0x8d, 0x93, 0x8c, 0x76, 0x47, 0xc4, 0x3f, 0xb2, 0xc7, 0xcb, 0xe6, 0x02, 0xee, 0x78, + 0x06, 0x1e, 0x81, 0x6b, 0xae, 0x78, 0x04, 0xae, 0xb8, 0xe0, 0x0d, 0x78, 0x14, 0xe4, 0x19, 0x3b, + 0x76, 0xb2, 0xd9, 0xcd, 0x2e, 0x08, 0xb8, 0x9b, 0xf9, 0xce, 0x39, 0xdf, 0xf9, 0xe6, 0xcc, 0xcc, + 0x19, 0x1b, 0xde, 0xb5, 0x1d, 0x62, 0x31, 0xb2, 0x20, 0x26, 0x61, 0xee, 0xb2, 0xe9, 0xb8, 0x36, + 0xb3, 0x9b, 0xc1, 0x98, 0xce, 0xbc, 0xe6, 0xd9, 0x93, 0x68, 0xa8, 0x70, 0x03, 0x7a, 0xb0, 0xe6, + 0x2d, 0x40,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 0xe5, 0x98, 0x9c, 0x1b, 0xbd, 0x03, 0x15, 0x2a, 0x17, 0xdc, 0xd0, 0x03, 0x80, 0xd8, + 0x31, 0xfc, 0xd6, 0x4a, 0x20, 0xf1, 0x19, 0x4c, 0x25, 0xce, 0x60, 0x9b, 0xc1, 0x23, 0x6a, 0xef, + 0x10, 0xd9, 0xde, 0x0b, 0x3f, 0x48, 0x47, 0x81, 0x61, 0x24, 0xbd, 0xfc, 0xe4, 0x84, 0xb2, 0x53, + 0x7f, 0x1a, 0xbc, 0xef, 0xcd, 0x20, 0xf4, 0x71, 0xfc, 0x61, 0xbf, 0xc6, 0xf4, 0x58, 0x7c, 0xe6, + 0x9f, 0x10, 0xab, 0x79, 0x92, 0xfc, 0xcf, 0x98, 0xe6, 0xb8, 0xe1, 0xfd, 0xbf, 0x02, 0x00, 0x00, + 0xff, 0xff, 0x18, 0xc4, 0x84, 0x50, 0x90, 0x0c, 0x00, 0x00, } diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index 1d458824f..c77c20d84 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -44,6 +44,32 @@ message InstrumentationLibraryMetrics { repeated Metric metrics = 2; } +// A representation of raw measurements, which can have statistical meaning based +// on how the measurement was sampled, as well as a span ID and trace ID of the +// active span when the measurement was recorded +message RawValue { + // Numerical value of the measurement that was recorded. Only one of these + // two fields is used for the data, based on MetricDescriptor.measurement_type + double double_value = 1; + int64 int64_value = 2; + + // Exact time that the measurement was recorded + fixed64 time_unix_nano = 3; + + // Labels that were passed with the measurement, but not included in the DataPoint's labels + repeated opentelemetry.proto.common.v1.StringKeyValue additional_labels = 4; + + // (Optional) Span ID of the current trace + bytes span_id = 5; + + // (Optional) Trace ID of the current trace + bytes trace_id = 6; + + // (Optional) When sample_count is non-zero, this exemplar has been chosen in a statistically + // unbiased way such that the exemplar is representative of `sample_count` individual events + double sample_count = 7; +} + // Defines a Metric which has one or more timeseries. // // The data model and relation between entities is shown in the diagram below. @@ -97,13 +123,26 @@ message Metric { // metric_descriptor describes the Metric. MetricDescriptor metric_descriptor = 1; - // Data is a list of one or more DataPoints for a single metric. Only one of the - // following fields is used for the data, depending on the type of the metric defined - // by MetricDescriptor.type field. - repeated Int64DataPoint int64_data_points = 2; - repeated DoubleDataPoint double_data_points = 3; - repeated HistogramDataPoint histogram_data_points = 4; - repeated SummaryDataPoint summary_data_points = 5; + // A DataPoint represents a single point in a timeseries + // that describes the time-varying values of a metric. + message DataPoint { + // The set of labels that uniquely identify this timeseries. + repeated opentelemetry.proto.common.v1.StringKeyValue labels = 1; + + // Only one of the following fields is used for the data, + // depending on the type of the metric defined by MetricDescriptor.type field. + Int64DataPoint int64_data_point = 2; + DoubleDataPoint double_data_point = 3; + HistogramDataPoint histogram_data_point = 4; + SummaryDataPoint summary_data_point = 5; + + // (Optional) List of exemplars collected from + // measurements that were used to form the data point + repeated RawValue exemplars = 6; + } + + // A list of one or more DataPoints for a single metric. + repeated DataPoint data = 2; } // Defines a metric type and its schema. @@ -161,6 +200,9 @@ message MetricDescriptor { // type is the type of values this metric has. Type type = 4; + // the value type of the unaggregated measurements, MUST be either INT64 or DOUBLE + Type measurement_type = 5; + // Temporality is the temporal quality values of a metric have. It // describes how those values relate to the time interval over which they // are reported. @@ -236,15 +278,12 @@ message MetricDescriptor { } // temporality is the Temporality of values this metric has. - Temporality temporality = 5; + Temporality temporality = 6; } // Int64DataPoint is a single data point in a timeseries that describes the time-varying // values of a int64 metric. message Int64DataPoint { - // The set of labels that uniquely identify this timeseries. - repeated opentelemetry.proto.common.v1.StringKeyValue labels = 1; - // start_time_unix_nano is the time when the cumulative value was reset to zero. // This is used for Counter type only. For Gauge the value is not specified and // defaults to 0. @@ -254,22 +293,19 @@ message Int64DataPoint { // // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. - fixed64 start_time_unix_nano = 2; + fixed64 start_time_unix_nano = 1; // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - fixed64 time_unix_nano = 3; + fixed64 time_unix_nano = 2; // value itself. - int64 value = 4; + int64 value = 3; } // DoubleDataPoint is a single data point in a timeseries that describes the time-varying // value of a double metric. message DoubleDataPoint { - // The set of labels that uniquely identify this timeseries. - repeated opentelemetry.proto.common.v1.StringKeyValue labels = 1; - // start_time_unix_nano is the time when the cumulative value was reset to zero. // This is used for Counter type only. For Gauge the value is not specified and // defaults to 0. @@ -279,23 +315,20 @@ message DoubleDataPoint { // // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. - fixed64 start_time_unix_nano = 2; + fixed64 start_time_unix_nano = 1; // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - fixed64 time_unix_nano = 3; + fixed64 time_unix_nano = 2; // value itself. - double value = 4; + double value = 3; } // HistogramDataPoint is a single data point in a timeseries that describes the time-varying // values of a Histogram. A Histogram contains summary statistics for a population of values, // it may optionally contain the distribution of those values across a set of buckets. message HistogramDataPoint { - // The set of labels that uniquely identify this timeseries. - repeated opentelemetry.proto.common.v1.StringKeyValue labels = 1; - // start_time_unix_nano is the time when the cumulative value was reset to zero. // // The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano]. @@ -304,47 +337,26 @@ message HistogramDataPoint { // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. // Note: this field is always unspecified and ignored if MetricDescriptor.type==GAUGE_HISTOGRAM. - fixed64 start_time_unix_nano = 2; + fixed64 start_time_unix_nano = 1; // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - fixed64 time_unix_nano = 3; + fixed64 time_unix_nano = 2; // count is the number of values in the population. Must be non-negative. This value // must be equal to the sum of the "count" fields in buckets if a histogram is provided. - uint64 count = 4; + uint64 count = 3; // sum of the values in the population. If count is zero then this field // must be zero. This value must be equal to the sum of the "sum" fields in buckets if // a histogram is provided. - double sum = 5; + double sum = 4; // Bucket contains values for a bucket. message Bucket { // The number of values in each bucket of the histogram, as described by // bucket_options. uint64 count = 1; - - // Exemplars are example points that may be used to annotate aggregated - // Histogram values. They are metadata that gives information about a - // particular value added to a Histogram bucket. - message Exemplar { - // Value of the exemplar point. It determines which bucket the exemplar belongs to. - // If bucket_options define bounds for this bucket then this value must be within - // the defined bounds. - double value = 1; - - // time_unix_nano is the moment when this exemplar was recorded. - // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - fixed64 time_unix_nano = 2; - - // exemplar_attachments are contextual information about the example value. - // Keys in this list must be unique. - repeated opentelemetry.proto.common.v1.StringKeyValue attachments = 3; - } - - // exemplar is an optional representative value of the bucket. - Exemplar exemplar = 2; } // buckets is an optional field contains the values of histogram for each bucket. @@ -357,7 +369,7 @@ message HistogramDataPoint { // Note: if HistogramDataPoint.bucket_options defines bucket bounds then this field // must also be present and number of elements in this field must be equal to the // number of buckets defined by bucket_options. - repeated Bucket buckets = 6; + repeated Bucket buckets = 5; // A histogram may optionally contain the distribution of the values in the population. // In that case one of the option fields below and "buckets" field both must be defined. @@ -381,15 +393,12 @@ message HistogramDataPoint { // Note: only [a, b) intervals are currently supported for each bucket. If we decides // to also support (a, b] intervals we should add support for these by defining a boolean // value which decides what type of intervals to use. - repeated double explicit_bounds = 7; + repeated double explicit_bounds = 6; } // SummaryDataPoint is a single data point in a timeseries that describes the time-varying // values of a Summary metric. message SummaryDataPoint { - // The set of labels that uniquely identify this timeseries. - repeated opentelemetry.proto.common.v1.StringKeyValue labels = 1; - // start_time_unix_nano is the time when the cumulative value was reset to zero. // // The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano]. @@ -397,19 +406,19 @@ message SummaryDataPoint { // // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp // may be decided by the backend. - fixed64 start_time_unix_nano = 2; + fixed64 start_time_unix_nano = 1; // time_unix_nano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. - fixed64 time_unix_nano = 3; + fixed64 time_unix_nano = 2; // The total number of recorded values since start_time. Optional since // some systems don't expose this. - uint64 count = 4; + uint64 count = 3; // The total sum of recorded values since start_time. Optional since some // systems don't expose this. If count is zero then this field must be zero. - double sum = 5; + double sum = 4; // Represents the value at a given percentile of a distribution. // @@ -430,5 +439,5 @@ message SummaryDataPoint { // A list of values at different percentiles of the distribution calculated // from the current snapshot. The percentiles must be strictly increasing. - repeated ValueAtPercentile percentile_values = 6; + repeated ValueAtPercentile percentile_values = 5; }