diff --git a/gen/go/agent/traces/v1/trace_service.pb.go b/gen/go/agent/traces/v1/trace_service.pb.go index 9b1b3e819..05fa8fa35 100644 --- a/gen/go/agent/traces/v1/trace_service.pb.go +++ b/gen/go/agent/traces/v1/trace_service.pb.go @@ -74,9 +74,8 @@ func (m *ExportTraceServiceRequest) GetResourceSpans() []*ResourceSpans { type ResourceSpans struct { // A list of Spans that originate from a resource. Spans []*v1.Span `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"` - // The resource for the spans in this message that do not have an explicit - // Span.resource field set. If neither this field nor Span.resource are set then no - // resource info is known. + // The resource for the spans in this message. + // If this field is not set then no resource info is known. Resource *v11.Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` diff --git a/gen/go/metrics/v1/metrics.pb.go b/gen/go/metrics/v1/metrics.pb.go index c9a5b576a..b9e0f4914 100644 --- a/gen/go/metrics/v1/metrics.pb.go +++ b/gen/go/metrics/v1/metrics.pb.go @@ -35,28 +35,28 @@ 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 Int64TimeSeries. + // 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 DoubleTimeSeries. + // 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 HistogramTimeSeries. The count and sum of the + // 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 // CounterInt64Value.start_time_unixnano should also be reset. - // Corresponding values are stored in Int64TimeSeries. + // Corresponding values are stored in Int64DataPoint. MetricDescriptor_COUNTER_INT64 MetricDescriptor_Type = 4 // Floating point counter measurement. The value cannot decrease, if // resets then the CounterDoubleValue.start_time_unixnano should also be reset. // Recorded values are always >= 0. - // Corresponding values are stored in DoubleTimeSeries. + // Corresponding values are stored in DoubleDataPoint. MetricDescriptor_COUNTER_DOUBLE MetricDescriptor_Type = 5 // Histogram cumulative measurement. - // Corresponding values are stored in HistogramTimeSeries. The count and sum of the + // Corresponding values are stored in HistogramDataPoint. The count and sum of the // histogram cannot decrease; if values are reset then HistogramValue.start_time_unixnano // should also be reset to the new start timestamp. MetricDescriptor_CUMULATIVE_HISTOGRAM MetricDescriptor_Type = 6 @@ -65,7 +65,7 @@ const ( // 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 SummaryTimeSeries. + // Corresponding values are stored in SummaryDataPoint. MetricDescriptor_SUMMARY MetricDescriptor_Type = 7 ) @@ -103,11 +103,10 @@ func (MetricDescriptor_Type) EnumDescriptor() ([]byte, []int) { // // The data model and relation between entities is shown in the diagram below. // -// - Metric is composed of a Resource, a MetricDescriptor and a TimeSeriesList data. +// - Metric is composed of a Resource, a MetricDescriptor and a list of data points. // - MetricDescriptor contains a list of label keys (shown horizontally). -// - TimeSeriesList is composed of a list of TimeSeries (shown vertically). -// - TimeSeries contains a list of label values and a list of metric values (shown -// horizontally). +// - Data is a list of DataPoints (shown vertically). +// - DataPoint contains a list of label values and a value. // // Metric // +----------+ +--------+ @@ -122,48 +121,48 @@ func (MetricDescriptor_Type) EnumDescriptor() ([]byte, []int) { // +----------+ | |+-----+-----+ +-----+ | // | +------------------------+ // | -// | +------------------------------+ -// | |TimeSeries 1 | -// v |+-----+-----+ +-----+ | -// +-----+ ||label|label|...|label| | -// | 1 |-->|+-----+-----+ +-----+ | -// +-----+ |+-----+-----+-----+ +-----+ | -// | . | ||value|value|value|...|value| | -// | . | |+-----+-----+-----+ +-----+ | -// | . | +------------------------------+ +// | +------------------------+ +// | |DataPoint 1 | +// v |+-----+-----+ +-----+ | +// +-----+ ||label|label|...|label| | +// | 1 |-->|+-----+-----+ +-----+ | +// +-----+ |+-----+ | +// | . | ||value| | +// | . | |+-----+ | +// | . | +------------------------+ // | . | . // | . | . // | . | . -// | . | +-----------------------------------+ -// | . | |TimeSeries N | -// +-----+ |+-----+-----+ +-----+ | -// | N |-->||label|label|...|label| | -// +-----+ |+-----+-----+ +-----+ | -// |+-----+-----+-----+-----+ +-----+| -// ||value|value|value|value|...|value|| -// |+-----+-----+-----+-----+ +-----+| -// +-----------------------------------+ +// | . | +------------------------+ +// | . | |DataPoint M | +// +-----+ |+-----+-----+ +-----+ | +// | M |-->||label|label|...|label| | +// +-----+ |+-----+-----+ +-----+ | +// |+-----+ | +// ||value| | +// |+-----+ | +// +------------------------+ // //----------------------------------------------------------------------- -// TimeSeries contain an array of values, each value corresponding to a given moment in -// time. Each element of TimeSeries array is timestamped. +// DataPoint is a value of specific type corresponding to a given moment in +// time. Each DataPoint is timestamped. // -// TimeSeries are strongly typed: the element of a TimeSeries array has -// a specific ProtoBuf message depending on the value type of the metric and thus -// there are currently 4 TimeSeries messages, which correspond to the types of metric values. +// DataPoint is strongly typed: each DataPoint type has a specific Protobuf message +// depending on the value type of the metric and thus there are currently 4 DataPoint +// messages, which correspond to the types of metric values. 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 TimeSeries for a single metric, where each timeseries has - // one or more points. Only one of the following fields is used for the data, depending on - // the type of the metric defined by MetricDescriptor.type field. - Int64Timeseries []*Int64TimeSeries `protobuf:"bytes,2,rep,name=int64_timeseries,json=int64Timeseries,proto3" json:"int64_timeseries,omitempty"` - DoubleTimeseries []*DoubleTimeSeries `protobuf:"bytes,3,rep,name=double_timeseries,json=doubleTimeseries,proto3" json:"double_timeseries,omitempty"` - HistogramTimeseries []*HistogramTimeSeries `protobuf:"bytes,4,rep,name=histogram_timeseries,json=histogramTimeseries,proto3" json:"histogram_timeseries,omitempty"` - SummaryTimeseries []*SummaryTimeSeries `protobuf:"bytes,5,rep,name=summary_timeseries,json=summaryTimeseries,proto3" json:"summary_timeseries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // 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_datapoints,json=int64Datapoints,proto3" json:"int64_datapoints,omitempty"` + DoubleDatapoints []*DoubleDataPoint `protobuf:"bytes,3,rep,name=double_datapoints,json=doubleDatapoints,proto3" json:"double_datapoints,omitempty"` + HistogramDatapoints []*HistogramDataPoint `protobuf:"bytes,4,rep,name=histogram_datapoints,json=histogramDatapoints,proto3" json:"histogram_datapoints,omitempty"` + SummaryDatapoints []*SummaryDataPoint `protobuf:"bytes,5,rep,name=summary_datapoints,json=summaryDatapoints,proto3" json:"summary_datapoints,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Metric) Reset() { *m = Metric{} } @@ -198,30 +197,30 @@ func (m *Metric) GetMetricDescriptor() *MetricDescriptor { return nil } -func (m *Metric) GetInt64Timeseries() []*Int64TimeSeries { +func (m *Metric) GetInt64Datapoints() []*Int64DataPoint { if m != nil { - return m.Int64Timeseries + return m.Int64Datapoints } return nil } -func (m *Metric) GetDoubleTimeseries() []*DoubleTimeSeries { +func (m *Metric) GetDoubleDatapoints() []*DoubleDataPoint { if m != nil { - return m.DoubleTimeseries + return m.DoubleDatapoints } return nil } -func (m *Metric) GetHistogramTimeseries() []*HistogramTimeSeries { +func (m *Metric) GetHistogramDatapoints() []*HistogramDataPoint { if m != nil { - return m.HistogramTimeseries + return m.HistogramDatapoints } return nil } -func (m *Metric) GetSummaryTimeseries() []*SummaryTimeSeries { +func (m *Metric) GetSummaryDatapoints() []*SummaryDataPoint { if m != nil { - return m.SummaryTimeseries + return m.SummaryDatapoints } return nil } @@ -304,174 +303,174 @@ func (m *MetricDescriptor) GetLabelKeys() []string { return nil } -// Int64TimeSeries is a list of data points that describes the time-varying values -// of a int64 metric. -type Int64TimeSeries struct { - // The set of label values that uniquely identify this timeseries. Applies to - // all points. The order of label values must match that of label keys in the - // metric descriptor. Each element in this array is the value of the key defined at the - // corresponding index of MetricDescriptor.label_keys array. The number of elements - // in this array and MetricDescriptor.label_keys array must be the same. +// 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 label values that uniquely identify this timeseries. The order of label + // values must match that of label keys in the metric descriptor. Each element in this + // array is the value of the key defined at the corresponding index of + // MetricDescriptor.label_keys array. The number of elements in this array and + // MetricDescriptor.label_keys array must be the same. LabelValues []string `protobuf:"bytes,1,rep,name=label_values,json=labelValues,proto3" json:"label_values,omitempty"` - // The data points of this timeseries. - Points []*Int64Value `protobuf:"bytes,2,rep,name=points,proto3" json:"points,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // The value of data point. + Value *Int64Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *Int64TimeSeries) Reset() { *m = Int64TimeSeries{} } -func (m *Int64TimeSeries) String() string { return proto.CompactTextString(m) } -func (*Int64TimeSeries) ProtoMessage() {} -func (*Int64TimeSeries) Descriptor() ([]byte, []int) { +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{2} } -func (m *Int64TimeSeries) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Int64TimeSeries.Unmarshal(m, b) +func (m *Int64DataPoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_Int64DataPoint.Unmarshal(m, b) } -func (m *Int64TimeSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Int64TimeSeries.Marshal(b, m, deterministic) +func (m *Int64DataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_Int64DataPoint.Marshal(b, m, deterministic) } -func (m *Int64TimeSeries) XXX_Merge(src proto.Message) { - xxx_messageInfo_Int64TimeSeries.Merge(m, src) +func (m *Int64DataPoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_Int64DataPoint.Merge(m, src) } -func (m *Int64TimeSeries) XXX_Size() int { - return xxx_messageInfo_Int64TimeSeries.Size(m) +func (m *Int64DataPoint) XXX_Size() int { + return xxx_messageInfo_Int64DataPoint.Size(m) } -func (m *Int64TimeSeries) XXX_DiscardUnknown() { - xxx_messageInfo_Int64TimeSeries.DiscardUnknown(m) +func (m *Int64DataPoint) XXX_DiscardUnknown() { + xxx_messageInfo_Int64DataPoint.DiscardUnknown(m) } -var xxx_messageInfo_Int64TimeSeries proto.InternalMessageInfo +var xxx_messageInfo_Int64DataPoint proto.InternalMessageInfo -func (m *Int64TimeSeries) GetLabelValues() []string { +func (m *Int64DataPoint) GetLabelValues() []string { if m != nil { return m.LabelValues } return nil } -func (m *Int64TimeSeries) GetPoints() []*Int64Value { +func (m *Int64DataPoint) GetValue() *Int64Value { if m != nil { - return m.Points + return m.Value } return nil } -// DoubleTimeSeries is a list of data points that describes the time-varying values -// of a double metric. -type DoubleTimeSeries struct { - // The set of label values that uniquely identify this timeseries. Applies to - // all points. The order of label values must match that of label keys in the - // metric descriptor. Each element in this array is the value of the key defined at the - // corresponding index of MetricDescriptor.label_keys array. The number of elements - // in this array and MetricDescriptor.label_keys array must be the same. +// 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 label values that uniquely identify this timeseries. The order of label + // values must match that of label keys in the metric descriptor. Each element in this + // array is the value of the key defined at the corresponding index of + // MetricDescriptor.label_keys array. The number of elements in this array and + // MetricDescriptor.label_keys array must be the same. LabelValues []string `protobuf:"bytes,1,rep,name=label_values,json=labelValues,proto3" json:"label_values,omitempty"` - // The data points of this timeseries. - Points []*DoubleValue `protobuf:"bytes,2,rep,name=points,proto3" json:"points,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // The value of data point. + Value *DoubleValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *DoubleTimeSeries) Reset() { *m = DoubleTimeSeries{} } -func (m *DoubleTimeSeries) String() string { return proto.CompactTextString(m) } -func (*DoubleTimeSeries) ProtoMessage() {} -func (*DoubleTimeSeries) Descriptor() ([]byte, []int) { +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{3} } -func (m *DoubleTimeSeries) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DoubleTimeSeries.Unmarshal(m, b) +func (m *DoubleDataPoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DoubleDataPoint.Unmarshal(m, b) } -func (m *DoubleTimeSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DoubleTimeSeries.Marshal(b, m, deterministic) +func (m *DoubleDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DoubleDataPoint.Marshal(b, m, deterministic) } -func (m *DoubleTimeSeries) XXX_Merge(src proto.Message) { - xxx_messageInfo_DoubleTimeSeries.Merge(m, src) +func (m *DoubleDataPoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_DoubleDataPoint.Merge(m, src) } -func (m *DoubleTimeSeries) XXX_Size() int { - return xxx_messageInfo_DoubleTimeSeries.Size(m) +func (m *DoubleDataPoint) XXX_Size() int { + return xxx_messageInfo_DoubleDataPoint.Size(m) } -func (m *DoubleTimeSeries) XXX_DiscardUnknown() { - xxx_messageInfo_DoubleTimeSeries.DiscardUnknown(m) +func (m *DoubleDataPoint) XXX_DiscardUnknown() { + xxx_messageInfo_DoubleDataPoint.DiscardUnknown(m) } -var xxx_messageInfo_DoubleTimeSeries proto.InternalMessageInfo +var xxx_messageInfo_DoubleDataPoint proto.InternalMessageInfo -func (m *DoubleTimeSeries) GetLabelValues() []string { +func (m *DoubleDataPoint) GetLabelValues() []string { if m != nil { return m.LabelValues } return nil } -func (m *DoubleTimeSeries) GetPoints() []*DoubleValue { +func (m *DoubleDataPoint) GetValue() *DoubleValue { if m != nil { - return m.Points + return m.Value } return nil } -// HistogramTimeSeries is a list of data points that describes the time-varying values -// of a Histogram. -type HistogramTimeSeries struct { - // The set of label values that uniquely identify this timeseries. Applies to - // all points. The order of label values must match that of label keys in the - // metric descriptor. Each element in this array is the value of the key defined at the - // corresponding index of MetricDescriptor.label_keys array. The number of elements - // in this array and MetricDescriptor.label_keys array must be the same. +// HistogramDataPoint is a single data point in a timeseries that describes the time-varying +// values of a Histogram. +type HistogramDataPoint struct { + // The set of label values that uniquely identify this timeseries. The order of label + // values must match that of label keys in the metric descriptor. Each element in this + // array is the value of the key defined at the corresponding index of + // MetricDescriptor.label_keys array. The number of elements in this array and + // MetricDescriptor.label_keys array must be the same. LabelValues []string `protobuf:"bytes,1,rep,name=label_values,json=labelValues,proto3" json:"label_values,omitempty"` - // The data points of this timeseries. - Points []*HistogramValue `protobuf:"bytes,2,rep,name=points,proto3" json:"points,omitempty"` + // The value of data point. + Value *HistogramValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // explicit_bounds is the only supported bucket option currently. - ExplicitBounds *HistogramTimeSeries_ExplicitBounds `protobuf:"bytes,3,opt,name=explicit_bounds,json=explicitBounds,proto3" json:"explicit_bounds,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + ExplicitBounds *HistogramDataPoint_ExplicitBounds `protobuf:"bytes,3,opt,name=explicit_bounds,json=explicitBounds,proto3" json:"explicit_bounds,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *HistogramTimeSeries) Reset() { *m = HistogramTimeSeries{} } -func (m *HistogramTimeSeries) String() string { return proto.CompactTextString(m) } -func (*HistogramTimeSeries) ProtoMessage() {} -func (*HistogramTimeSeries) Descriptor() ([]byte, []int) { +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{4} } -func (m *HistogramTimeSeries) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HistogramTimeSeries.Unmarshal(m, b) +func (m *HistogramDataPoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HistogramDataPoint.Unmarshal(m, b) } -func (m *HistogramTimeSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HistogramTimeSeries.Marshal(b, m, deterministic) +func (m *HistogramDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HistogramDataPoint.Marshal(b, m, deterministic) } -func (m *HistogramTimeSeries) XXX_Merge(src proto.Message) { - xxx_messageInfo_HistogramTimeSeries.Merge(m, src) +func (m *HistogramDataPoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_HistogramDataPoint.Merge(m, src) } -func (m *HistogramTimeSeries) XXX_Size() int { - return xxx_messageInfo_HistogramTimeSeries.Size(m) +func (m *HistogramDataPoint) XXX_Size() int { + return xxx_messageInfo_HistogramDataPoint.Size(m) } -func (m *HistogramTimeSeries) XXX_DiscardUnknown() { - xxx_messageInfo_HistogramTimeSeries.DiscardUnknown(m) +func (m *HistogramDataPoint) XXX_DiscardUnknown() { + xxx_messageInfo_HistogramDataPoint.DiscardUnknown(m) } -var xxx_messageInfo_HistogramTimeSeries proto.InternalMessageInfo +var xxx_messageInfo_HistogramDataPoint proto.InternalMessageInfo -func (m *HistogramTimeSeries) GetLabelValues() []string { +func (m *HistogramDataPoint) GetLabelValues() []string { if m != nil { return m.LabelValues } return nil } -func (m *HistogramTimeSeries) GetPoints() []*HistogramValue { +func (m *HistogramDataPoint) GetValue() *HistogramValue { if m != nil { - return m.Points + return m.Value } return nil } -func (m *HistogramTimeSeries) GetExplicitBounds() *HistogramTimeSeries_ExplicitBounds { +func (m *HistogramDataPoint) GetExplicitBounds() *HistogramDataPoint_ExplicitBounds { if m != nil { return m.ExplicitBounds } @@ -479,7 +478,7 @@ func (m *HistogramTimeSeries) GetExplicitBounds() *HistogramTimeSeries_ExplicitB } // ExplicitBounds specifies buckets with explicitly defined bounds for values. -type HistogramTimeSeries_ExplicitBounds struct { +type HistogramDataPoint_ExplicitBounds struct { // The bucket boundaries are described by "bounds" field. // // This defines size(bounds) + 1 (= N) buckets. The boundaries for bucket @@ -499,89 +498,89 @@ type HistogramTimeSeries_ExplicitBounds struct { XXX_sizecache int32 `json:"-"` } -func (m *HistogramTimeSeries_ExplicitBounds) Reset() { *m = HistogramTimeSeries_ExplicitBounds{} } -func (m *HistogramTimeSeries_ExplicitBounds) String() string { return proto.CompactTextString(m) } -func (*HistogramTimeSeries_ExplicitBounds) ProtoMessage() {} -func (*HistogramTimeSeries_ExplicitBounds) Descriptor() ([]byte, []int) { +func (m *HistogramDataPoint_ExplicitBounds) Reset() { *m = HistogramDataPoint_ExplicitBounds{} } +func (m *HistogramDataPoint_ExplicitBounds) String() string { return proto.CompactTextString(m) } +func (*HistogramDataPoint_ExplicitBounds) ProtoMessage() {} +func (*HistogramDataPoint_ExplicitBounds) Descriptor() ([]byte, []int) { return fileDescriptor_3c3112f9fa006917, []int{4, 0} } -func (m *HistogramTimeSeries_ExplicitBounds) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HistogramTimeSeries_ExplicitBounds.Unmarshal(m, b) +func (m *HistogramDataPoint_ExplicitBounds) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_HistogramDataPoint_ExplicitBounds.Unmarshal(m, b) } -func (m *HistogramTimeSeries_ExplicitBounds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HistogramTimeSeries_ExplicitBounds.Marshal(b, m, deterministic) +func (m *HistogramDataPoint_ExplicitBounds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_HistogramDataPoint_ExplicitBounds.Marshal(b, m, deterministic) } -func (m *HistogramTimeSeries_ExplicitBounds) XXX_Merge(src proto.Message) { - xxx_messageInfo_HistogramTimeSeries_ExplicitBounds.Merge(m, src) +func (m *HistogramDataPoint_ExplicitBounds) XXX_Merge(src proto.Message) { + xxx_messageInfo_HistogramDataPoint_ExplicitBounds.Merge(m, src) } -func (m *HistogramTimeSeries_ExplicitBounds) XXX_Size() int { - return xxx_messageInfo_HistogramTimeSeries_ExplicitBounds.Size(m) +func (m *HistogramDataPoint_ExplicitBounds) XXX_Size() int { + return xxx_messageInfo_HistogramDataPoint_ExplicitBounds.Size(m) } -func (m *HistogramTimeSeries_ExplicitBounds) XXX_DiscardUnknown() { - xxx_messageInfo_HistogramTimeSeries_ExplicitBounds.DiscardUnknown(m) +func (m *HistogramDataPoint_ExplicitBounds) XXX_DiscardUnknown() { + xxx_messageInfo_HistogramDataPoint_ExplicitBounds.DiscardUnknown(m) } -var xxx_messageInfo_HistogramTimeSeries_ExplicitBounds proto.InternalMessageInfo +var xxx_messageInfo_HistogramDataPoint_ExplicitBounds proto.InternalMessageInfo -func (m *HistogramTimeSeries_ExplicitBounds) GetBounds() []float64 { +func (m *HistogramDataPoint_ExplicitBounds) GetBounds() []float64 { if m != nil { return m.Bounds } return nil } -// SummaryTimeSeries is a list of data points that describes the time-varying values -// of a Summary metric. -type SummaryTimeSeries struct { - // The set of label values that uniquely identify this timeseries. Applies to - // all points. The order of label values must match that of label keys in the - // metric descriptor. Each element in this array is the value of the key defined at the - // corresponding index of MetricDescriptor.label_keys array. The number of elements - // in this array and MetricDescriptor.label_keys array must be the same. +// 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 label values that uniquely identify this timeseries. The order of label + // values must match that of label keys in the metric descriptor. Each element in this + // array is the value of the key defined at the corresponding index of + // MetricDescriptor.label_keys array. The number of elements in this array and + // MetricDescriptor.label_keys array must be the same. LabelValues []string `protobuf:"bytes,1,rep,name=label_values,json=labelValues,proto3" json:"label_values,omitempty"` - // The data points of this timeseries. - Points []*SummaryValue `protobuf:"bytes,2,rep,name=points,proto3" json:"points,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // The value of data point. + Value *SummaryValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (m *SummaryTimeSeries) Reset() { *m = SummaryTimeSeries{} } -func (m *SummaryTimeSeries) String() string { return proto.CompactTextString(m) } -func (*SummaryTimeSeries) ProtoMessage() {} -func (*SummaryTimeSeries) Descriptor() ([]byte, []int) { +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{5} } -func (m *SummaryTimeSeries) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SummaryTimeSeries.Unmarshal(m, b) +func (m *SummaryDataPoint) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SummaryDataPoint.Unmarshal(m, b) } -func (m *SummaryTimeSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SummaryTimeSeries.Marshal(b, m, deterministic) +func (m *SummaryDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SummaryDataPoint.Marshal(b, m, deterministic) } -func (m *SummaryTimeSeries) XXX_Merge(src proto.Message) { - xxx_messageInfo_SummaryTimeSeries.Merge(m, src) +func (m *SummaryDataPoint) XXX_Merge(src proto.Message) { + xxx_messageInfo_SummaryDataPoint.Merge(m, src) } -func (m *SummaryTimeSeries) XXX_Size() int { - return xxx_messageInfo_SummaryTimeSeries.Size(m) +func (m *SummaryDataPoint) XXX_Size() int { + return xxx_messageInfo_SummaryDataPoint.Size(m) } -func (m *SummaryTimeSeries) XXX_DiscardUnknown() { - xxx_messageInfo_SummaryTimeSeries.DiscardUnknown(m) +func (m *SummaryDataPoint) XXX_DiscardUnknown() { + xxx_messageInfo_SummaryDataPoint.DiscardUnknown(m) } -var xxx_messageInfo_SummaryTimeSeries proto.InternalMessageInfo +var xxx_messageInfo_SummaryDataPoint proto.InternalMessageInfo -func (m *SummaryTimeSeries) GetLabelValues() []string { +func (m *SummaryDataPoint) GetLabelValues() []string { if m != nil { return m.LabelValues } return nil } -func (m *SummaryTimeSeries) GetPoints() []*SummaryValue { +func (m *SummaryDataPoint) GetValue() *SummaryValue { if m != nil { - return m.Points + return m.Value } return nil } @@ -595,12 +594,8 @@ type Int64Value struct { // The cumulative value is over the time interval (start_time_unixnano, timestamp_unixnano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // - // Value of 0 indicates that the start_time is the same as that of the previous - // data point in this timeseries. When creating timeseries of this type it is recommended - // to omit this value if the start_time does not change, since it results in more - // compact encoding on the wire. - // If the value of 0 occurs for the first data point in the timeseries it means that - // the timestamp is unspecified. In that case the timestamp may be decided by the backend. + // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp + // may be decided by the backend. StartTimeUnixnano uint64 `protobuf:"fixed64,1,opt,name=start_time_unixnano,json=startTimeUnixnano,proto3" json:"start_time_unixnano,omitempty"` // timestamp_unixnano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. @@ -667,12 +662,8 @@ type DoubleValue struct { // The cumulative value is over the time interval (start_time_unixnano, timestamp_unixnano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // - // Value of 0 indicates that the start_time is the same as that of the previous - // data point in this timeseries. When creating timeseries of this type it is recommended - // to omit this value if the start_time does not change, since it results in more - // compact encoding on the wire. - // If the value of 0 occurs for the first data point in the timeseries it means that - // the timestamp is unspecified. In that case the timestamp may be decided by the backend. + // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp + // may be decided by the backend. StartTimeUnixnano uint64 `protobuf:"fixed64,1,opt,name=start_time_unixnano,json=startTimeUnixnano,proto3" json:"start_time_unixnano,omitempty"` // timestamp_unixnano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. @@ -734,15 +725,12 @@ func (m *DoubleValue) GetValue() float64 { // optionally contain the distribution of those values across a set of buckets. type HistogramValue struct { // start_time_unixnano is the time when the cumulative value was reset to zero. - // The cumulative value is over the time interval [start_time_unixnano, timestamp_unixnano]. + // + // The cumulative value is over the time interval (start_time_unixnano, timestamp_unixnano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // - // Value of 0 indicates that the start_time is the same as that of the previous - // data point in this timeseries. When creating timeseries of this type it is recommended - // to omit this value if the start_time does not change, since it results in more - // compact encoding on the wire. - // If the value of 0 occurs for the first data point in the timeseries it means that - // the timestamp is unspecified. In that case the timestamp may be decided by the backend. + // 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,1,opt,name=start_time_unixnano,json=startTimeUnixnano,proto3" json:"start_time_unixnano,omitempty"` // timestamp_unixnano is the moment when this value was recorded. @@ -764,7 +752,7 @@ type HistogramValue struct { // The number of elements in buckets array must be by one greater than the // number of elements in bucket_bounds array. // - // Note: if HistogramTimeSeries.bucket_options defines bucket bounds then this field + // 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 []*HistogramValue_Bucket `protobuf:"bytes,5,rep,name=buckets,proto3" json:"buckets,omitempty"` @@ -952,18 +940,12 @@ func (m *HistogramValue_Bucket_Exemplar) GetAttachments() []*v1.StringKeyValue { // The start_timestamp only applies to the count and sum in the SummaryValue. type SummaryValue struct { // start_time_unixnano 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. // // The cumulative value is over the time interval (start_time_unixnano, timestamp_unixnano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // - // Value of 0 indicates that the start_time is the same as that of the previous - // data point in this timeseries. When creating timeseries of this type it is recommended - // to omit this value if the start_time does not change, since it results in more - // compact encoding on the wire. - // If the value of 0 occurs for the first data point in the timeseries it means that - // the timestamp is unspecified. In that case the timestamp may be decided by the backend. + // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp + // may be decided by the backend. StartTimeUnixnano uint64 `protobuf:"fixed64,1,opt,name=start_time_unixnano,json=startTimeUnixnano,proto3" json:"start_time_unixnano,omitempty"` // timestamp_unixnano is the moment when this value was recorded. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. @@ -1097,11 +1079,11 @@ func init() { proto.RegisterEnum("opentelemetry.proto.metrics.v1.MetricDescriptor_Type", MetricDescriptor_Type_name, MetricDescriptor_Type_value) proto.RegisterType((*Metric)(nil), "opentelemetry.proto.metrics.v1.Metric") proto.RegisterType((*MetricDescriptor)(nil), "opentelemetry.proto.metrics.v1.MetricDescriptor") - proto.RegisterType((*Int64TimeSeries)(nil), "opentelemetry.proto.metrics.v1.Int64TimeSeries") - proto.RegisterType((*DoubleTimeSeries)(nil), "opentelemetry.proto.metrics.v1.DoubleTimeSeries") - proto.RegisterType((*HistogramTimeSeries)(nil), "opentelemetry.proto.metrics.v1.HistogramTimeSeries") - proto.RegisterType((*HistogramTimeSeries_ExplicitBounds)(nil), "opentelemetry.proto.metrics.v1.HistogramTimeSeries.ExplicitBounds") - proto.RegisterType((*SummaryTimeSeries)(nil), "opentelemetry.proto.metrics.v1.SummaryTimeSeries") + 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_ExplicitBounds)(nil), "opentelemetry.proto.metrics.v1.HistogramDataPoint.ExplicitBounds") + proto.RegisterType((*SummaryDataPoint)(nil), "opentelemetry.proto.metrics.v1.SummaryDataPoint") proto.RegisterType((*Int64Value)(nil), "opentelemetry.proto.metrics.v1.Int64Value") proto.RegisterType((*DoubleValue)(nil), "opentelemetry.proto.metrics.v1.DoubleValue") proto.RegisterType((*HistogramValue)(nil), "opentelemetry.proto.metrics.v1.HistogramValue") @@ -1116,64 +1098,63 @@ func init() { } var fileDescriptor_3c3112f9fa006917 = []byte{ - // 936 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xdd, 0x6e, 0xe2, 0x46, - 0x14, 0xae, 0x0d, 0x21, 0x9b, 0xe3, 0x14, 0xcc, 0x24, 0xaa, 0x10, 0x52, 0x57, 0x59, 0xae, 0xa2, - 0xed, 0xc6, 0x34, 0xec, 0xcf, 0xe5, 0x56, 0x10, 0xd8, 0x2c, 0xda, 0x25, 0x44, 0x03, 0xac, 0xd4, - 0x48, 0x15, 0x35, 0x64, 0x4a, 0x46, 0xc1, 0x3f, 0xb2, 0xc7, 0x51, 0xa8, 0x7a, 0xd3, 0x5e, 0xf5, - 0x0d, 0x7a, 0xb5, 0x52, 0x5f, 0xa8, 0xaf, 0xd1, 0xab, 0x3e, 0x44, 0x35, 0x33, 0x36, 0x1e, 0xb3, - 0x69, 0x21, 0x7b, 0x91, 0x1b, 0x34, 0xfe, 0xe6, 0x7c, 0xdf, 0x77, 0x3c, 0xe7, 0x9c, 0xc1, 0xf0, - 0xcc, 0xf3, 0x89, 0xcb, 0xc8, 0x9c, 0x38, 0x84, 0x05, 0x8b, 0xba, 0x1f, 0x78, 0xcc, 0xab, 0xf3, - 0x35, 0x9d, 0x86, 0xf5, 0x9b, 0xe3, 0x64, 0x69, 0x89, 0x0d, 0xf4, 0x38, 0x13, 0x2d, 0x41, 0x2b, - 0x09, 0xb9, 0x39, 0xae, 0x3e, 0xbd, 0x4b, 0x6d, 0xea, 0x39, 0x8e, 0xe7, 0x72, 0x31, 0xb9, 0x92, - 0xb4, 0xda, 0x3f, 0x39, 0x28, 0xf4, 0x04, 0x15, 0xfd, 0x00, 0x65, 0x29, 0x32, 0xbe, 0x24, 0xe1, - 0x34, 0xa0, 0x3e, 0xf3, 0x82, 0x8a, 0x76, 0xa0, 0x1d, 0x1a, 0x8d, 0x6f, 0xad, 0xff, 0xb7, 0xb4, - 0xa4, 0x44, 0x7b,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, 0xc4, 0xce, 0x88, - 0x5b, 0x9f, 0xa9, 0x5f, 0xc6, 0x93, 0x82, 0xd8, 0x78, 0xfe, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, - 0xf2, 0x59, 0x77, 0x99, 0x42, 0x0b, 0x00, 0x00, + // 927 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x8f, 0xda, 0x46, + 0x14, 0xae, 0x0d, 0xcb, 0x66, 0x9f, 0xb7, 0x60, 0x66, 0x57, 0x15, 0x42, 0x6a, 0xb4, 0xe1, 0xb4, + 0x4a, 0xb3, 0xa6, 0xa1, 0x49, 0x8e, 0x69, 0x61, 0xa1, 0x1b, 0x94, 0xb0, 0xa0, 0x59, 0x88, 0x94, + 0xa8, 0x15, 0x32, 0x66, 0xc4, 0x4e, 0xd7, 0xbf, 0x64, 0x8f, 0xb7, 0xcb, 0xb1, 0x3d, 0xf5, 0xde, + 0x73, 0xa4, 0xfe, 0x43, 0xfd, 0x37, 0xaa, 0xfe, 0x19, 0xd5, 0xcc, 0xd8, 0xd8, 0x26, 0x69, 0x81, + 0x1e, 0xf6, 0x82, 0xc6, 0xdf, 0xbc, 0xef, 0xfb, 0x9e, 0xe7, 0xbd, 0x67, 0x06, 0x9e, 0x78, 0x3e, + 0x71, 0x19, 0xb1, 0x89, 0x43, 0x58, 0xb0, 0x6c, 0xfa, 0x81, 0xc7, 0xbc, 0x26, 0x5f, 0x53, 0x2b, + 0x6c, 0xde, 0x3e, 0x4d, 0x96, 0x86, 0xd8, 0x40, 0x0f, 0x73, 0xd1, 0x12, 0x34, 0x92, 0x90, 0xdb, + 0xa7, 0xf5, 0xc7, 0x9f, 0x52, 0xb3, 0x3c, 0xc7, 0xf1, 0x5c, 0x2e, 0x26, 0x57, 0x92, 0xd6, 0xf8, + 0xbb, 0x00, 0xa5, 0x81, 0xa0, 0xa2, 0x1f, 0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, 0x5c, 0x96, 0x1c, 0x86, 0x78, 0x40, 0x3a, 0x14, 0xc2, 0xc8, + 0x11, 0x9f, 0x46, 0x05, 0xf3, 0x25, 0x1a, 0xc2, 0xfe, 0x2c, 0xb2, 0x6e, 0xc8, 0xea, 0x13, 0xff, + 0x7c, 0xb7, 0xde, 0x37, 0x3a, 0x82, 0x8d, 0x13, 0x95, 0xfa, 0x07, 0x15, 0x4a, 0x12, 0x4b, 0x73, + 0x50, 0xb2, 0x39, 0xbc, 0x87, 0x07, 0xe4, 0x8e, 0x38, 0xbe, 0x6d, 0x06, 0x71, 0x6f, 0xbd, 0xfc, + 0x5f, 0x96, 0x46, 0x2f, 0x56, 0xc1, 0x2b, 0xbd, 0xfa, 0x1f, 0x0a, 0x3c, 0x48, 0xe0, 0xb4, 0x14, + 0x4a, 0xa6, 0x14, 0xbb, 0x9e, 0xe3, 0x10, 0x34, 0x93, 0x31, 0xd3, 0xba, 0x76, 0x48, 0xfa, 0x67, + 0x7e, 0xf6, 0xc9, 0x84, 0xe3, 0xfb, 0x0c, 0x9f, 0x05, 0x16, 0x50, 0x77, 0xf1, 0x9a, 0xc4, 0xd3, + 0x90, 0x55, 0x68, 0xfc, 0xa9, 0xc2, 0x61, 0x76, 0x56, 0xee, 0xb5, 0x11, 0x4a, 0xff, 0xde, 0x08, + 0x37, 0x50, 0xf5, 0x49, 0x60, 0x11, 0x97, 0x51, 0x9b, 0x24, 0xdf, 0x05, 0xd9, 0x12, 0x2f, 0x77, + 0x99, 0x7d, 0x43, 0xfc, 0xb6, 0xd9, 0x68, 0x25, 0x86, 0xf5, 0x54, 0x58, 0x7e, 0x5c, 0xea, 0x7d, + 0xa8, 0x7e, 0x14, 0x86, 0x1e, 0x02, 0xa4, 0x81, 0x71, 0xd1, 0x32, 0x48, 0x5a, 0x4f, 0x35, 0x53, + 0xcf, 0x0e, 0x83, 0x47, 0xd4, 0xdb, 0x90, 0x60, 0xe7, 0x50, 0xfe, 0xcb, 0x87, 0x23, 0xbe, 0x31, + 0x52, 0xde, 0x7f, 0xbb, 0xa0, 0xec, 0x3a, 0x9a, 0xf1, 0x92, 0x35, 0x39, 0xf5, 0x2c, 0xbd, 0xa5, + 0xe6, 0x94, 0xce, 0xe4, 0x9d, 0x75, 0x41, 0xdc, 0xe6, 0x22, 0x7b, 0x11, 0x9e, 0x95, 0xc4, 0xc6, + 0x37, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xe1, 0x15, 0xe6, 0xaa, 0x31, 0x0b, 0x00, 0x00, } diff --git a/gen/go/trace/v1/trace.pb.go b/gen/go/trace/v1/trace.pb.go index 128af4374..aaaf87130 100644 --- a/gen/go/trace/v1/trace.pb.go +++ b/gen/go/trace/v1/trace.pb.go @@ -6,7 +6,6 @@ package v1 import ( fmt "fmt" proto "github.com/golang/protobuf/proto" - wrappers "github.com/golang/protobuf/ptypes/wrappers" v1 "github.com/open-telemetry/opentelemetry-proto/gen/go/common/v1" math "math" ) @@ -257,12 +256,13 @@ type Span struct { // wasn't set it is means span ended without errors and assume // Status.Ok (code = 0). Status *Status `protobuf:"bytes,16,opt,name=status,proto3" json:"status,omitempty"` - // An optional number of child spans that were generated while this span - // was active. If set, allows an implementation to detect missing child spans. - ChildSpanCount *wrappers.UInt32Value `protobuf:"bytes,17,opt,name=child_span_count,json=childSpanCount,proto3" json:"child_span_count,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + // An optional number of local child spans that were generated while this span + // was active. Value of -1 indicates that the number of local child spans is unknown. + // If local_child_span_count>=0, allows an implementation to detect missing child spans. + LocalChildSpanCount int32 `protobuf:"fixed32,17,opt,name=local_child_span_count,json=localChildSpanCount,proto3" json:"local_child_span_count,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *Span) Reset() { *m = Span{} } @@ -402,11 +402,11 @@ func (m *Span) GetStatus() *Status { return nil } -func (m *Span) GetChildSpanCount() *wrappers.UInt32Value { +func (m *Span) GetLocalChildSpanCount() int32 { if m != nil { - return m.ChildSpanCount + return m.LocalChildSpanCount } - return nil + return 0 } // Event is a time-stamped annotation of the span, consisting of user-supplied @@ -636,66 +636,65 @@ func init() { } var fileDescriptor_5c407ac9c675a601 = []byte{ - // 972 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xdf, 0x6e, 0xdb, 0xb6, - 0x17, 0xae, 0xff, 0x29, 0xc9, 0xf1, 0x9f, 0xd0, 0xec, 0x9f, 0x9f, 0x7e, 0x41, 0xd1, 0x19, 0x59, - 0x81, 0x19, 0x1d, 0x6a, 0xb7, 0xe9, 0xcd, 0x2e, 0x56, 0x6c, 0xae, 0xad, 0x60, 0x46, 0x33, 0xc7, - 0x90, 0xe3, 0x5e, 0xec, 0xc6, 0xa0, 0xc5, 0x53, 0x99, 0x88, 0x4c, 0x0a, 0x12, 0xe5, 0x24, 0x8f, - 0xb1, 0xa7, 0xd8, 0xc5, 0x9e, 0x61, 0x2f, 0xb2, 0xa7, 0x19, 0x48, 0xc9, 0x4d, 0x52, 0x14, 0x59, - 0x6e, 0x8a, 0xdd, 0xd8, 0xe4, 0x77, 0xbe, 0xef, 0x7c, 0xe4, 0xe1, 0xa1, 0x24, 0xe8, 0xaa, 0x18, - 0xa5, 0xc6, 0x08, 0xd7, 0xa8, 0x93, 0xab, 0x7e, 0x9c, 0x28, 0xad, 0xfa, 0x3a, 0x61, 0x01, 0xf6, - 0x37, 0xaf, 0xf3, 0x41, 0xcf, 0x82, 0xf4, 0xe9, 0x2d, 0x66, 0x0e, 0xf6, 0x72, 0xc2, 0xe6, 0xf5, - 0xc1, 0xb3, 0x50, 0xa9, 0x30, 0xc2, 0x3c, 0xc1, 0x32, 0xfb, 0xd8, 0xbf, 0x48, 0x58, 0x1c, 0x63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0x98, 0xba, 0xb0, 0xb3, 0xc6, 0x34, 0x65, 0x21, 0x16, 0x6d, 0xb7, 0x9d, 0x1e, 0xfe, 0x55, - 0x06, 0xb8, 0xa6, 0x53, 0x07, 0xca, 0xa7, 0xe7, 0xe4, 0x01, 0x6d, 0xc2, 0xde, 0x90, 0xc9, 0x00, - 0xa3, 0x08, 0x39, 0x29, 0x51, 0x02, 0x8d, 0xb9, 0x3c, 0x97, 0xea, 0x42, 0x7a, 0x49, 0xa2, 0x12, - 0x52, 0xa6, 0x0f, 0x61, 0x7f, 0x2c, 0x37, 0x2c, 0x12, 0x7c, 0x90, 0x84, 0xd9, 0x1a, 0xa5, 0x26, - 0x15, 0xfa, 0x08, 0xc8, 0x08, 0x19, 0x8f, 0x84, 0x44, 0xef, 0x32, 0x40, 0xe4, 0xc8, 0xf3, 0xad, - 0x4d, 0x94, 0x3e, 0x56, 0x99, 0xe4, 0xa4, 0x46, 0xdb, 0xd0, 0x1c, 0x44, 0x09, 0x32, 0x7e, 0xe5, - 0x5d, 0x8a, 0x54, 0xa7, 0xc4, 0x31, 0xb2, 0x29, 0x26, 0x6b, 0x91, 0xa6, 0x42, 0xc9, 0x11, 0x4a, - 0x81, 0x9c, 0xec, 0xd0, 0xc7, 0xd0, 0xf6, 0x31, 0x55, 0x59, 0x12, 0xa0, 0x77, 0xb9, 0x62, 0x59, - 0xaa, 0x91, 0x93, 0x5d, 0xfa, 0x04, 0xe8, 0x31, 0x13, 0x11, 0xf2, 0x69, 0x82, 0x81, 0x92, 0x5c, - 0x98, 0x9b, 0x43, 0xf6, 0x68, 0x1d, 0x76, 0x06, 0x4b, 0x95, 0x18, 0x12, 0xd0, 0x16, 0xc0, 0x69, - 0xa6, 0x4f, 0x3f, 0xfa, 0x4c, 0x86, 0x48, 0xea, 0xc6, 0x74, 0x2e, 0xc5, 0x3a, 0x36, 0x65, 0x93, - 0x86, 0xd2, 0x30, 0xd0, 0x58, 0x6a, 0x4c, 0x24, 0x8b, 0xf2, 0x3d, 0x35, 0xe9, 0x3e, 0xd4, 0xe7, - 0x92, 0x6d, 0x98, 0x88, 0xd8, 0x32, 0x42, 0xd2, 0x32, 0x2b, 0x1f, 0x31, 0xcd, 0x4e, 0x54, 0x9a, - 0x92, 0x7d, 0xb3, 0xe5, 0xb9, 0x64, 0x99, 0x5e, 0xa1, 0xd4, 0x22, 0x60, 0x26, 0x0d, 0x79, 0x27, - 0xe1, 0x1b, 0xa1, 0xee, 0x3c, 0x94, 0x77, 0x70, 0x66, 0x46, 0x53, 0x03, 0x4e, 0x4b, 0xbf, 0xbd, - 0x0d, 0x85, 0x5e, 0x65, 0x4b, 0xd3, 0xad, 0x7d, 0x23, 0x7b, 0x79, 0xfd, 0x02, 0xbf, 0x95, 0xe5, - 0x65, 0xfe, 0x3a, 0x0f, 0x51, 0xf6, 0xc3, 0xeb, 0xaf, 0x87, 0xa5, 0x63, 0xe1, 0x37, 0xff, 0x04, - 0x00, 0x00, 0xff, 0xff, 0xcd, 0xa6, 0xf6, 0x3e, 0x64, 0x08, 0x00, 0x00, + // 945 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xdd, 0x6e, 0xdb, 0x36, + 0x14, 0xae, 0xfc, 0xa3, 0x24, 0xc7, 0x7f, 0x34, 0xfb, 0x33, 0xad, 0x18, 0x36, 0x23, 0x2b, 0x30, + 0xa3, 0x43, 0xed, 0x26, 0xbd, 0xd9, 0xc5, 0x8a, 0xcd, 0xb5, 0x15, 0xcc, 0x48, 0xe6, 0x18, 0x72, + 0xdc, 0x8b, 0xdd, 0x08, 0x8c, 0x78, 0x66, 0x13, 0x91, 0x49, 0x43, 0xa2, 0x9c, 0xe4, 0x31, 0x76, + 0xb7, 0x37, 0xd8, 0x53, 0xec, 0x45, 0xf6, 0x34, 0x03, 0x29, 0xb9, 0x49, 0x8a, 0x22, 0xcb, 0x4d, + 0xb1, 0x1b, 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 0x31, 0x24, + 0xa0, 0x4d, 0x80, 0xd3, 0x4c, 0x9f, 0xfe, 0x1e, 0x30, 0xb9, 0x40, 0x52, 0x33, 0xa6, 0x73, 0x29, + 0x56, 0x6b, 0x53, 0x36, 0x69, 0x28, 0x75, 0x03, 0x8d, 0xa5, 0xc6, 0x44, 0xb2, 0x38, 0xdf, 0x53, + 0x83, 0xb6, 0xa0, 0x36, 0x97, 0x6c, 0xc3, 0x44, 0xcc, 0xce, 0x63, 0x24, 0x4d, 0xb3, 0xf2, 0x11, + 0xd3, 0xec, 0x44, 0xa5, 0x29, 0x69, 0x99, 0x2d, 0xcf, 0x25, 0xcb, 0xf4, 0x12, 0xa5, 0x16, 0x11, + 0x33, 0x69, 0xc8, 0x3b, 0x09, 0xdf, 0x08, 0x75, 0xef, 0xa1, 0xbc, 0x83, 0x33, 0x33, 0x9a, 0x1a, + 0x70, 0xea, 0xfc, 0xf6, 0x76, 0x21, 0xf4, 0x32, 0x3b, 0x37, 0xdd, 0xda, 0x37, 0xb2, 0x57, 0x37, + 0x6f, 0xeb, 0x3b, 0x59, 0x5e, 0xe5, 0xef, 0xee, 0x05, 0xca, 0xfe, 0xe2, 0xe6, 0x53, 0xe0, 0xdc, + 0xb5, 0xf0, 0x9b, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xd5, 0xe5, 0xa2, 0x31, 0x08, 0x00, + 0x00, } diff --git a/opentelemetry/proto/metrics/v1/metrics.proto b/opentelemetry/proto/metrics/v1/metrics.proto index 9012988d0..d65574024 100644 --- a/opentelemetry/proto/metrics/v1/metrics.proto +++ b/opentelemetry/proto/metrics/v1/metrics.proto @@ -27,11 +27,10 @@ option go_package = "github.com/open-telemetry/opentelemetry-proto/gen/go/metric // // The data model and relation between entities is shown in the diagram below. // -// - Metric is composed of a Resource, a MetricDescriptor and a TimeSeriesList data. +// - Metric is composed of a Resource, a MetricDescriptor and a list of data points. // - MetricDescriptor contains a list of label keys (shown horizontally). -// - TimeSeriesList is composed of a list of TimeSeries (shown vertically). -// - TimeSeries contains a list of label values and a list of metric values (shown -// horizontally). +// - Data is a list of DataPoints (shown vertically). +// - DataPoint contains a list of label values and a value. // // Metric // +----------+ +--------+ @@ -46,46 +45,46 @@ option go_package = "github.com/open-telemetry/opentelemetry-proto/gen/go/metric // +----------+ | |+-----+-----+ +-----+ | // | +------------------------+ // | -// | +------------------------------+ -// | |TimeSeries 1 | -// v |+-----+-----+ +-----+ | -// +-----+ ||label|label|...|label| | -// | 1 |-->|+-----+-----+ +-----+ | -// +-----+ |+-----+-----+-----+ +-----+ | -// | . | ||value|value|value|...|value| | -// | . | |+-----+-----+-----+ +-----+ | -// | . | +------------------------------+ +// | +------------------------+ +// | |DataPoint 1 | +// v |+-----+-----+ +-----+ | +// +-----+ ||label|label|...|label| | +// | 1 |-->|+-----+-----+ +-----+ | +// +-----+ |+-----+ | +// | . | ||value| | +// | . | |+-----+ | +// | . | +------------------------+ // | . | . // | . | . // | . | . -// | . | +-----------------------------------+ -// | . | |TimeSeries N | -// +-----+ |+-----+-----+ +-----+ | -// | N |-->||label|label|...|label| | -// +-----+ |+-----+-----+ +-----+ | -// |+-----+-----+-----+-----+ +-----+| -// ||value|value|value|value|...|value|| -// |+-----+-----+-----+-----+ +-----+| -// +-----------------------------------+ +// | . | +------------------------+ +// | . | |DataPoint M | +// +-----+ |+-----+-----+ +-----+ | +// | M |-->||label|label|...|label| | +// +-----+ |+-----+-----+ +-----+ | +// |+-----+ | +// ||value| | +// |+-----+ | +// +------------------------+ // //----------------------------------------------------------------------- -// TimeSeries contain an array of values, each value corresponding to a given moment in -// time. Each element of TimeSeries array is timestamped. +// DataPoint is a value of specific type corresponding to a given moment in +// time. Each DataPoint is timestamped. // -// TimeSeries are strongly typed: the element of a TimeSeries array has -// a specific ProtoBuf message depending on the value type of the metric and thus -// there are currently 4 TimeSeries messages, which correspond to the types of metric values. +// DataPoint is strongly typed: each DataPoint type has a specific Protobuf message +// depending on the value type of the metric and thus there are currently 4 DataPoint +// messages, which correspond to the types of metric values. message Metric { // metric_descriptor describes the Metric. MetricDescriptor metric_descriptor = 1; - // data is a list of one or more TimeSeries for a single metric, where each timeseries has - // one or more points. Only one of the following fields is used for the data, depending on - // the type of the metric defined by MetricDescriptor.type field. - repeated Int64TimeSeries int64_timeseries = 2; - repeated DoubleTimeSeries double_timeseries = 3; - repeated HistogramTimeSeries histogram_timeseries = 4; - repeated SummaryTimeSeries summary_timeseries = 5; + // 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_datapoints = 2; + repeated DoubleDataPoint double_datapoints = 3; + repeated HistogramDataPoint histogram_datapoints = 4; + repeated SummaryDataPoint summary_datapoints = 5; } // Defines a metric type and its schema. @@ -113,33 +112,33 @@ message MetricDescriptor { UNSPECIFIED = 0; // Integer gauge. The value can go both up and down over time. - // Corresponding values are stored in Int64TimeSeries. + // Corresponding values are stored in Int64DataPoint. GAUGE_INT64 = 1; // Floating point gauge. The value can go both up and down over time. - // Corresponding values are stored in DoubleTimeSeries. + // 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 HistogramTimeSeries. The count and sum of the + // 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 // CounterInt64Value.start_time_unixnano should also be reset. - // Corresponding values are stored in Int64TimeSeries. + // Corresponding values are stored in Int64DataPoint. COUNTER_INT64 = 4; // Floating point counter measurement. The value cannot decrease, if // resets then the CounterDoubleValue.start_time_unixnano should also be reset. // Recorded values are always >= 0. - // Corresponding values are stored in DoubleTimeSeries. + // Corresponding values are stored in DoubleDataPoint. COUNTER_DOUBLE = 5; // Histogram cumulative measurement. - // Corresponding values are stored in HistogramTimeSeries. The count and sum of the + // Corresponding values are stored in HistogramDataPoint. The count and sum of the // histogram cannot decrease; if values are reset then HistogramValue.start_time_unixnano // should also be reset to the new start timestamp. CUMULATIVE_HISTOGRAM = 6; @@ -149,7 +148,7 @@ message MetricDescriptor { // 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 SummaryTimeSeries. + // Corresponding values are stored in SummaryDataPoint. SUMMARY = 7; } Type type = 4; @@ -159,46 +158,46 @@ message MetricDescriptor { repeated string label_keys = 5; } -// Int64TimeSeries is a list of data points that describes the time-varying values -// of a int64 metric. -message Int64TimeSeries { - // The set of label values that uniquely identify this timeseries. Applies to - // all points. The order of label values must match that of label keys in the - // metric descriptor. Each element in this array is the value of the key defined at the - // corresponding index of MetricDescriptor.label_keys array. The number of elements - // in this array and MetricDescriptor.label_keys array must be the same. +// Int64DataPoint is a single data point in a timeseries that describes the time-varying +// values of a int64 metric. +message Int64DataPoint { + // The set of label values that uniquely identify this timeseries. The order of label + // values must match that of label keys in the metric descriptor. Each element in this + // array is the value of the key defined at the corresponding index of + // MetricDescriptor.label_keys array. The number of elements in this array and + // MetricDescriptor.label_keys array must be the same. repeated string label_values = 1; - // The data points of this timeseries. - repeated Int64Value points = 2; + // The value of data point. + Int64Value value = 2; } -// DoubleTimeSeries is a list of data points that describes the time-varying values -// of a double metric. -message DoubleTimeSeries { - // The set of label values that uniquely identify this timeseries. Applies to - // all points. The order of label values must match that of label keys in the - // metric descriptor. Each element in this array is the value of the key defined at the - // corresponding index of MetricDescriptor.label_keys array. The number of elements - // in this array and MetricDescriptor.label_keys array must be the same. +// DoubleDataPoint is a single data point in a timeseries that describes the time-varying +// value of a double metric. +message DoubleDataPoint { + // The set of label values that uniquely identify this timeseries. The order of label + // values must match that of label keys in the metric descriptor. Each element in this + // array is the value of the key defined at the corresponding index of + // MetricDescriptor.label_keys array. The number of elements in this array and + // MetricDescriptor.label_keys array must be the same. repeated string label_values = 1; - // The data points of this timeseries. - repeated DoubleValue points = 2; + // The value of data point. + DoubleValue value = 2; } -// HistogramTimeSeries is a list of data points that describes the time-varying values -// of a Histogram. -message HistogramTimeSeries { - // The set of label values that uniquely identify this timeseries. Applies to - // all points. The order of label values must match that of label keys in the - // metric descriptor. Each element in this array is the value of the key defined at the - // corresponding index of MetricDescriptor.label_keys array. The number of elements - // in this array and MetricDescriptor.label_keys array must be the same. +// HistogramDataPoint is a single data point in a timeseries that describes the time-varying +// values of a Histogram. +message HistogramDataPoint { + // The set of label values that uniquely identify this timeseries. The order of label + // values must match that of label keys in the metric descriptor. Each element in this + // array is the value of the key defined at the corresponding index of + // MetricDescriptor.label_keys array. The number of elements in this array and + // MetricDescriptor.label_keys array must be the same. repeated string label_values = 1; - // The data points of this timeseries. - repeated HistogramValue points = 2; + // The value of data point. + HistogramValue value = 2; // ExplicitBounds specifies buckets with explicitly defined bounds for values. message ExplicitBounds { @@ -224,26 +223,26 @@ message HistogramTimeSeries { // in which case the distribution of values in the histogram is unknown and only the // total count and sum are known. // - // Bucket options apply to all points in this HistogramTimeSeries. To define + // Bucket options apply to all points in this HistogramDataPoint. To define // different bucket options for different points create separate instances of - // HistogramTimeSeries each with its own bucket options. + // HistogramDataPoint each with its own bucket options. // explicit_bounds is the only supported bucket option currently. ExplicitBounds explicit_bounds = 3; } -// SummaryTimeSeries is a list of data points that describes the time-varying values -// of a Summary metric. -message SummaryTimeSeries { - // The set of label values that uniquely identify this timeseries. Applies to - // all points. The order of label values must match that of label keys in the - // metric descriptor. Each element in this array is the value of the key defined at the - // corresponding index of MetricDescriptor.label_keys array. The number of elements - // in this array and MetricDescriptor.label_keys array must be the same. +// SummaryDataPoint is a single data point in a timeseries that describes the time-varying +// values of a Summary metric. +message SummaryDataPoint { + // The set of label values that uniquely identify this timeseries. The order of label + // values must match that of label keys in the metric descriptor. Each element in this + // array is the value of the key defined at the corresponding index of + // MetricDescriptor.label_keys array. The number of elements in this array and + // MetricDescriptor.label_keys array must be the same. repeated string label_values = 1; - // The data points of this timeseries. - repeated SummaryValue points = 2; + // The value of data point. + SummaryValue value = 2; } // Int64Value is a timestamped measurement of int64 value. @@ -255,12 +254,8 @@ message Int64Value { // The cumulative value is over the time interval (start_time_unixnano, timestamp_unixnano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // - // Value of 0 indicates that the start_time is the same as that of the previous - // data point in this timeseries. When creating timeseries of this type it is recommended - // to omit this value if the start_time does not change, since it results in more - // compact encoding on the wire. - // If the value of 0 occurs for the first data point in the timeseries it means that - // the timestamp is unspecified. In that case the timestamp may be decided by the backend. + // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp + // may be decided by the backend. fixed64 start_time_unixnano = 1; // timestamp_unixnano is the moment when this value was recorded. @@ -280,12 +275,8 @@ message DoubleValue { // The cumulative value is over the time interval (start_time_unixnano, timestamp_unixnano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // - // Value of 0 indicates that the start_time is the same as that of the previous - // data point in this timeseries. When creating timeseries of this type it is recommended - // to omit this value if the start_time does not change, since it results in more - // compact encoding on the wire. - // If the value of 0 occurs for the first data point in the timeseries it means that - // the timestamp is unspecified. In that case the timestamp may be decided by the backend. + // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp + // may be decided by the backend. fixed64 start_time_unixnano = 1; // timestamp_unixnano is the moment when this value was recorded. @@ -300,15 +291,12 @@ message DoubleValue { // optionally contain the distribution of those values across a set of buckets. message HistogramValue { // start_time_unixnano is the time when the cumulative value was reset to zero. - // The cumulative value is over the time interval [start_time_unixnano, timestamp_unixnano]. + // + // The cumulative value is over the time interval (start_time_unixnano, timestamp_unixnano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // - // Value of 0 indicates that the start_time is the same as that of the previous - // data point in this timeseries. When creating timeseries of this type it is recommended - // to omit this value if the start_time does not change, since it results in more - // compact encoding on the wire. - // If the value of 0 occurs for the first data point in the timeseries it means that - // the timestamp is unspecified. In that case the timestamp may be decided by the backend. + // 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_unixnano = 1; @@ -362,7 +350,7 @@ message HistogramValue { // The number of elements in buckets array must be by one greater than the // number of elements in bucket_bounds array. // - // Note: if HistogramTimeSeries.bucket_options defines bucket bounds then this field + // 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 = 5; @@ -371,18 +359,12 @@ message HistogramValue { // The start_timestamp only applies to the count and sum in the SummaryValue. message SummaryValue { // start_time_unixnano 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. // // The cumulative value is over the time interval (start_time_unixnano, timestamp_unixnano]. // Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. // - // Value of 0 indicates that the start_time is the same as that of the previous - // data point in this timeseries. When creating timeseries of this type it is recommended - // to omit this value if the start_time does not change, since it results in more - // compact encoding on the wire. - // If the value of 0 occurs for the first data point in the timeseries it means that - // the timestamp is unspecified. In that case the timestamp may be decided by the backend. + // Value of 0 indicates that the timestamp is unspecified. In that case the timestamp + // may be decided by the backend. fixed64 start_time_unixnano = 1; // timestamp_unixnano is the moment when this value was recorded.