diff --git a/consumer/pdata/generated_metrics.go b/consumer/pdata/generated_metrics.go index c913cf10eea..6f6762dd564 100644 --- a/consumer/pdata/generated_metrics.go +++ b/consumer/pdata/generated_metrics.go @@ -607,8 +607,6 @@ func (ms Metric) SetUnit(v string) { (*ms.orig).Unit = v } - - // CopyTo copies all properties from the current struct to the dest. func (ms Metric) CopyTo(dest Metric) { if ms.IsNil() { diff --git a/consumer/pdata/generated_metrics_test.go b/consumer/pdata/generated_metrics_test.go index 2addd2adeea..770a9812540 100644 --- a/consumer/pdata/generated_metrics_test.go +++ b/consumer/pdata/generated_metrics_test.go @@ -489,8 +489,6 @@ func TestMetric_Unit(t *testing.T) { assert.EqualValues(t, testValUnit, ms.Unit()) } - - func TestIntGauge_InitEmpty(t *testing.T) { ms := NewIntGauge() assert.True(t, ms.IsNil()) diff --git a/internal/data/opentelemetry-proto b/internal/data/opentelemetry-proto index 32a0c7b519d..313a868be25 160000 --- a/internal/data/opentelemetry-proto +++ b/internal/data/opentelemetry-proto @@ -1 +1 @@ -Subproject commit 32a0c7b519d6e26749a44d7ca8b5a39b08d9ef00 +Subproject commit 313a868be259dce6c6516dd417d3ad5fd3321acf diff --git a/internal/data/opentelemetry-proto-gen/metrics/v1/metrics.pb.go b/internal/data/opentelemetry-proto-gen/metrics/v1/metrics.pb.go index 5fd6cfe611e..d5812baf022 100644 --- a/internal/data/opentelemetry-proto-gen/metrics/v1/metrics.pb.go +++ b/internal/data/opentelemetry-proto-gen/metrics/v1/metrics.pb.go @@ -843,7 +843,7 @@ type IntDataPoint struct { // 1970. TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // value itself. - Value int64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"` + Value int64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"` // (Optional) List of exemplars collected from // measurements that were used to form the data point Exemplars []*IntExemplar `protobuf:"bytes,5,rep,name=exemplars,proto3" json:"exemplars,omitempty"` @@ -1043,11 +1043,11 @@ type IntHistogramDataPoint struct { // count is the number of values in the population. Must be non-negative. This // value must be equal to the sum of the "count" fields in buckets if a // histogram is provided. - Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` + Count uint64 `protobuf:"fixed64,4,opt,name=count,proto3" json:"count,omitempty"` // sum of the values in the population. If count is zero then this field // must be zero. This value must be equal to the sum of the "sum" fields in // buckets if a histogram is provided. - Sum int64 `protobuf:"varint,5,opt,name=sum,proto3" json:"sum,omitempty"` + Sum int64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"` // bucket_counts is an optional field contains the count values of histogram // for each bucket. // @@ -1055,7 +1055,7 @@ type IntHistogramDataPoint struct { // // The number of elements in bucket_counts array must be by one greater than // the number of elements in explicit_bounds array. - BucketCounts []uint64 `protobuf:"varint,6,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"` + BucketCounts []uint64 `protobuf:"fixed64,6,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"` // explicit_bounds specifies buckets with explicitly defined bounds for values. // The bucket boundaries are described by "bounds" field. // @@ -1193,7 +1193,7 @@ type DoubleHistogramDataPoint struct { // count is the number of values in the population. Must be non-negative. This // value must be equal to the sum of the "count" fields in buckets if a // histogram is provided. - Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` + Count uint64 `protobuf:"fixed64,4,opt,name=count,proto3" json:"count,omitempty"` // sum of the values in the population. If count is zero then this field // must be zero. This value must be equal to the sum of the "sum" fields in // buckets if a histogram is provided. @@ -1205,7 +1205,7 @@ type DoubleHistogramDataPoint struct { // // The number of elements in bucket_counts array must be by one greater than // the number of elements in explicit_bounds array. - BucketCounts []uint64 `protobuf:"varint,6,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"` + BucketCounts []uint64 `protobuf:"fixed64,6,rep,packed,name=bucket_counts,json=bucketCounts,proto3" json:"bucket_counts,omitempty"` // explicit_bounds specifies buckets with explicitly defined bounds for values. // The bucket boundaries are described by "bounds" field. // @@ -1330,7 +1330,7 @@ type IntExemplar struct { // 1970. TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"` // Numerical int value of the measurement that was recorded. - Value int64 `protobuf:"varint,3,opt,name=value,proto3" json:"value,omitempty"` + Value int64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` // (Optional) Span ID of the exemplar trace. // span_id may be missing if the measurement is not recorded inside a trace // or if the trace is not sampled. @@ -1527,76 +1527,76 @@ func init() { } var fileDescriptor_3c3112f9fa006917 = []byte{ - // 1101 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0xcf, 0x4f, 0x1b, 0xc7, - 0x17, 0xf7, 0xd8, 0xc6, 0x3f, 0x9e, 0x1d, 0xe0, 0x3b, 0xca, 0x37, 0xd9, 0x46, 0xc2, 0x05, 0xa7, - 0x22, 0x34, 0x09, 0xb6, 0xa0, 0x4a, 0xd5, 0x4b, 0xa5, 0x1a, 0x70, 0xc1, 0xad, 0x21, 0xd6, 0x60, - 0x90, 0xa8, 0x2a, 0xad, 0xd6, 0xbb, 0x53, 0x77, 0xd4, 0xdd, 0x19, 0x6b, 0x77, 0x16, 0xc1, 0x1f, - 0xd0, 0x5b, 0x2b, 0x55, 0xea, 0xb1, 0x7f, 0x48, 0xff, 0x85, 0x1e, 0xd3, 0x43, 0xd5, 0x5c, 0x2a, - 0x45, 0x70, 0xec, 0xa9, 0x97, 0x9e, 0x7a, 0xa8, 0x76, 0x76, 0x17, 0x6c, 0x58, 0xb0, 0x23, 0x52, - 0x89, 0xdc, 0xde, 0xbc, 0x79, 0xef, 0xb3, 0x9f, 0xf7, 0x79, 0xef, 0x79, 0x17, 0xe0, 0xa9, 0x18, - 0x50, 0x2e, 0xa9, 0x4d, 0x1d, 0x2a, 0xdd, 0xe3, 0xfa, 0xc0, 0x15, 0x52, 0xd4, 0x03, 0x9b, 0x99, - 0x5e, 0xfd, 0x70, 0x25, 0x36, 0x6b, 0xea, 0x02, 0x57, 0x46, 0xa2, 0x43, 0x67, 0x2d, 0x0e, 0x39, - 0x5c, 0x79, 0xf0, 0x38, 0x09, 0xcd, 0x14, 0x8e, 0x23, 0x78, 0x00, 0x16, 0x5a, 0x61, 0xda, 0x83, - 0x5a, 0x52, 0xac, 0x4b, 0x3d, 0xe1, 0xbb, 0x26, 0x0d, 0xa2, 0x63, 0x3b, 0x8c, 0xaf, 0xbe, 0x42, - 0x30, 0x43, 0x22, 0xd7, 0x76, 0xf8, 0x48, 0xdc, 0x84, 0x42, 0x1c, 0xa5, 0xa1, 0x79, 0xb4, 0x54, - 0x5a, 0x7d, 0xbf, 0x96, 0x44, 0xf1, 0x0c, 0xea, 0x70, 0xa5, 0x16, 0x63, 0x90, 0xb3, 0x54, 0xfc, - 0x2d, 0x82, 0x77, 0x19, 0xf7, 0xa4, 0xeb, 0x3b, 0x94, 0x4b, 0x43, 0x32, 0xc1, 0x75, 0x9b, 0xf5, - 0x5c, 0xc3, 0x3d, 0xd6, 0xa3, 0xea, 0xb4, 0xf4, 0x7c, 0x66, 0xa9, 0xb4, 0xfa, 0x71, 0xed, 0x7a, - 0x05, 0x6a, 0xad, 0x51, 0x98, 0x76, 0x88, 0x12, 0xf1, 0x25, 0x73, 0xec, 0xba, 0xeb, 0xea, 0xaf, - 0x08, 0xe6, 0xae, 0x05, 0xc0, 0x1c, 0xee, 0x5f, 0x41, 0x34, 0xaa, 0xff, 0x59, 0x22, 0xc1, 0x48, - 0xf8, 0x2b, 0xf9, 0x91, 0x7b, 0xc9, 0xc4, 0xf0, 0x27, 0x90, 0x1f, 0x15, 0x60, 0x71, 0x9c, 0x00, - 0x21, 0x53, 0x12, 0xa7, 0x55, 0x7f, 0xce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ad, - 0xa4, 0x5e, 0x9c, 0x56, 0x52, 0x2f, 0x4f, 0x2b, 0x29, 0x58, 0x60, 0x62, 0xcc, 0x64, 0xae, 0x95, - 0xa3, 0x3f, 0x75, 0x3b, 0xc1, 0x45, 0x07, 0x7d, 0xb1, 0xd3, 0xbf, 0x98, 0xc2, 0x44, 0xdd, 0x14, - 0xb6, 0x4d, 0x4d, 0x29, 0xdc, 0x3a, 0xe3, 0x92, 0xba, 0xdc, 0xb0, 0xeb, 0xc1, 0x17, 0x45, 0x7d, - 0x24, 0x70, 0x59, 0x61, 0x2f, 0xf7, 0x29, 0x1f, 0xfa, 0x87, 0x46, 0x2f, 0xa7, 0xbc, 0x1f, 0xfc, - 0x1b, 0x00, 0x00, 0xff, 0xff, 0xfd, 0xbe, 0xc9, 0x11, 0xf9, 0x10, 0x00, 0x00, + // 1099 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x41, 0x4f, 0xe3, 0xc6, + 0x17, 0xcf, 0x24, 0xe0, 0x24, 0x2f, 0x59, 0xc8, 0x7f, 0xb4, 0x7f, 0x70, 0x57, 0x22, 0x85, 0x6c, + 0xc5, 0xd2, 0xdd, 0x25, 0x11, 0x54, 0x5b, 0xf5, 0x52, 0xa9, 0x01, 0x52, 0x48, 0x1b, 0xd8, 0xc8, + 0x04, 0x24, 0xaa, 0x4a, 0x96, 0x63, 0x4f, 0xd3, 0x51, 0xed, 0x99, 0xc8, 0x1e, 0x23, 0xf8, 0x00, + 0xbd, 0xb5, 0x52, 0xa5, 0x1e, 0xfb, 0x41, 0xfa, 0x15, 0x7a, 0xdc, 0x1e, 0xaa, 0xee, 0xa5, 0xd2, + 0x0a, 0x8e, 0x3d, 0xf5, 0xd2, 0x53, 0x0f, 0x95, 0xc7, 0x36, 0x24, 0x60, 0x48, 0x56, 0x6c, 0xa5, + 0xec, 0xed, 0xcd, 0x9b, 0xf7,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 0x59, 0x19, 0xbd, 0x38, 0x2b, 0xa3, 0x57, 0x67, 0x65, 0xf4, 0xc3, 0x79, 0x39, 0xf5, 0xe2, + 0xbc, 0x9c, 0x7a, 0x79, 0x5e, 0x4e, 0xc1, 0x12, 0xe5, 0x23, 0x26, 0x73, 0xa3, 0x18, 0xfd, 0xa9, + 0xdb, 0x0e, 0x2e, 0xda, 0xe8, 0x8b, 0xbd, 0xde, 0xd5, 0x14, 0xca, 0x6b, 0x26, 0xb7, 0x6d, 0x62, + 0x0a, 0xee, 0xd6, 0x28, 0x13, 0xc4, 0x65, 0x86, 0x5d, 0x0b, 0xbe, 0x28, 0x6a, 0x43, 0x81, 0xab, + 0x12, 0x7b, 0xb5, 0x47, 0xd8, 0xc0, 0x3f, 0x34, 0xba, 0x8a, 0xf4, 0x7e, 0xf0, 0x6f, 0x00, 0x00, + 0x00, 0xff, 0xff, 0x5b, 0xe2, 0x24, 0x7c, 0xf9, 0x10, 0x00, 0x00, } func (m *ResourceMetrics) Marshal() (dAtA []byte, err error) { @@ -2173,9 +2173,10 @@ func (m *IntDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { } } if m.Value != 0 { - i = encodeVarintMetrics(dAtA, i, uint64(m.Value)) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Value)) i-- - dAtA[i] = 0x20 + dAtA[i] = 0x21 } if m.TimeUnixNano != 0 { i -= 8 @@ -2320,32 +2321,25 @@ func (m *IntHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x3a } if len(m.BucketCounts) > 0 { - dAtA11 := make([]byte, len(m.BucketCounts)*10) - var j10 int - for _, num := range m.BucketCounts { - for num >= 1<<7 { - dAtA11[j10] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j10++ - } - dAtA11[j10] = uint8(num) - j10++ - } - i -= j10 - copy(dAtA[i:], dAtA11[:j10]) - i = encodeVarintMetrics(dAtA, i, uint64(j10)) + for iNdEx := len(m.BucketCounts) - 1; iNdEx >= 0; iNdEx-- { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.BucketCounts[iNdEx])) + } + i = encodeVarintMetrics(dAtA, i, uint64(len(m.BucketCounts)*8)) i-- dAtA[i] = 0x32 } if m.Sum != 0 { - i = encodeVarintMetrics(dAtA, i, uint64(m.Sum)) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Sum)) i-- - dAtA[i] = 0x28 + dAtA[i] = 0x29 } if m.Count != 0 { - i = encodeVarintMetrics(dAtA, i, uint64(m.Count)) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Count)) i-- - dAtA[i] = 0x20 + dAtA[i] = 0x21 } if m.TimeUnixNano != 0 { i -= 8 @@ -2412,29 +2406,20 @@ func (m *DoubleHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error } if len(m.ExplicitBounds) > 0 { for iNdEx := len(m.ExplicitBounds) - 1; iNdEx >= 0; iNdEx-- { - f12 := math.Float64bits(float64(m.ExplicitBounds[iNdEx])) + f10 := math.Float64bits(float64(m.ExplicitBounds[iNdEx])) i -= 8 - encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(f12)) + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(f10)) } i = encodeVarintMetrics(dAtA, i, uint64(len(m.ExplicitBounds)*8)) i-- dAtA[i] = 0x3a } if len(m.BucketCounts) > 0 { - dAtA14 := make([]byte, len(m.BucketCounts)*10) - var j13 int - for _, num := range m.BucketCounts { - for num >= 1<<7 { - dAtA14[j13] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j13++ - } - dAtA14[j13] = uint8(num) - j13++ - } - i -= j13 - copy(dAtA[i:], dAtA14[:j13]) - i = encodeVarintMetrics(dAtA, i, uint64(j13)) + for iNdEx := len(m.BucketCounts) - 1; iNdEx >= 0; iNdEx-- { + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.BucketCounts[iNdEx])) + } + i = encodeVarintMetrics(dAtA, i, uint64(len(m.BucketCounts)*8)) i-- dAtA[i] = 0x32 } @@ -2445,9 +2430,10 @@ func (m *DoubleHistogramDataPoint) MarshalToSizedBuffer(dAtA []byte) (int, error dAtA[i] = 0x29 } if m.Count != 0 { - i = encodeVarintMetrics(dAtA, i, uint64(m.Count)) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Count)) i-- - dAtA[i] = 0x20 + dAtA[i] = 0x21 } if m.TimeUnixNano != 0 { i -= 8 @@ -2513,9 +2499,10 @@ func (m *IntExemplar) MarshalToSizedBuffer(dAtA []byte) (int, error) { dAtA[i] = 0x22 } if m.Value != 0 { - i = encodeVarintMetrics(dAtA, i, uint64(m.Value)) + i -= 8 + encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(m.Value)) i-- - dAtA[i] = 0x18 + dAtA[i] = 0x19 } if m.TimeUnixNano != 0 { i -= 8 @@ -2875,7 +2862,7 @@ func (m *IntDataPoint) Size() (n int) { n += 9 } if m.Value != 0 { - n += 1 + sovMetrics(uint64(m.Value)) + n += 9 } if len(m.Exemplars) > 0 { for _, e := range m.Exemplars { @@ -2935,17 +2922,13 @@ func (m *IntHistogramDataPoint) Size() (n int) { n += 9 } if m.Count != 0 { - n += 1 + sovMetrics(uint64(m.Count)) + n += 9 } if m.Sum != 0 { - n += 1 + sovMetrics(uint64(m.Sum)) + n += 9 } if len(m.BucketCounts) > 0 { - l = 0 - for _, e := range m.BucketCounts { - l += sovMetrics(uint64(e)) - } - n += 1 + sovMetrics(uint64(l)) + l + n += 1 + sovMetrics(uint64(len(m.BucketCounts)*8)) + len(m.BucketCounts)*8 } if len(m.ExplicitBounds) > 0 { n += 1 + sovMetrics(uint64(len(m.ExplicitBounds)*8)) + len(m.ExplicitBounds)*8 @@ -2978,17 +2961,13 @@ func (m *DoubleHistogramDataPoint) Size() (n int) { n += 9 } if m.Count != 0 { - n += 1 + sovMetrics(uint64(m.Count)) + n += 9 } if m.Sum != 0 { n += 9 } if len(m.BucketCounts) > 0 { - l = 0 - for _, e := range m.BucketCounts { - l += sovMetrics(uint64(e)) - } - n += 1 + sovMetrics(uint64(l)) + l + n += 1 + sovMetrics(uint64(len(m.BucketCounts)*8)) + len(m.BucketCounts)*8 } if len(m.ExplicitBounds) > 0 { n += 1 + sovMetrics(uint64(len(m.ExplicitBounds)*8)) + len(m.ExplicitBounds)*8 @@ -3018,7 +2997,7 @@ func (m *IntExemplar) Size() (n int) { n += 9 } if m.Value != 0 { - n += 1 + sovMetrics(uint64(m.Value)) + n += 9 } l = len(m.SpanId) if l > 0 { @@ -4393,24 +4372,15 @@ func (m *IntDataPoint) Unmarshal(dAtA []byte) error { m.TimeUnixNano = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) iNdEx += 8 case 4: - if wireType != 0 { + if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } m.Value = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetrics - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Value |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + m.Value = int64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Exemplars", wireType) @@ -4705,60 +4675,33 @@ func (m *IntHistogramDataPoint) Unmarshal(dAtA []byte) error { m.TimeUnixNano = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) iNdEx += 8 case 4: - if wireType != 0 { + if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) } m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetrics - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Count |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + m.Count = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 case 5: - if wireType != 0 { + if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field Sum", wireType) } m.Sum = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetrics - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Sum |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + m.Sum = int64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 case 6: - if wireType == 0 { + if wireType == 1 { var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetrics - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 m.BucketCounts = append(m.BucketCounts, v) } else if wireType == 2 { var packedLen int @@ -4787,32 +4730,17 @@ func (m *IntHistogramDataPoint) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count + elementCount = packedLen / 8 if elementCount != 0 && len(m.BucketCounts) == 0 { m.BucketCounts = make([]uint64, 0, elementCount) } for iNdEx < postIndex { var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetrics - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 m.BucketCounts = append(m.BucketCounts, v) } } else { @@ -5014,24 +4942,15 @@ func (m *DoubleHistogramDataPoint) Unmarshal(dAtA []byte) error { m.TimeUnixNano = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) iNdEx += 8 case 4: - if wireType != 0 { + if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType) } m.Count = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetrics - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Count |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + m.Count = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 case 5: if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field Sum", wireType) @@ -5044,22 +4963,13 @@ func (m *DoubleHistogramDataPoint) Unmarshal(dAtA []byte) error { iNdEx += 8 m.Sum = float64(math.Float64frombits(v)) case 6: - if wireType == 0 { + if wireType == 1 { var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetrics - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 m.BucketCounts = append(m.BucketCounts, v) } else if wireType == 2 { var packedLen int @@ -5088,32 +4998,17 @@ func (m *DoubleHistogramDataPoint) Unmarshal(dAtA []byte) error { return io.ErrUnexpectedEOF } var elementCount int - var count int - for _, integer := range dAtA[iNdEx:postIndex] { - if integer < 128 { - count++ - } - } - elementCount = count + elementCount = packedLen / 8 if elementCount != 0 && len(m.BucketCounts) == 0 { m.BucketCounts = make([]uint64, 0, elementCount) } for iNdEx < postIndex { var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetrics - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= uint64(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 m.BucketCounts = append(m.BucketCounts, v) } } else { @@ -5305,24 +5200,15 @@ func (m *IntExemplar) Unmarshal(dAtA []byte) error { m.TimeUnixNano = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) iNdEx += 8 case 3: - if wireType != 0 { + if wireType != 1 { return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType) } m.Value = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowMetrics - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Value |= int64(b&0x7F) << shift - if b < 0x80 { - break - } + if (iNdEx + 8) > l { + return io.ErrUnexpectedEOF } + m.Value = int64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:])) + iNdEx += 8 case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SpanId", wireType)