From 4f39bdf4403e274a2165abf50a7f5d2ea5ae940f Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Apr 2020 12:57:38 -0700 Subject: [PATCH 01/11] Add temporality and refinements to MetricDescriptor --- gen/go/metrics/v1/metrics.pb.go | 325 +++++++++++++++---- opentelemetry/proto/metrics/v1/metrics.proto | 111 ++++++- 2 files changed, 373 insertions(+), 63 deletions(-) diff --git a/gen/go/metrics/v1/metrics.pb.go b/gen/go/metrics/v1/metrics.pb.go index 61fe5b7d3..3e65231d6 100644 --- a/gen/go/metrics/v1/metrics.pb.go +++ b/gen/go/metrics/v1/metrics.pb.go @@ -100,6 +100,165 @@ func (MetricDescriptor_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor_3c3112f9fa006917, []int{3, 0} } +// 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. +type MetricDescriptor_Temporality int32 + +const ( + // TEMPORALITY_INVALID is the default Temporality, it MUST not be + // used. + MetricDescriptor_TEMPORALITY_INVALID MetricDescriptor_Temporality = 0 + // INSTANTANEOUS is a metric whose values are measured at a particular + // instant. The values are not aggregated over any time interval and are + // unique per timestamp. + MetricDescriptor_INSTANTANEOUS MetricDescriptor_Temporality = 1 + // DELTA is a metric whose values are the aggregation of measurements + // made over a time interval. Successive metrics contain aggregation of + // values from continuous and non-overlapping intervals. + // + // The values for a DELTA metric are based only on the time interval + // associated with one measurement cycle. There is no dependency on + // previous measurements like is the case for CUMULATIVE metrics. + // + // For example, consider a system measuring the number of requests that + // it receives every second and reports the sum of these requests as a + // DELTA metric: + // + // 1. The system starts receiving at time=t_0. + // 2. A request is received, the system measures 1 request. + // 3. A request is received, the system measures 1 request. + // 4. A request is received, the system measures 1 request. + // 5. The 1 second collection cycle ends. A metric is exported for the + // number of requests received over the interval of time t_0 to + // t_0+1 with a value of 3. + // 6. A request is received, the system measures 1 request. + // 7. A request is received, the system measures 1 request. + // 8. The 1 second collection cycle ends. A metric is exported for the + // number of requests received over the interval of time t_0+1 to + // t_0+2 with a value of 2. + MetricDescriptor_DELTA MetricDescriptor_Temporality = 2 + // CUMULATIVE is a metric whose values are the aggregation of + // successively made measurements from a fixed start time until the last + // reported measurement. This means that current values of a CUMULATIVE + // metric depend on all previous measurements since the start time. + // Because of this, the sender is required to retain this state in some + // form. If this state is lost or invalidated, the CUMULATIVE metric + // values MUST be reset and a new fixed start time following the last + // reported measurement time sent MUST be used. + // + // For example, consider a system measuring the number of requests that + // it receives every second and reports the sum of these requests as a + // CUMULATIVE metric: + // + // 1. The system starts receiving at time=t_0. + // 2. A request is received, the system measures 1 request. + // 3. A request is received, the system measures 1 request. + // 4. A request is received, the system measures 1 request. + // 5. The 1 second collection cycle ends. A metric is exported for the + // number of requests received over the interval of time t_0 to + // t_0+1 with a value of 3. + // 6. A request is received, the system measures 1 request. + // 7. A request is received, the system measures 1 request. + // 8. The 1 second collection cycle ends. A metric is exported for the + // number of requests received over the interval of time t_0 to + // t_0+2 with a value of 5. + // 9. The system experiences a fault and loses state. + // 10. The system recovers and resumes receiving at time=t_1. + // 11. A request is received, the system measures 1 request. + // 12. The 1 second collection cycle ends. A metric is exported for the + // number of requests received over the interval of time t_1 to + // t_0+1 with a value of 1. + MetricDescriptor_CUMULATIVE MetricDescriptor_Temporality = 3 +) + +var MetricDescriptor_Temporality_name = map[int32]string{ + 0: "TEMPORALITY_INVALID", + 1: "INSTANTANEOUS", + 2: "DELTA", + 3: "CUMULATIVE", +} + +var MetricDescriptor_Temporality_value = map[string]int32{ + "TEMPORALITY_INVALID": 0, + "INSTANTANEOUS": 1, + "DELTA": 2, + "CUMULATIVE": 3, +} + +func (x MetricDescriptor_Temporality) String() string { + return proto.EnumName(MetricDescriptor_Temporality_name, int32(x)) +} + +func (MetricDescriptor_Temporality) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3c3112f9fa006917, []int{3, 1} +} + +// Monotonic is a refinement of the values a metric has. It defines the +// relationship values of successively reported metrics have +// (non-increasing, non-decreasing, or unknown). This is a refinement of +// the metric values that can be useful for a receiver in understanding +// how to deal with discontinuities in the data (i.e. calculating +// derivates of the data without introducing artifacts from a reset). +type MetricDescriptor_Monotonic int32 + +const ( + // MONOTONIC_UNSPECIFIED is the default, and means the monotonic nature + // of the metric values is unknown. + MetricDescriptor_MONOTONIC_UNSPECIFIED MetricDescriptor_Monotonic = 0 + // NONDECREASING means all the successive metric values increase or + // remain constant. + MetricDescriptor_NONDECREASING MetricDescriptor_Monotonic = 1 +) + +var MetricDescriptor_Monotonic_name = map[int32]string{ + 0: "MONOTONIC_UNSPECIFIED", + 1: "NONDECREASING", +} + +var MetricDescriptor_Monotonic_value = map[string]int32{ + "MONOTONIC_UNSPECIFIED": 0, + "NONDECREASING": 1, +} + +func (x MetricDescriptor_Monotonic) String() string { + return proto.EnumName(MetricDescriptor_Monotonic_name, int32(x)) +} + +func (MetricDescriptor_Monotonic) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3c3112f9fa006917, []int{3, 2} +} + +// Domain is a refinement of the values a metric has. It describes the set +// of numbers metric values belong to, if any. +type MetricDescriptor_Domain int32 + +const ( + // DOMAIN_UNSPECIFIED is the default, and means the metric values do + // not belong to any particular domain other than the Type itself. + MetricDescriptor_DOMAIN_UNSPECIFIED MetricDescriptor_Domain = 0 + // NONNEGATIVE is the set of numbers greater than or equal to zero. + MetricDescriptor_NONNEGATIVE MetricDescriptor_Domain = 1 +) + +var MetricDescriptor_Domain_name = map[int32]string{ + 0: "DOMAIN_UNSPECIFIED", + 1: "NONNEGATIVE", +} + +var MetricDescriptor_Domain_value = map[string]int32{ + "DOMAIN_UNSPECIFIED": 0, + "NONNEGATIVE": 1, +} + +func (x MetricDescriptor_Domain) String() string { + return proto.EnumName(MetricDescriptor_Domain_name, int32(x)) +} + +func (MetricDescriptor_Domain) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_3c3112f9fa006917, []int{3, 3} +} + // A collection of InstrumentationLibraryMetrics from a Resource. type ResourceMetrics struct { // The resource for the metrics in this message. @@ -336,9 +495,15 @@ type MetricDescriptor struct { // described by http://unitsofmeasure.org/ucum.html. Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"` Type MetricDescriptor_Type `protobuf:"varint,4,opt,name=type,proto3,enum=opentelemetry.proto.metrics.v1.MetricDescriptor_Type" json:"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"` + // monotonic describes the Monotonic refinement of values this metric has. + Monotonic MetricDescriptor_Monotonic `protobuf:"varint,6,opt,name=monotonic,proto3,enum=opentelemetry.proto.metrics.v1.MetricDescriptor_Monotonic" json:"monotonic,omitempty"` + // domain describes the Domain refinement of values this metric has. + Domain MetricDescriptor_Domain `protobuf:"varint,7,opt,name=domain,proto3,enum=opentelemetry.proto.metrics.v1.MetricDescriptor_Domain" json:"domain,omitempty"` // The set of labels associated with the metric descriptor. Labels in this list apply to // all data points. - Labels []*v11.StringKeyValue `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty"` + Labels []*v11.StringKeyValue `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -397,6 +562,27 @@ func (m *MetricDescriptor) GetType() MetricDescriptor_Type { return MetricDescriptor_UNSPECIFIED } +func (m *MetricDescriptor) GetTemporality() MetricDescriptor_Temporality { + if m != nil { + return m.Temporality + } + return MetricDescriptor_TEMPORALITY_INVALID +} + +func (m *MetricDescriptor) GetMonotonic() MetricDescriptor_Monotonic { + if m != nil { + return m.Monotonic + } + return MetricDescriptor_MONOTONIC_UNSPECIFIED +} + +func (m *MetricDescriptor) GetDomain() MetricDescriptor_Domain { + if m != nil { + return m.Domain + } + return MetricDescriptor_DOMAIN_UNSPECIFIED +} + func (m *MetricDescriptor) GetLabels() []*v11.StringKeyValue { if m != nil { return m.Labels @@ -963,6 +1149,9 @@ func (m *SummaryDataPoint_ValueAtPercentile) GetValue() float64 { func init() { proto.RegisterEnum("opentelemetry.proto.metrics.v1.MetricDescriptor_Type", MetricDescriptor_Type_name, MetricDescriptor_Type_value) + proto.RegisterEnum("opentelemetry.proto.metrics.v1.MetricDescriptor_Temporality", MetricDescriptor_Temporality_name, MetricDescriptor_Temporality_value) + proto.RegisterEnum("opentelemetry.proto.metrics.v1.MetricDescriptor_Monotonic", MetricDescriptor_Monotonic_name, MetricDescriptor_Monotonic_value) + proto.RegisterEnum("opentelemetry.proto.metrics.v1.MetricDescriptor_Domain", MetricDescriptor_Domain_name, MetricDescriptor_Domain_value) proto.RegisterType((*ResourceMetrics)(nil), "opentelemetry.proto.metrics.v1.ResourceMetrics") proto.RegisterType((*InstrumentationLibraryMetrics)(nil), "opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics") proto.RegisterType((*Metric)(nil), "opentelemetry.proto.metrics.v1.Metric") @@ -981,65 +1170,77 @@ func init() { } var fileDescriptor_3c3112f9fa006917 = []byte{ - // 952 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x56, 0xdf, 0x6e, 0x2a, 0x45, - 0x18, 0x77, 0x59, 0x0a, 0xf5, 0xa3, 0xc2, 0x32, 0xad, 0x4a, 0x48, 0xce, 0x11, 0x89, 0xd1, 0x6a, - 0xec, 0x62, 0x6b, 0x6d, 0xe2, 0x85, 0x51, 0x28, 0xd8, 0x43, 0x2c, 0x2d, 0x19, 0xe0, 0x24, 0x9e, - 0xe4, 0xb8, 0x2e, 0x30, 0xd2, 0x89, 0xec, 0x0c, 0xd9, 0x9d, 0x6d, 0xca, 0x03, 0x78, 0xeb, 0x95, - 0x89, 0xde, 0xf8, 0x36, 0xfa, 0x00, 0xbe, 0x81, 0x0f, 0xe0, 0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x8e, 0x5f, 0x8b, 0x8d, 0x7f, 0x4d, 0xbf, 0x53, 0x6b, 0xfa, 0x7d, 0x09, 0x39, - 0x5b, 0x08, 0x7b, 0x74, 0x15, 0xfc, 0x8f, 0xa3, 0xdf, 0xcc, 0x03, 0x57, 0x22, 0xae, 0x50, 0xfd, - 0x41, 0x07, 0x63, 0xf5, 0xeb, 0xfd, 0x82, 0xec, 0x1c, 0x87, 0xe2, 0x8c, 0xb8, 0x23, 0xc2, 0x04, - 0x9d, 0x12, 0x4b, 0x76, 0x39, 0xda, 0xbe, 0xc6, 0x43, 0x7f, 0x68, 0xa6, 0xac, 0xac, 0x2e, 0xba, - 0x0b, 0x41, 0x6c, 0x2c, 0xc5, 0xa5, 0xd1, 0x2b, 0xb7, 0xa1, 0x78, 0xcb, 0x0d, 0x3d, 0x06, 0x58, - 0x3a, 0x86, 0x23, 0x8f, 0x21, 0xcb, 0x6d, 0x48, 0xc5, 0xb6, 0xa1, 0x21, 0xe0, 0x4d, 0xca, 0x37, - 0x24, 0xd9, 0xd8, 0x09, 0xef, 0x7e, 0xdd, 0xc0, 0xd0, 0xd5, 0x9e, 0x7d, 0x3a, 0xa1, 0xe2, 0xca, - 0x1f, 0x06, 0x83, 0xa9, 0x05, 0xd4, 0x83, 0xe5, 0x1d, 0x3a, 0xa1, 0x74, 0xa0, 0x6e, 0xd4, 0x13, - 0xc2, 0x6a, 0x93, 0xf8, 0x95, 0x7e, 0x98, 0x91, 0x86, 0x0f, 0xff, 0x0a, 0x00, 0x00, 0xff, 0xff, - 0x28, 0xab, 0x2b, 0x39, 0xfb, 0x0b, 0x00, 0x00, + // 1142 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x97, 0xdd, 0x6e, 0xe3, 0x44, + 0x14, 0xc7, 0x71, 0x92, 0xa6, 0xed, 0xc9, 0x6e, 0xeb, 0x4c, 0xf7, 0xc3, 0x54, 0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d6, 0xaf, 0x8a, 0x8d, 0xf7, 0xff, 0x0c, 0x00, 0x00, 0xff, 0xff, 0x84, 0x00, + 0x47, 0xb5, 0xca, 0x0d, 0x00, 0x00, } diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index ebfb24271..7bc64edae 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -172,9 +172,118 @@ message MetricDescriptor { } Type type = 4; + // 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. + enum Temporality { + // TEMPORALITY_INVALID is the default Temporality, it MUST not be + // used. + TEMPORALITY_INVALID = 0; + + // INSTANTANEOUS is a metric whose values are measured at a particular + // instant. The values are not aggregated over any time interval and are + // unique per timestamp. + INSTANTANEOUS = 1; + + // DELTA is a metric whose values are the aggregation of measurements + // made over a time interval. Successive metrics contain aggregation of + // values from continuous and non-overlapping intervals. + // + // The values for a DELTA metric are based only on the time interval + // associated with one measurement cycle. There is no dependency on + // previous measurements like is the case for CUMULATIVE metrics. + // + // For example, consider a system measuring the number of requests that + // it receives every second and reports the sum of these requests as a + // DELTA metric: + // + // 1. The system starts receiving at time=t_0. + // 2. A request is received, the system measures 1 request. + // 3. A request is received, the system measures 1 request. + // 4. A request is received, the system measures 1 request. + // 5. The 1 second collection cycle ends. A metric is exported for the + // number of requests received over the interval of time t_0 to + // t_0+1 with a value of 3. + // 6. A request is received, the system measures 1 request. + // 7. A request is received, the system measures 1 request. + // 8. The 1 second collection cycle ends. A metric is exported for the + // number of requests received over the interval of time t_0+1 to + // t_0+2 with a value of 2. + DELTA = 2; + + // CUMULATIVE is a metric whose values are the aggregation of + // successively made measurements from a fixed start time until the last + // reported measurement. This means that current values of a CUMULATIVE + // metric depend on all previous measurements since the start time. + // Because of this, the sender is required to retain this state in some + // form. If this state is lost or invalidated, the CUMULATIVE metric + // values MUST be reset and a new fixed start time following the last + // reported measurement time sent MUST be used. + // + // For example, consider a system measuring the number of requests that + // it receives every second and reports the sum of these requests as a + // CUMULATIVE metric: + // + // 1. The system starts receiving at time=t_0. + // 2. A request is received, the system measures 1 request. + // 3. A request is received, the system measures 1 request. + // 4. A request is received, the system measures 1 request. + // 5. The 1 second collection cycle ends. A metric is exported for the + // number of requests received over the interval of time t_0 to + // t_0+1 with a value of 3. + // 6. A request is received, the system measures 1 request. + // 7. A request is received, the system measures 1 request. + // 8. The 1 second collection cycle ends. A metric is exported for the + // number of requests received over the interval of time t_0 to + // t_0+2 with a value of 5. + // 9. The system experiences a fault and loses state. + // 10. The system recovers and resumes receiving at time=t_1. + // 11. A request is received, the system measures 1 request. + // 12. The 1 second collection cycle ends. A metric is exported for the + // number of requests received over the interval of time t_1 to + // t_0+1 with a value of 1. + CUMULATIVE = 3; + } + + // temporality is the Temporality of values this metric has. + Temporality temporality = 5; + + // Monotonic is a refinement of the values a metric has. It defines the + // relationship values of successively reported metrics have + // (non-increasing, non-decreasing, or unknown). This is a refinement of + // the metric values that can be useful for a receiver in understanding + // how to deal with discontinuities in the data (i.e. calculating + // derivates of the data without introducing artifacts from a reset). + enum Monotonic { + // MONOTONIC_UNSPECIFIED is the default, and means the monotonic nature + // of the metric values is unknown. + MONOTONIC_UNSPECIFIED = 0; + + // NONDECREASING means all the successive metric values increase or + // remain constant. + NONDECREASING = 1; + } + + // monotonic describes the Monotonic refinement of values this metric has. + Monotonic monotonic = 6; + + // Domain is a refinement of the values a metric has. It describes the set + // of numbers metric values belong to, if any. + enum Domain { + // DOMAIN_UNSPECIFIED is the default, and means the metric values do + // not belong to any particular domain other than the Type itself. + DOMAIN_UNSPECIFIED = 0; + + // NONNEGATIVE is the set of numbers greater than or equal to zero. + NONNEGATIVE = 1; + } + + // domain describes the Domain refinement of values this metric has. + Domain domain = 7; + // The set of labels associated with the metric descriptor. Labels in this list apply to // all data points. - repeated opentelemetry.proto.common.v1.StringKeyValue labels = 5; + repeated opentelemetry.proto.common.v1.StringKeyValue labels = 8; } // Int64DataPoint is a single data point in a timeseries that describes the time-varying From 9f8f0cf7185e1691f61edd9e7ec0746a10d2c8f0 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Apr 2020 13:11:19 -0700 Subject: [PATCH 02/11] Update type --- gen/go/metrics/v1/metrics.pb.go | 220 ++++++++----------- opentelemetry/proto/metrics/v1/metrics.proto | 52 ++--- 2 files changed, 113 insertions(+), 159 deletions(-) diff --git a/gen/go/metrics/v1/metrics.pb.go b/gen/go/metrics/v1/metrics.pb.go index 3e65231d6..c9abfde9b 100644 --- a/gen/go/metrics/v1/metrics.pb.go +++ b/gen/go/metrics/v1/metrics.pb.go @@ -22,74 +22,49 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package -// Type of the metric. It describes how the data is reported. -// -// A gauge is an instantaneous measurement of a value. -// -// A counter/cumulative measurement is a value accumulated over a time -// interval. In a time series, cumulative measurements should have the same -// start time, increasing values, until an event resets the cumulative value -// to zero and sets a new start time for the subsequent points. +// Type is the type of values a metric has. type MetricDescriptor_Type int32 const ( - // Do not use this default value. - MetricDescriptor_UNSPECIFIED MetricDescriptor_Type = 0 - // Integer gauge. The value can go both up and down over time. - // Corresponding values are stored in Int64DataPoint. - MetricDescriptor_GAUGE_INT64 MetricDescriptor_Type = 1 - // Floating point gauge. The value can go both up and down over time. - // Corresponding values are stored in DoubleDataPoint. - MetricDescriptor_GAUGE_DOUBLE MetricDescriptor_Type = 2 - // Histogram gauge measurement. - // Used in scenarios like a snapshot of time that current items in a queue - // have spent there. - // Corresponding values are stored in HistogramDataPoint. The count and sum of the - // histogram can go both up and down over time. Recorded values are always >= 0. - MetricDescriptor_GAUGE_HISTOGRAM MetricDescriptor_Type = 3 - // Integer counter measurement. The value cannot decrease; if value is reset then - // start_time_unix_nano should also be reset. - // Corresponding values are stored in Int64DataPoint. - MetricDescriptor_COUNTER_INT64 MetricDescriptor_Type = 4 - // Floating point counter measurement. The value cannot decrease, if - // resets then the start_time_unix_nano should also be reset. - // Recorded values are always >= 0. - // Corresponding values are stored in DoubleDataPoint. - MetricDescriptor_COUNTER_DOUBLE MetricDescriptor_Type = 5 + // TYPE_INVALID is the default Type, it MUST not be used. + MetricDescriptor_TYPE_INVALID MetricDescriptor_Type = 0 + // INT64 values are represents as signed 64-bit integers. + // + // A Metric of this Type MUST store its values as Int64DataPoint. + MetricDescriptor_INT64 MetricDescriptor_Type = 1 + // DOUBLE values are represents as double-precision floating-point + // numbers. + // + // A Metric of this Type MUST store its values as DoubleDataPoint. + MetricDescriptor_DOUBLE MetricDescriptor_Type = 2 // Histogram cumulative measurement. // Corresponding values are stored in HistogramDataPoint. The count and sum of the // histogram cannot decrease; if values are reset then start_time_unix_nano // should also be reset to the new start timestamp. - MetricDescriptor_CUMULATIVE_HISTOGRAM MetricDescriptor_Type = 6 + MetricDescriptor_CUMULATIVE_HISTOGRAM MetricDescriptor_Type = 3 // Summary value. Some frameworks implemented Histograms as a summary of observations // (usually things like request durations and response sizes). While it // also provides a total count of observations and a sum of all observed // values, it calculates configurable percentiles over a sliding time // window. // Corresponding values are stored in SummaryDataPoint. - MetricDescriptor_SUMMARY MetricDescriptor_Type = 7 + MetricDescriptor_SUMMARY MetricDescriptor_Type = 4 ) var MetricDescriptor_Type_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "GAUGE_INT64", - 2: "GAUGE_DOUBLE", - 3: "GAUGE_HISTOGRAM", - 4: "COUNTER_INT64", - 5: "COUNTER_DOUBLE", - 6: "CUMULATIVE_HISTOGRAM", - 7: "SUMMARY", + 0: "TYPE_INVALID", + 1: "INT64", + 2: "DOUBLE", + 3: "CUMULATIVE_HISTOGRAM", + 4: "SUMMARY", } var MetricDescriptor_Type_value = map[string]int32{ - "UNSPECIFIED": 0, - "GAUGE_INT64": 1, - "GAUGE_DOUBLE": 2, - "GAUGE_HISTOGRAM": 3, - "COUNTER_INT64": 4, - "COUNTER_DOUBLE": 5, - "CUMULATIVE_HISTOGRAM": 6, - "SUMMARY": 7, + "TYPE_INVALID": 0, + "INT64": 1, + "DOUBLE": 2, + "CUMULATIVE_HISTOGRAM": 3, + "SUMMARY": 4, } func (x MetricDescriptor_Type) String() string { @@ -493,7 +468,8 @@ type MetricDescriptor struct { Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // unit in which the metric value is reported. Follows the format // described by http://unitsofmeasure.org/ucum.html. - Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"` + 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"` // 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"` @@ -559,7 +535,7 @@ func (m *MetricDescriptor) GetType() MetricDescriptor_Type { if m != nil { return m.Type } - return MetricDescriptor_UNSPECIFIED + return MetricDescriptor_TYPE_INVALID } func (m *MetricDescriptor) GetTemporality() MetricDescriptor_Temporality { @@ -1170,77 +1146,75 @@ func init() { } var fileDescriptor_3c3112f9fa006917 = []byte{ - // 1142 bytes of a gzipped FileDescriptorProto + // 1106 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x97, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0xc7, 0x71, 0x92, 0xa6, 0xed, 0xc9, 0x6e, 0xeb, 0x4c, 0xf7, 0xc3, 0x54, 0xda, 0xa5, 0x44, - 0x08, 0x0a, 0x62, 0x1d, 0x5a, 0x96, 0x45, 0x8b, 0x40, 0xe0, 0x34, 0xa6, 0x6b, 0xd1, 0xd8, 0xd5, - 0xc4, 0x59, 0xb1, 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0xd8, 0x22, 0x17, 0xc4, 0x9d, 0x8c, 0x1d, 0x5f, 0x74, 0xa4, 0x72, 0xd4, 0xfc, 0xdb, 0xf9, 0xa9, + 0x5a, 0x42, 0xc2, 0x33, 0xe6, 0xde, 0x8f, 0x12, 0x6c, 0xa5, 0xe6, 0xec, 0xf8, 0xa5, 0xdc, 0xf1, + 0x2f, 0xe9, 0x77, 0x61, 0x49, 0xbf, 0x4d, 0xa8, 0x38, 0x9c, 0x3b, 0xc3, 0xb3, 0xe8, 0xb3, 0x28, + 0x7d, 0xdb, 0xaf, 0x39, 0x12, 0x79, 0x42, 0xed, 0xfb, 0x22, 0xc8, 0x8b, 0x2f, 0xd1, 0xff, 0xc9, + 0xcc, 0x79, 0x50, 0x9d, 0x10, 0x7f, 0x48, 0x18, 0xa7, 0x63, 0x62, 0x8b, 0x2e, 0xa7, 0xd3, 0xd7, + 0x5c, 0xf7, 0xbb, 0x42, 0x15, 0x95, 0x35, 0x78, 0x77, 0x06, 0xc4, 0x72, 0x06, 0x17, 0x9b, 0xc1, + 0x9e, 0x0e, 0xd5, 0x4b, 0x6e, 0xe8, 0x3e, 0x40, 0xe6, 0x98, 0x1c, 0x79, 0xce, 0x92, 0x4d, 0x43, + 0x21, 0x37, 0x0d, 0x4d, 0x0e, 0x6f, 0x50, 0x6f, 0x45, 0x92, 0xcd, 0x1b, 0xc9, 0x27, 0x78, 0x37, + 0xda, 0xe8, 0x4a, 0xcf, 0x3f, 0x3b, 0xa5, 0xfc, 0x2c, 0x1c, 0x44, 0x07, 0x53, 0x8f, 0xa4, 0x0f, + 0xb2, 0x5f, 0x99, 0x39, 0xd2, 0x83, 0xf8, 0xc7, 0xe6, 0x94, 0xb0, 0xfa, 0x69, 0xfe, 0xcf, 0x6a, + 0x50, 0x16, 0x1b, 0x1f, 0xfc, 0x19, 0x00, 0x00, 0xff, 0xff, 0x81, 0x4e, 0x37, 0x4f, 0x82, 0x0d, + 0x00, 0x00, } diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index 7bc64edae..4cc2468eb 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -118,49 +118,27 @@ message MetricDescriptor { // described by http://unitsofmeasure.org/ucum.html. string unit = 3; - // Type of the metric. It describes how the data is reported. - // - // A gauge is an instantaneous measurement of a value. - // - // A counter/cumulative measurement is a value accumulated over a time - // interval. In a time series, cumulative measurements should have the same - // start time, increasing values, until an event resets the cumulative value - // to zero and sets a new start time for the subsequent points. + // Type is the type of values a metric has. enum Type { - // Do not use this default value. - UNSPECIFIED = 0; - - // Integer gauge. The value can go both up and down over time. - // Corresponding values are stored in Int64DataPoint. - GAUGE_INT64 = 1; + // TYPE_INVALID is the default Type, it MUST not be used. + TYPE_INVALID = 0; - // Floating point gauge. The value can go both up and down over time. - // Corresponding values are stored in DoubleDataPoint. - GAUGE_DOUBLE = 2; - - // Histogram gauge measurement. - // Used in scenarios like a snapshot of time that current items in a queue - // have spent there. - // Corresponding values are stored in HistogramDataPoint. The count and sum of the - // histogram can go both up and down over time. Recorded values are always >= 0. - GAUGE_HISTOGRAM = 3; - - // Integer counter measurement. The value cannot decrease; if value is reset then - // start_time_unix_nano should also be reset. - // Corresponding values are stored in Int64DataPoint. - COUNTER_INT64 = 4; + // INT64 values are represents as signed 64-bit integers. + // + // A Metric of this Type MUST store its values as Int64DataPoint. + INT64 = 1; - // Floating point counter measurement. The value cannot decrease, if - // resets then the start_time_unix_nano should also be reset. - // Recorded values are always >= 0. - // Corresponding values are stored in DoubleDataPoint. - COUNTER_DOUBLE = 5; + // DOUBLE values are represents as double-precision floating-point + // numbers. + // + // A Metric of this Type MUST store its values as DoubleDataPoint. + DOUBLE = 2; // Histogram cumulative measurement. // Corresponding values are stored in HistogramDataPoint. The count and sum of the // histogram cannot decrease; if values are reset then start_time_unix_nano // should also be reset to the new start timestamp. - CUMULATIVE_HISTOGRAM = 6; + CUMULATIVE_HISTOGRAM = 3; // Summary value. Some frameworks implemented Histograms as a summary of observations // (usually things like request durations and response sizes). While it @@ -168,8 +146,10 @@ message MetricDescriptor { // values, it calculates configurable percentiles over a sliding time // window. // Corresponding values are stored in SummaryDataPoint. - SUMMARY = 7; + SUMMARY = 4; } + + // type is the type of values this metric has. Type type = 4; // Temporality is the temporal quality values of a metric have. It From ffc980930400c65c1276f7c9d638fe75300b7f4c Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Apr 2020 13:14:49 -0700 Subject: [PATCH 03/11] Decouple histogram from temporality --- gen/go/metrics/v1/metrics.pb.go | 160 +++++++++---------- opentelemetry/proto/metrics/v1/metrics.proto | 8 +- 2 files changed, 82 insertions(+), 86 deletions(-) diff --git a/gen/go/metrics/v1/metrics.pb.go b/gen/go/metrics/v1/metrics.pb.go index c9abfde9b..c415efafb 100644 --- a/gen/go/metrics/v1/metrics.pb.go +++ b/gen/go/metrics/v1/metrics.pb.go @@ -37,11 +37,9 @@ const ( // // A Metric of this Type MUST store its values as DoubleDataPoint. MetricDescriptor_DOUBLE MetricDescriptor_Type = 2 - // Histogram cumulative measurement. - // Corresponding values are stored in HistogramDataPoint. The count and sum of the - // histogram cannot decrease; if values are reset then start_time_unix_nano - // should also be reset to the new start timestamp. - MetricDescriptor_CUMULATIVE_HISTOGRAM MetricDescriptor_Type = 3 + // Histogram measurement. + // Corresponding values are stored in HistogramDataPoint. + MetricDescriptor_HISTOGRAM MetricDescriptor_Type = 3 // Summary value. Some frameworks implemented Histograms as a summary of observations // (usually things like request durations and response sizes). While it // also provides a total count of observations and a sum of all observed @@ -55,16 +53,16 @@ var MetricDescriptor_Type_name = map[int32]string{ 0: "TYPE_INVALID", 1: "INT64", 2: "DOUBLE", - 3: "CUMULATIVE_HISTOGRAM", + 3: "HISTOGRAM", 4: "SUMMARY", } var MetricDescriptor_Type_value = map[string]int32{ - "TYPE_INVALID": 0, - "INT64": 1, - "DOUBLE": 2, - "CUMULATIVE_HISTOGRAM": 3, - "SUMMARY": 4, + "TYPE_INVALID": 0, + "INT64": 1, + "DOUBLE": 2, + "HISTOGRAM": 3, + "SUMMARY": 4, } func (x MetricDescriptor_Type) String() string { @@ -1146,75 +1144,75 @@ func init() { } var fileDescriptor_3c3112f9fa006917 = []byte{ - // 1106 bytes of a gzipped FileDescriptorProto + // 1105 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x97, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0xc7, 0x71, 0x92, 0xa6, 0xed, 0xc9, 0xd2, 0x3a, 0xb3, 0x5f, 0xa6, 0xd2, 0x2e, 0x25, 0x42, - 0x50, 0x10, 0xeb, 0xd0, 0xb2, 0x2c, 0x5a, 0x04, 0x82, 0xa4, 0x31, 0xbb, 0x16, 0x89, 0x1d, 0x4d, - 0x9c, 0x8a, 0x5d, 0x69, 0xd7, 0x38, 0xc9, 0xd0, 0x8e, 0x88, 0xc7, 0x91, 0x3d, 0xae, 0x9a, 0x07, - 0xe0, 0x0d, 0x40, 0xf0, 0x40, 0xf0, 0x00, 0xbc, 0x01, 0x0f, 0xc0, 0x1d, 0x2f, 0x80, 0x3c, 0xb6, - 0x63, 0x27, 0x4d, 0x1b, 0x02, 0x37, 0xc0, 0xdd, 0xf8, 0xcc, 0xf9, 0xff, 0xce, 0xc7, 0x1c, 0x7f, - 0xc1, 0x7b, 0xde, 0x84, 0x30, 0x4e, 0xc6, 0xc4, 0x25, 0xdc, 0x9f, 0xd6, 0x27, 0xbe, 0xc7, 0xbd, - 0x7a, 0xb4, 0xa6, 0xc3, 0xa0, 0x7e, 0x7e, 0x98, 0x2e, 0x55, 0xb1, 0x81, 0xee, 0xcf, 0x79, 0xc7, - 0x46, 0x35, 0x75, 0x39, 0x3f, 0xdc, 0x7b, 0x77, 0x19, 0x6d, 0xe8, 0xb9, 0xae, 0xc7, 0x22, 0x58, - 0xbc, 0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0xe2, 0xf3, 0x0b, 0xca, 0x2f, 0x83, 0x6e, 0x78, 0x30, 0x95, 0x50, 0xba, 0x3f, 0xf9, + 0x7f, 0x99, 0x22, 0xed, 0x47, 0x7f, 0x33, 0x17, 0x84, 0x55, 0x2e, 0xd2, 0xbf, 0x53, 0xdd, 0xbc, + 0xd8, 0xf8, 0xf0, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x43, 0x9f, 0x75, 0xf3, 0x77, 0x0d, 0x00, + 0x00, } diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index 4cc2468eb..5da07161a 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -134,11 +134,9 @@ message MetricDescriptor { // A Metric of this Type MUST store its values as DoubleDataPoint. DOUBLE = 2; - // Histogram cumulative measurement. - // Corresponding values are stored in HistogramDataPoint. The count and sum of the - // histogram cannot decrease; if values are reset then start_time_unix_nano - // should also be reset to the new start timestamp. - CUMULATIVE_HISTOGRAM = 3; + // Histogram measurement. + // Corresponding values are stored in HistogramDataPoint. + HISTOGRAM = 3; // Summary value. Some frameworks implemented Histograms as a summary of observations // (usually things like request durations and response sizes). While it From a10b50690a49a9e4843038aff92e62edd8d4a39e Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Apr 2020 13:33:22 -0700 Subject: [PATCH 04/11] Feedback --- gen/go/metrics/v1/metrics.pb.go | 2 +- opentelemetry/proto/metrics/v1/metrics.proto | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/go/metrics/v1/metrics.pb.go b/gen/go/metrics/v1/metrics.pb.go index c415efafb..7addccf9f 100644 --- a/gen/go/metrics/v1/metrics.pb.go +++ b/gen/go/metrics/v1/metrics.pb.go @@ -95,7 +95,7 @@ const ( // previous measurements like is the case for CUMULATIVE metrics. // // For example, consider a system measuring the number of requests that - // it receives every second and reports the sum of these requests as a + // it receives and reports the sum of these requests every second as a // DELTA metric: // // 1. The system starts receiving at time=t_0. diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index 5da07161a..4f9213aea 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -172,7 +172,7 @@ message MetricDescriptor { // previous measurements like is the case for CUMULATIVE metrics. // // For example, consider a system measuring the number of requests that - // it receives every second and reports the sum of these requests as a + // it receives and reports the sum of these requests every second as a // DELTA metric: // // 1. The system starts receiving at time=t_0. From 7a379e271065e8be0fa5faf843421b6f304c60e9 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Apr 2020 13:34:38 -0700 Subject: [PATCH 05/11] Feedback Fix grammar. --- opentelemetry/proto/metrics/v1/metrics.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index 4f9213aea..a2380c961 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -199,7 +199,7 @@ message MetricDescriptor { // reported measurement time sent MUST be used. // // For example, consider a system measuring the number of requests that - // it receives every second and reports the sum of these requests as a + // it receives and reports the sum of these requests every second as a // CUMULATIVE metric: // // 1. The system starts receiving at time=t_0. From f9788b08c9d5285fc51ee65f151de21d06a18d7b Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Apr 2020 13:40:34 -0700 Subject: [PATCH 06/11] Feedback Update comments. --- gen/go/metrics/v1/metrics.pb.go | 10 +++++----- opentelemetry/proto/metrics/v1/metrics.proto | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gen/go/metrics/v1/metrics.pb.go b/gen/go/metrics/v1/metrics.pb.go index 7addccf9f..de5267fd1 100644 --- a/gen/go/metrics/v1/metrics.pb.go +++ b/gen/go/metrics/v1/metrics.pb.go @@ -121,7 +121,7 @@ const ( // reported measurement time sent MUST be used. // // For example, consider a system measuring the number of requests that - // it receives every second and reports the sum of these requests as a + // it receives and reports the sum of these requests every second as a // CUMULATIVE metric: // // 1. The system starts receiving at time=t_0. @@ -169,10 +169,10 @@ func (MetricDescriptor_Temporality) EnumDescriptor() ([]byte, []int) { // Monotonic is a refinement of the values a metric has. It defines the // relationship values of successively reported metrics have -// (non-increasing, non-decreasing, or unknown). This is a refinement of -// the metric values that can be useful for a receiver in understanding -// how to deal with discontinuities in the data (i.e. calculating -// derivates of the data without introducing artifacts from a reset). +// (non-decreasing or unknown). This is a refinement of the metric values +// that can be useful for a receiver in understanding how to deal with +// discontinuities in the data (i.e. calculating derivates of the data +// without introducing artifacts from a reset). type MetricDescriptor_Monotonic int32 const ( diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index a2380c961..de115fc42 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -228,10 +228,10 @@ message MetricDescriptor { // Monotonic is a refinement of the values a metric has. It defines the // relationship values of successively reported metrics have - // (non-increasing, non-decreasing, or unknown). This is a refinement of - // the metric values that can be useful for a receiver in understanding - // how to deal with discontinuities in the data (i.e. calculating - // derivates of the data without introducing artifacts from a reset). + // (non-decreasing or unknown). This is a refinement of the metric values + // that can be useful for a receiver in understanding how to deal with + // discontinuities in the data (i.e. calculating derivates of the data + // without introducing artifacts from a reset). enum Monotonic { // MONOTONIC_UNSPECIFIED is the default, and means the monotonic nature // of the metric values is unknown. From 32ea3e52278b9d99ec84f47dbf108424c72bd2f1 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Apr 2020 13:43:34 -0700 Subject: [PATCH 07/11] Update opentelemetry/proto/metrics/v1/metrics.proto Co-Authored-By: Tigran Najaryan <4194920+tigrannajaryan@users.noreply.github.com> --- opentelemetry/proto/metrics/v1/metrics.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index de115fc42..ed9bca632 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -227,7 +227,7 @@ message MetricDescriptor { Temporality temporality = 5; // Monotonic is a refinement of the values a metric has. It defines the - // relationship values of successively reported metrics have + // relationship between values of successively reported metrics // (non-decreasing or unknown). This is a refinement of the metric values // that can be useful for a receiver in understanding how to deal with // discontinuities in the data (i.e. calculating derivates of the data From 39478104d6bf533bdfd52f73b8841678cedf0e19 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Apr 2020 14:05:49 -0700 Subject: [PATCH 08/11] Feedback Run make. Remove errant space. --- gen/go/metrics/v1/metrics.pb.go | 4 ++-- opentelemetry/proto/metrics/v1/metrics.proto | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gen/go/metrics/v1/metrics.pb.go b/gen/go/metrics/v1/metrics.pb.go index de5267fd1..1ac687a95 100644 --- a/gen/go/metrics/v1/metrics.pb.go +++ b/gen/go/metrics/v1/metrics.pb.go @@ -168,10 +168,10 @@ func (MetricDescriptor_Temporality) EnumDescriptor() ([]byte, []int) { } // Monotonic is a refinement of the values a metric has. It defines the -// relationship values of successively reported metrics have +// relationship between values of successively reported metrics // (non-decreasing or unknown). This is a refinement of the metric values // that can be useful for a receiver in understanding how to deal with -// discontinuities in the data (i.e. calculating derivates of the data +// discontinuities in the data (i.e. calculating derivates of the data // without introducing artifacts from a reset). type MetricDescriptor_Monotonic int32 diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index ed9bca632..c7c4645ac 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -230,7 +230,7 @@ message MetricDescriptor { // relationship between values of successively reported metrics // (non-decreasing or unknown). This is a refinement of the metric values // that can be useful for a receiver in understanding how to deal with - // discontinuities in the data (i.e. calculating derivates of the data + // discontinuities in the data (i.e. calculating derivates of the data // without introducing artifacts from a reset). enum Monotonic { // MONOTONIC_UNSPECIFIED is the default, and means the monotonic nature From 02907c81cd4b1a427914eee66e16a5b0ee0dec0d Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Apr 2020 14:10:28 -0700 Subject: [PATCH 09/11] Feedback Add info about INSTANTANEOUS not having start timestamp. --- gen/go/metrics/v1/metrics.pb.go | 3 ++- opentelemetry/proto/metrics/v1/metrics.proto | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gen/go/metrics/v1/metrics.pb.go b/gen/go/metrics/v1/metrics.pb.go index 1ac687a95..0c772edbf 100644 --- a/gen/go/metrics/v1/metrics.pb.go +++ b/gen/go/metrics/v1/metrics.pb.go @@ -84,7 +84,8 @@ const ( MetricDescriptor_TEMPORALITY_INVALID MetricDescriptor_Temporality = 0 // INSTANTANEOUS is a metric whose values are measured at a particular // instant. The values are not aggregated over any time interval and are - // unique per timestamp. + // unique per timestamp. As such, these metrics are not expected to have + // an associated start time. MetricDescriptor_INSTANTANEOUS MetricDescriptor_Temporality = 1 // DELTA is a metric whose values are the aggregation of measurements // made over a time interval. Successive metrics contain aggregation of diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index c7c4645ac..47672e808 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -160,7 +160,8 @@ message MetricDescriptor { // INSTANTANEOUS is a metric whose values are measured at a particular // instant. The values are not aggregated over any time interval and are - // unique per timestamp. + // unique per timestamp. As such, these metrics are not expected to have + // an associated start time. INSTANTANEOUS = 1; // DELTA is a metric whose values are the aggregation of measurements From a9560bccb5c7bd96c185cd66547a4b511e0435d3 Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Apr 2020 15:11:56 -0700 Subject: [PATCH 10/11] Update default enums Use an enum name suffix instead of prefix for the default values. --- gen/go/metrics/v1/metrics.pb.go | 182 +++++++++---------- opentelemetry/proto/metrics/v1/metrics.proto | 16 +- 2 files changed, 99 insertions(+), 99 deletions(-) diff --git a/gen/go/metrics/v1/metrics.pb.go b/gen/go/metrics/v1/metrics.pb.go index 0c772edbf..32c3024de 100644 --- a/gen/go/metrics/v1/metrics.pb.go +++ b/gen/go/metrics/v1/metrics.pb.go @@ -26,8 +26,8 @@ const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package type MetricDescriptor_Type int32 const ( - // TYPE_INVALID is the default Type, it MUST not be used. - MetricDescriptor_TYPE_INVALID MetricDescriptor_Type = 0 + // INVALID_TYPE is the default Type, it MUST not be used. + MetricDescriptor_INVALID_TYPE MetricDescriptor_Type = 0 // INT64 values are represents as signed 64-bit integers. // // A Metric of this Type MUST store its values as Int64DataPoint. @@ -50,7 +50,7 @@ const ( ) var MetricDescriptor_Type_name = map[int32]string{ - 0: "TYPE_INVALID", + 0: "INVALID_TYPE", 1: "INT64", 2: "DOUBLE", 3: "HISTOGRAM", @@ -58,7 +58,7 @@ var MetricDescriptor_Type_name = map[int32]string{ } var MetricDescriptor_Type_value = map[string]int32{ - "TYPE_INVALID": 0, + "INVALID_TYPE": 0, "INT64": 1, "DOUBLE": 2, "HISTOGRAM": 3, @@ -79,9 +79,9 @@ func (MetricDescriptor_Type) EnumDescriptor() ([]byte, []int) { type MetricDescriptor_Temporality int32 const ( - // TEMPORALITY_INVALID is the default Temporality, it MUST not be + // INVALID_TEMPORALITY is the default Temporality, it MUST not be // used. - MetricDescriptor_TEMPORALITY_INVALID MetricDescriptor_Temporality = 0 + MetricDescriptor_INVALID_TEMPORALITY MetricDescriptor_Temporality = 0 // INSTANTANEOUS is a metric whose values are measured at a particular // instant. The values are not aggregated over any time interval and are // unique per timestamp. As such, these metrics are not expected to have @@ -147,14 +147,14 @@ const ( ) var MetricDescriptor_Temporality_name = map[int32]string{ - 0: "TEMPORALITY_INVALID", + 0: "INVALID_TEMPORALITY", 1: "INSTANTANEOUS", 2: "DELTA", 3: "CUMULATIVE", } var MetricDescriptor_Temporality_value = map[string]int32{ - "TEMPORALITY_INVALID": 0, + "INVALID_TEMPORALITY": 0, "INSTANTANEOUS": 1, "DELTA": 2, "CUMULATIVE": 3, @@ -177,21 +177,21 @@ func (MetricDescriptor_Temporality) EnumDescriptor() ([]byte, []int) { type MetricDescriptor_Monotonic int32 const ( - // MONOTONIC_UNSPECIFIED is the default, and means the monotonic nature + // UNSPECIFIED_MONOTONIC is the default, and means the monotonic nature // of the metric values is unknown. - MetricDescriptor_MONOTONIC_UNSPECIFIED MetricDescriptor_Monotonic = 0 + MetricDescriptor_UNSPECIFIED_MONOTONIC MetricDescriptor_Monotonic = 0 // NONDECREASING means all the successive metric values increase or // remain constant. MetricDescriptor_NONDECREASING MetricDescriptor_Monotonic = 1 ) var MetricDescriptor_Monotonic_name = map[int32]string{ - 0: "MONOTONIC_UNSPECIFIED", + 0: "UNSPECIFIED_MONOTONIC", 1: "NONDECREASING", } var MetricDescriptor_Monotonic_value = map[string]int32{ - "MONOTONIC_UNSPECIFIED": 0, + "UNSPECIFIED_MONOTONIC": 0, "NONDECREASING": 1, } @@ -208,20 +208,20 @@ func (MetricDescriptor_Monotonic) EnumDescriptor() ([]byte, []int) { type MetricDescriptor_Domain int32 const ( - // DOMAIN_UNSPECIFIED is the default, and means the metric values do + // UNSPECIFIED_DOMAIN is the default, and means the metric values do // not belong to any particular domain other than the Type itself. - MetricDescriptor_DOMAIN_UNSPECIFIED MetricDescriptor_Domain = 0 + MetricDescriptor_UNSPECIFIED_DOMAIN MetricDescriptor_Domain = 0 // NONNEGATIVE is the set of numbers greater than or equal to zero. MetricDescriptor_NONNEGATIVE MetricDescriptor_Domain = 1 ) var MetricDescriptor_Domain_name = map[int32]string{ - 0: "DOMAIN_UNSPECIFIED", + 0: "UNSPECIFIED_DOMAIN", 1: "NONNEGATIVE", } var MetricDescriptor_Domain_value = map[string]int32{ - "DOMAIN_UNSPECIFIED": 0, + "UNSPECIFIED_DOMAIN": 0, "NONNEGATIVE": 1, } @@ -534,28 +534,28 @@ func (m *MetricDescriptor) GetType() MetricDescriptor_Type { if m != nil { return m.Type } - return MetricDescriptor_TYPE_INVALID + return MetricDescriptor_INVALID_TYPE } func (m *MetricDescriptor) GetTemporality() MetricDescriptor_Temporality { if m != nil { return m.Temporality } - return MetricDescriptor_TEMPORALITY_INVALID + return MetricDescriptor_INVALID_TEMPORALITY } func (m *MetricDescriptor) GetMonotonic() MetricDescriptor_Monotonic { if m != nil { return m.Monotonic } - return MetricDescriptor_MONOTONIC_UNSPECIFIED + return MetricDescriptor_UNSPECIFIED_MONOTONIC } func (m *MetricDescriptor) GetDomain() MetricDescriptor_Domain { if m != nil { return m.Domain } - return MetricDescriptor_DOMAIN_UNSPECIFIED + return MetricDescriptor_UNSPECIFIED_DOMAIN } func (m *MetricDescriptor) GetLabels() []*v11.StringKeyValue { @@ -1145,75 +1145,75 @@ func init() { } var fileDescriptor_3c3112f9fa006917 = []byte{ - // 1105 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x97, 0xdd, 0x6e, 0xe3, 0x44, - 0x14, 0xc7, 0x71, 0x92, 0xa6, 0xed, 0x49, 0xb7, 0x75, 0xa6, 0xfb, 0x11, 0x2a, 0xed, 0x52, 0x22, - 0x04, 0x05, 0x51, 0x87, 0x96, 0x52, 0xb4, 0x08, 0x04, 0x49, 0x63, 0xba, 0xd6, 0x26, 0x76, 0x34, - 0x71, 0x2a, 0xba, 0xd2, 0xae, 0x71, 0x92, 0xa1, 0x1d, 0x11, 0x8f, 0x23, 0x7b, 0x5c, 0x35, 0x0f, - 0xc0, 0x0d, 0xd7, 0x48, 0xf0, 0x40, 0xf0, 0x00, 0xbc, 0x01, 0x0f, 0xc0, 0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 0xa2, 0xeb, 0x58, 0xac, 0xd1, 0x2e, 0x14, 0x92, 0x29, 0xa0, 0x2e, - 0x2b, 0x65, 0xc4, 0x56, 0xda, 0x14, 0xaa, 0x02, 0x46, 0x79, 0x29, 0x1b, 0xa9, 0xc2, 0x35, 0xd2, - 0x20, 0xc7, 0x47, 0x43, 0x52, 0xca, 0xed, 0x4a, 0x7b, 0x9b, 0xb7, 0x0c, 0xfb, 0x1d, 0x53, 0xa3, - 0x98, 0xa3, 0x21, 0xc1, 0x02, 0x81, 0x5e, 0x41, 0x81, 0x13, 0x67, 0xe8, 0x7a, 0xf6, 0x80, 0xf2, - 0x51, 0x69, 0x45, 0x10, 0x3f, 0x5d, 0x9e, 0x38, 0x61, 0xe0, 0x34, 0x10, 0x7d, 0x05, 0xeb, 0x8e, - 0xcb, 0x5c, 0xee, 0x32, 0xda, 0x2b, 0xe5, 0x05, 0xfd, 0x93, 0xa5, 0xe9, 0xcd, 0x84, 0x80, 0x27, - 0x30, 0x64, 0x40, 0xbe, 0xef, 0x3a, 0x36, 0x65, 0xa5, 0x55, 0x81, 0xfd, 0x78, 0x69, 0x6c, 0x5d, - 0xc8, 0x71, 0x8c, 0x41, 0x2a, 0xe4, 0x07, 0x76, 0x97, 0x0c, 0xfc, 0xd2, 0x9a, 0x98, 0x84, 0xfd, - 0x05, 0x0f, 0x91, 0x36, 0xf7, 0x28, 0xbb, 0x78, 0x4e, 0x46, 0x67, 0xf6, 0x20, 0x20, 0x38, 0x16, - 0x97, 0x9f, 0x43, 0x2e, 0xec, 0x2f, 0x92, 0x61, 0xc3, 0x3c, 0x6f, 0xa9, 0x96, 0xa6, 0x9f, 0x55, - 0x1b, 0x5a, 0x5d, 0x7e, 0x0d, 0xad, 0xc3, 0x8a, 0xa6, 0x9b, 0xc7, 0x47, 0xb2, 0x84, 0x00, 0xf2, - 0x75, 0xa3, 0x53, 0x6b, 0xa8, 0x72, 0x06, 0xdd, 0x83, 0xf5, 0x67, 0x5a, 0xdb, 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0xbe, 0x39, 0xff, 0x27, 0x33, 0xe7, - 0x42, 0x71, 0x48, 0xbc, 0x1e, 0x61, 0x9c, 0x0e, 0x88, 0x25, 0xba, 0x9c, 0x4c, 0x5f, 0x6d, 0xd9, - 0x8f, 0x09, 0x45, 0x54, 0x56, 0xe5, 0xad, 0x31, 0x10, 0xcb, 0x13, 0xb8, 0xd8, 0xf4, 0x77, 0x34, - 0x28, 0xde, 0x70, 0x43, 0x4f, 0x00, 0x26, 0x8e, 0xf1, 0x91, 0xa7, 0x2c, 0x93, 0x69, 0xc8, 0xa4, - 0xa6, 0xa1, 0xc6, 0xe1, 0x4d, 0xea, 0x2e, 0x48, 0xb2, 0xb6, 0x11, 0x7f, 0x77, 0xb7, 0xc2, 0x8d, - 0x96, 0xf4, 0xe2, 0xf3, 0x0b, 0xca, 0x2f, 0x83, 0x6e, 0x78, 0x30, 0x95, 0x50, 0xba, 0x3f, 0xf9, - 0x7f, 0x99, 0x22, 0xed, 0x47, 0x7f, 0x33, 0x17, 0x84, 0x55, 0x2e, 0xd2, 0xbf, 0x53, 0xdd, 0xbc, - 0xd8, 0xf8, 0xf0, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x43, 0x9f, 0x75, 0xf3, 0x77, 0x0d, 0x00, - 0x00, + // 1112 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x97, 0xdf, 0x6e, 0xe3, 0xc4, + 0x17, 0xc7, 0xd7, 0x49, 0x9a, 0xb6, 0x27, 0xbb, 0xad, 0x33, 0xfb, 0x2f, 0xbf, 0x4a, 0xbb, 0xbf, + 0x12, 0x21, 0x28, 0x88, 0x75, 0x68, 0x59, 0x8a, 0x16, 0x81, 0x20, 0x69, 0x4c, 0xd7, 0xda, 0xc4, + 0x8e, 0x26, 0x4e, 0x45, 0x57, 0xda, 0x35, 0x4e, 0x32, 0xb4, 0x23, 0xe2, 0x99, 0xc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28, 0xb8, 0x42, 0xb8, + 0xbd, 0xf3, 0xe8, 0x5b, 0x28, 0x79, 0xc5, 0xaf, 0x38, 0x12, 0x69, 0x42, 0xf9, 0xfb, 0x2c, 0xa8, + 0xf3, 0x6f, 0xce, 0xff, 0xc8, 0xcc, 0x71, 0x28, 0x0e, 0x89, 0xdf, 0x23, 0x4c, 0xd0, 0x01, 0x71, + 0x64, 0x97, 0x93, 0xe9, 0xab, 0xad, 0xfa, 0x31, 0xa1, 0xc9, 0xca, 0xaa, 0xa2, 0x35, 0x01, 0x62, + 0x75, 0x0a, 0x97, 0x9b, 0xc1, 0x8e, 0x01, 0xc5, 0x2b, 0x6e, 0xe8, 0x31, 0xc0, 0xd4, 0x71, 0x7c, + 0xe4, 0x29, 0xcb, 0x74, 0x1a, 0x32, 0xa9, 0x69, 0xa8, 0x09, 0x78, 0x83, 0xf2, 0x25, 0x49, 0xd6, + 0x6e, 0x8f, 0xbf, 0xbb, 0x5b, 0xd1, 0x46, 0x4b, 0x79, 0xf9, 0xd9, 0x19, 0x15, 0xe7, 0x61, 0x37, + 0x3a, 0x98, 0x4a, 0x24, 0x7d, 0x32, 0xfd, 0x7f, 0x99, 0x21, 0x3d, 0x89, 0xff, 0x66, 0xce, 0x08, + 0xab, 0x9c, 0xa5, 0x7f, 0xa7, 0xba, 0x79, 0xb9, 0xf1, 0xc1, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, + 0x29, 0x52, 0x5f, 0x12, 0x77, 0x0d, 0x00, 0x00, } diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index 47672e808..34cd03f7d 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -120,8 +120,8 @@ message MetricDescriptor { // Type is the type of values a metric has. enum Type { - // TYPE_INVALID is the default Type, it MUST not be used. - TYPE_INVALID = 0; + // INVALID_TYPE is the default Type, it MUST not be used. + INVALID_TYPE = 0; // INT64 values are represents as signed 64-bit integers. // @@ -154,9 +154,9 @@ message MetricDescriptor { // describes how those values relate to the time interval over which they // are reported. enum Temporality { - // TEMPORALITY_INVALID is the default Temporality, it MUST not be + // INVALID_TEMPORALITY is the default Temporality, it MUST not be // used. - TEMPORALITY_INVALID = 0; + INVALID_TEMPORALITY = 0; // INSTANTANEOUS is a metric whose values are measured at a particular // instant. The values are not aggregated over any time interval and are @@ -234,9 +234,9 @@ message MetricDescriptor { // discontinuities in the data (i.e. calculating derivates of the data // without introducing artifacts from a reset). enum Monotonic { - // MONOTONIC_UNSPECIFIED is the default, and means the monotonic nature + // UNSPECIFIED_MONOTONIC is the default, and means the monotonic nature // of the metric values is unknown. - MONOTONIC_UNSPECIFIED = 0; + UNSPECIFIED_MONOTONIC = 0; // NONDECREASING means all the successive metric values increase or // remain constant. @@ -249,9 +249,9 @@ message MetricDescriptor { // Domain is a refinement of the values a metric has. It describes the set // of numbers metric values belong to, if any. enum Domain { - // DOMAIN_UNSPECIFIED is the default, and means the metric values do + // UNSPECIFIED_DOMAIN is the default, and means the metric values do // not belong to any particular domain other than the Type itself. - DOMAIN_UNSPECIFIED = 0; + UNSPECIFIED_DOMAIN = 0; // NONNEGATIVE is the set of numbers greater than or equal to zero. NONNEGATIVE = 1; From 0c7042f5b4adfbc7bcac42833a518cd25ff35abd Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Fri, 24 Apr 2020 15:55:02 -0700 Subject: [PATCH 11/11] Remove refinements --- gen/go/metrics/v1/metrics.pb.go | 222 ++++++------------- opentelemetry/proto/metrics/v1/metrics.proto | 35 +-- 2 files changed, 66 insertions(+), 191 deletions(-) diff --git a/gen/go/metrics/v1/metrics.pb.go b/gen/go/metrics/v1/metrics.pb.go index 32c3024de..a5fa21eba 100644 --- a/gen/go/metrics/v1/metrics.pb.go +++ b/gen/go/metrics/v1/metrics.pb.go @@ -168,71 +168,6 @@ func (MetricDescriptor_Temporality) EnumDescriptor() ([]byte, []int) { return fileDescriptor_3c3112f9fa006917, []int{3, 1} } -// Monotonic is a refinement of the values a metric has. It defines the -// relationship between values of successively reported metrics -// (non-decreasing or unknown). This is a refinement of the metric values -// that can be useful for a receiver in understanding how to deal with -// discontinuities in the data (i.e. calculating derivates of the data -// without introducing artifacts from a reset). -type MetricDescriptor_Monotonic int32 - -const ( - // UNSPECIFIED_MONOTONIC is the default, and means the monotonic nature - // of the metric values is unknown. - MetricDescriptor_UNSPECIFIED_MONOTONIC MetricDescriptor_Monotonic = 0 - // NONDECREASING means all the successive metric values increase or - // remain constant. - MetricDescriptor_NONDECREASING MetricDescriptor_Monotonic = 1 -) - -var MetricDescriptor_Monotonic_name = map[int32]string{ - 0: "UNSPECIFIED_MONOTONIC", - 1: "NONDECREASING", -} - -var MetricDescriptor_Monotonic_value = map[string]int32{ - "UNSPECIFIED_MONOTONIC": 0, - "NONDECREASING": 1, -} - -func (x MetricDescriptor_Monotonic) String() string { - return proto.EnumName(MetricDescriptor_Monotonic_name, int32(x)) -} - -func (MetricDescriptor_Monotonic) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{3, 2} -} - -// Domain is a refinement of the values a metric has. It describes the set -// of numbers metric values belong to, if any. -type MetricDescriptor_Domain int32 - -const ( - // UNSPECIFIED_DOMAIN is the default, and means the metric values do - // not belong to any particular domain other than the Type itself. - MetricDescriptor_UNSPECIFIED_DOMAIN MetricDescriptor_Domain = 0 - // NONNEGATIVE is the set of numbers greater than or equal to zero. - MetricDescriptor_NONNEGATIVE MetricDescriptor_Domain = 1 -) - -var MetricDescriptor_Domain_name = map[int32]string{ - 0: "UNSPECIFIED_DOMAIN", - 1: "NONNEGATIVE", -} - -var MetricDescriptor_Domain_value = map[string]int32{ - "UNSPECIFIED_DOMAIN": 0, - "NONNEGATIVE": 1, -} - -func (x MetricDescriptor_Domain) String() string { - return proto.EnumName(MetricDescriptor_Domain_name, int32(x)) -} - -func (MetricDescriptor_Domain) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_3c3112f9fa006917, []int{3, 3} -} - // A collection of InstrumentationLibraryMetrics from a Resource. type ResourceMetrics struct { // The resource for the metrics in this message. @@ -472,13 +407,9 @@ type MetricDescriptor struct { Type MetricDescriptor_Type `protobuf:"varint,4,opt,name=type,proto3,enum=opentelemetry.proto.metrics.v1.MetricDescriptor_Type" json:"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"` - // monotonic describes the Monotonic refinement of values this metric has. - Monotonic MetricDescriptor_Monotonic `protobuf:"varint,6,opt,name=monotonic,proto3,enum=opentelemetry.proto.metrics.v1.MetricDescriptor_Monotonic" json:"monotonic,omitempty"` - // domain describes the Domain refinement of values this metric has. - Domain MetricDescriptor_Domain `protobuf:"varint,7,opt,name=domain,proto3,enum=opentelemetry.proto.metrics.v1.MetricDescriptor_Domain" json:"domain,omitempty"` // The set of labels associated with the metric descriptor. Labels in this list apply to // all data points. - Labels []*v11.StringKeyValue `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty"` + Labels []*v11.StringKeyValue `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` @@ -544,20 +475,6 @@ func (m *MetricDescriptor) GetTemporality() MetricDescriptor_Temporality { return MetricDescriptor_INVALID_TEMPORALITY } -func (m *MetricDescriptor) GetMonotonic() MetricDescriptor_Monotonic { - if m != nil { - return m.Monotonic - } - return MetricDescriptor_UNSPECIFIED_MONOTONIC -} - -func (m *MetricDescriptor) GetDomain() MetricDescriptor_Domain { - if m != nil { - return m.Domain - } - return MetricDescriptor_UNSPECIFIED_DOMAIN -} - func (m *MetricDescriptor) GetLabels() []*v11.StringKeyValue { if m != nil { return m.Labels @@ -1125,8 +1042,6 @@ func (m *SummaryDataPoint_ValueAtPercentile) GetValue() float64 { func init() { proto.RegisterEnum("opentelemetry.proto.metrics.v1.MetricDescriptor_Type", MetricDescriptor_Type_name, MetricDescriptor_Type_value) proto.RegisterEnum("opentelemetry.proto.metrics.v1.MetricDescriptor_Temporality", MetricDescriptor_Temporality_name, MetricDescriptor_Temporality_value) - proto.RegisterEnum("opentelemetry.proto.metrics.v1.MetricDescriptor_Monotonic", MetricDescriptor_Monotonic_name, MetricDescriptor_Monotonic_value) - proto.RegisterEnum("opentelemetry.proto.metrics.v1.MetricDescriptor_Domain", MetricDescriptor_Domain_name, MetricDescriptor_Domain_value) proto.RegisterType((*ResourceMetrics)(nil), "opentelemetry.proto.metrics.v1.ResourceMetrics") proto.RegisterType((*InstrumentationLibraryMetrics)(nil), "opentelemetry.proto.metrics.v1.InstrumentationLibraryMetrics") proto.RegisterType((*Metric)(nil), "opentelemetry.proto.metrics.v1.Metric") @@ -1145,75 +1060,68 @@ func init() { } var fileDescriptor_3c3112f9fa006917 = []byte{ - // 1112 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x97, 0xdf, 0x6e, 0xe3, 0xc4, - 0x17, 0xc7, 0xd7, 0x49, 0x9a, 0xb6, 0x27, 0xbb, 0xad, 0x33, 0xfb, 0x2f, 0xbf, 0x4a, 0xbb, 0xbf, - 0x12, 0x21, 0x28, 0x88, 0x75, 0x68, 0x59, 0x8a, 0x16, 0x81, 0x20, 0x69, 0x4c, 0xd7, 0xda, 0xc4, - 0x8e, 0x26, 0x4e, 0x45, 0x57, 0xda, 0x35, 0x4e, 0x32, 0xb4, 0x23, 0xe2, 0x99, 0xc8, 0x1e, 0x57, - 0xcd, 0x03, 0x70, 0xc3, 0x35, 0x12, 0x3c, 0x10, 0x3c, 0x00, 0x6f, 0xc0, 0x03, 0x70, 0xc7, 0x0b, - 0x20, 0x8f, 0xe3, 0xc4, 0x49, 0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0xe1, 0x07, 0x8b, 0x13, 0x43, - 0x9f, 0xc3, 0xfa, 0x6c, 0x03, 0xde, 0x5a, 0xd6, 0x80, 0x38, 0x53, 0x9c, 0xc8, 0xca, 0xbf, 0x65, - 0x21, 0x1f, 0xdb, 0xd0, 0x2b, 0x28, 0xc6, 0x56, 0xa7, 0x4f, 0x82, 0x9e, 0x4f, 0x87, 0x82, 0xfb, - 0xe3, 0xb4, 0xdf, 0xff, 0x73, 0xd8, 0xfa, 0x44, 0x87, 0x55, 0x6f, 0xce, 0x82, 0x5e, 0x42, 0x91, - 0x32, 0x71, 0xf8, 0xd4, 0xe9, 0xbb, 0xc2, 0x75, 0x86, 0x9c, 0x32, 0x91, 0x64, 0xad, 0x2d, 0x3f, - 0x36, 0x71, 0xf8, 0xb4, 0xee, 0x0a, 0xb7, 0x15, 0xc9, 0xf0, 0x36, 0x9d, 0xb9, 0x0e, 0xd0, 0x2b, - 0x40, 0x7d, 0x1e, 0x76, 0x07, 0x64, 0x06, 0x9e, 0x95, 0xf0, 0xca, 0x32, 0x78, 0x5d, 0x2a, 0xa7, - 0x74, 0xb5, 0x3f, 0x6b, 0x08, 0xd0, 0xd7, 0x70, 0xff, 0x9c, 0x06, 0x82, 0x9f, 0xf9, 0xae, 0x37, - 0x13, 0x21, 0x27, 0x23, 0x1c, 0x2c, 0x8b, 0xf0, 0x3c, 0x11, 0x4f, 0x83, 0xdc, 0x3d, 0xbf, 0x62, - 0x0b, 0xd0, 0x57, 0x70, 0x37, 0x08, 0x3d, 0x2f, 0x9a, 0xeb, 0x74, 0x94, 0x35, 0x19, 0x65, 0xe9, - 0x19, 0xb4, 0x63, 0xe9, 0x34, 0x46, 0x31, 0x98, 0xb3, 0x04, 0xe5, 0xef, 0xf2, 0xa0, 0xce, 0x9f, - 0x15, 0x42, 0x90, 0x63, 0xae, 0x17, 0xdf, 0xa2, 0x9b, 0x58, 0xae, 0xd1, 0x2e, 0x14, 0x92, 0x29, - 0xa0, 0x9c, 0x95, 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 0xc8, 0xcc, 0x71, 0x28, 0x0e, 0x89, 0xdf, 0x23, 0x4c, 0xd0, 0x01, 0x71, - 0x64, 0x97, 0x93, 0xe9, 0xab, 0xad, 0xfa, 0x31, 0xa1, 0xc9, 0xca, 0xaa, 0xa2, 0x35, 0x01, 0x62, - 0x75, 0x0a, 0x97, 0x9b, 0xc1, 0x8e, 0x01, 0xc5, 0x2b, 0x6e, 0xe8, 0x31, 0xc0, 0xd4, 0x71, 0x7c, - 0xe4, 0x29, 0xcb, 0x74, 0x1a, 0x32, 0xa9, 0x69, 0xa8, 0x09, 0x78, 0x83, 0xf2, 0x25, 0x49, 0xd6, - 0x6e, 0x8f, 0xbf, 0xbb, 0x5b, 0xd1, 0x46, 0x4b, 0x79, 0xf9, 0xd9, 0x19, 0x15, 0xe7, 0x61, 0x37, - 0x3a, 0x98, 0x4a, 0x24, 0x7d, 0x32, 0xfd, 0x7f, 0x99, 0x21, 0x3d, 0x89, 0xff, 0x66, 0xce, 0x08, - 0xab, 0x9c, 0xa5, 0x7f, 0xa7, 0xba, 0x79, 0xb9, 0xf1, 0xc1, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, - 0x29, 0x52, 0x5f, 0x12, 0x77, 0x0d, 0x00, 0x00, + // 994 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, 0xba, 0xb0, 0x51, 0xa5, 0x5d, 0x42, 0x84, + 0xa0, 0x20, 0xea, 0xd0, 0x52, 0x2a, 0x21, 0x81, 0x20, 0x21, 0x11, 0x6b, 0x6d, 0xfe, 0x34, 0x71, + 0x2a, 0x75, 0xa5, 0x5d, 0xe3, 0x24, 0x43, 0x3a, 0xc2, 0x1e, 0x5b, 0xf6, 0xb8, 0x6a, 0x1e, 0x80, + 0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, 0xc3, + 0xa8, 0x20, 0x0c, 0x1f, 0xff, 0x15, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x78, 0x81, 0x13, 0x5e, 0x0c, + 0x00, 0x00, } diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index 34cd03f7d..46e56de6e 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -227,42 +227,9 @@ message MetricDescriptor { // temporality is the Temporality of values this metric has. Temporality temporality = 5; - // Monotonic is a refinement of the values a metric has. It defines the - // relationship between values of successively reported metrics - // (non-decreasing or unknown). This is a refinement of the metric values - // that can be useful for a receiver in understanding how to deal with - // discontinuities in the data (i.e. calculating derivates of the data - // without introducing artifacts from a reset). - enum Monotonic { - // UNSPECIFIED_MONOTONIC is the default, and means the monotonic nature - // of the metric values is unknown. - UNSPECIFIED_MONOTONIC = 0; - - // NONDECREASING means all the successive metric values increase or - // remain constant. - NONDECREASING = 1; - } - - // monotonic describes the Monotonic refinement of values this metric has. - Monotonic monotonic = 6; - - // Domain is a refinement of the values a metric has. It describes the set - // of numbers metric values belong to, if any. - enum Domain { - // UNSPECIFIED_DOMAIN is the default, and means the metric values do - // not belong to any particular domain other than the Type itself. - UNSPECIFIED_DOMAIN = 0; - - // NONNEGATIVE is the set of numbers greater than or equal to zero. - NONNEGATIVE = 1; - } - - // domain describes the Domain refinement of values this metric has. - Domain domain = 7; - // The set of labels associated with the metric descriptor. Labels in this list apply to // all data points. - repeated opentelemetry.proto.common.v1.StringKeyValue labels = 8; + repeated opentelemetry.proto.common.v1.StringKeyValue labels = 6; } // Int64DataPoint is a single data point in a timeseries that describes the time-varying