Update gen-go files. (#69)

pull/72/head
Bogdan Drutu 6 years ago committed by GitHub
parent c6f4752cae
commit 0f8977f637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 207
      gen-go/exporterproto/exporter.pb.go
  2. 894
      gen-go/metricsproto/metrics.pb.go
  3. 767
      gen-go/statsproto/metricsproto/metrics.pb.go
  4. 326
      gen-go/statsproto/stats.pb.go
  5. 601
      gen-go/traceproto/trace.pb.go

@ -1,25 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: opencensus/proto/exporter/exporter.proto
/*
Package exporterproto is a generated protocol buffer package.
It is generated from these files:
opencensus/proto/exporter/exporter.proto
It has these top-level messages:
ExportSpanRequest
ExportSpanResponse
ExportMetricsRequest
ExportMetricsResponse
*/
package exporterproto
package exporterproto // import "github.com/census-instrumentation/opencensus-proto/gen-go/exporterproto"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import opencensus_proto_trace "github.com/census-instrumentation/opencensus-proto/gen-go/traceproto"
import opencensus_proto_stats_metrics "github.com/census-instrumentation/opencensus-proto/gen-go/statsproto/metricsproto"
import metricsproto "github.com/census-instrumentation/opencensus-proto/gen-go/metricsproto"
import traceproto "github.com/census-instrumentation/opencensus-proto/gen-go/traceproto"
import (
context "golang.org/x/net/context"
@ -38,15 +26,37 @@ var _ = math.Inf
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ExportSpanRequest struct {
Spans []*opencensus_proto_trace.Span `protobuf:"bytes,1,rep,name=spans" json:"spans,omitempty"`
Spans []*traceproto.Span `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExportSpanRequest) Reset() { *m = ExportSpanRequest{} }
func (m *ExportSpanRequest) String() string { return proto.CompactTextString(m) }
func (*ExportSpanRequest) ProtoMessage() {}
func (*ExportSpanRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_exporter_086a4e9f05685d10, []int{0}
}
func (m *ExportSpanRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExportSpanRequest.Unmarshal(m, b)
}
func (m *ExportSpanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExportSpanRequest.Marshal(b, m, deterministic)
}
func (dst *ExportSpanRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExportSpanRequest.Merge(dst, src)
}
func (m *ExportSpanRequest) XXX_Size() int {
return xxx_messageInfo_ExportSpanRequest.Size(m)
}
func (m *ExportSpanRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ExportSpanRequest.DiscardUnknown(m)
}
func (m *ExportSpanRequest) Reset() { *m = ExportSpanRequest{} }
func (m *ExportSpanRequest) String() string { return proto.CompactTextString(m) }
func (*ExportSpanRequest) ProtoMessage() {}
func (*ExportSpanRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
var xxx_messageInfo_ExportSpanRequest proto.InternalMessageInfo
func (m *ExportSpanRequest) GetSpans() []*opencensus_proto_trace.Span {
func (m *ExportSpanRequest) GetSpans() []*traceproto.Span {
if m != nil {
return m.Spans
}
@ -54,23 +64,67 @@ func (m *ExportSpanRequest) GetSpans() []*opencensus_proto_trace.Span {
}
type ExportSpanResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExportSpanResponse) Reset() { *m = ExportSpanResponse{} }
func (m *ExportSpanResponse) String() string { return proto.CompactTextString(m) }
func (*ExportSpanResponse) ProtoMessage() {}
func (*ExportSpanResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *ExportSpanResponse) Reset() { *m = ExportSpanResponse{} }
func (m *ExportSpanResponse) String() string { return proto.CompactTextString(m) }
func (*ExportSpanResponse) ProtoMessage() {}
func (*ExportSpanResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_exporter_086a4e9f05685d10, []int{1}
}
func (m *ExportSpanResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExportSpanResponse.Unmarshal(m, b)
}
func (m *ExportSpanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExportSpanResponse.Marshal(b, m, deterministic)
}
func (dst *ExportSpanResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExportSpanResponse.Merge(dst, src)
}
func (m *ExportSpanResponse) XXX_Size() int {
return xxx_messageInfo_ExportSpanResponse.Size(m)
}
func (m *ExportSpanResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ExportSpanResponse.DiscardUnknown(m)
}
var xxx_messageInfo_ExportSpanResponse proto.InternalMessageInfo
type ExportMetricsRequest struct {
Metrics []*opencensus_proto_stats_metrics.Metric `protobuf:"bytes,1,rep,name=metrics" json:"metrics,omitempty"`
Metrics []*metricsproto.Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExportMetricsRequest) Reset() { *m = ExportMetricsRequest{} }
func (m *ExportMetricsRequest) String() string { return proto.CompactTextString(m) }
func (*ExportMetricsRequest) ProtoMessage() {}
func (*ExportMetricsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *ExportMetricsRequest) Reset() { *m = ExportMetricsRequest{} }
func (m *ExportMetricsRequest) String() string { return proto.CompactTextString(m) }
func (*ExportMetricsRequest) ProtoMessage() {}
func (*ExportMetricsRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_exporter_086a4e9f05685d10, []int{2}
}
func (m *ExportMetricsRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExportMetricsRequest.Unmarshal(m, b)
}
func (m *ExportMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExportMetricsRequest.Marshal(b, m, deterministic)
}
func (dst *ExportMetricsRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExportMetricsRequest.Merge(dst, src)
}
func (m *ExportMetricsRequest) XXX_Size() int {
return xxx_messageInfo_ExportMetricsRequest.Size(m)
}
func (m *ExportMetricsRequest) XXX_DiscardUnknown() {
xxx_messageInfo_ExportMetricsRequest.DiscardUnknown(m)
}
var xxx_messageInfo_ExportMetricsRequest proto.InternalMessageInfo
func (m *ExportMetricsRequest) GetMetrics() []*opencensus_proto_stats_metrics.Metric {
func (m *ExportMetricsRequest) GetMetrics() []*metricsproto.Metric {
if m != nil {
return m.Metrics
}
@ -78,12 +132,34 @@ func (m *ExportMetricsRequest) GetMetrics() []*opencensus_proto_stats_metrics.Me
}
type ExportMetricsResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ExportMetricsResponse) Reset() { *m = ExportMetricsResponse{} }
func (m *ExportMetricsResponse) String() string { return proto.CompactTextString(m) }
func (*ExportMetricsResponse) ProtoMessage() {}
func (*ExportMetricsResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_exporter_086a4e9f05685d10, []int{3}
}
func (m *ExportMetricsResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ExportMetricsResponse.Unmarshal(m, b)
}
func (m *ExportMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ExportMetricsResponse.Marshal(b, m, deterministic)
}
func (dst *ExportMetricsResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_ExportMetricsResponse.Merge(dst, src)
}
func (m *ExportMetricsResponse) XXX_Size() int {
return xxx_messageInfo_ExportMetricsResponse.Size(m)
}
func (m *ExportMetricsResponse) XXX_DiscardUnknown() {
xxx_messageInfo_ExportMetricsResponse.DiscardUnknown(m)
}
func (m *ExportMetricsResponse) Reset() { *m = ExportMetricsResponse{} }
func (m *ExportMetricsResponse) String() string { return proto.CompactTextString(m) }
func (*ExportMetricsResponse) ProtoMessage() {}
func (*ExportMetricsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
var xxx_messageInfo_ExportMetricsResponse proto.InternalMessageInfo
func init() {
proto.RegisterType((*ExportSpanRequest)(nil), "opencensus.proto.exporter.ExportSpanRequest")
@ -100,8 +176,9 @@ var _ grpc.ClientConn
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for Export service
// ExportClient is the client API for Export service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ExportClient interface {
ExportSpan(ctx context.Context, opts ...grpc.CallOption) (Export_ExportSpanClient, error)
ExportMetrics(ctx context.Context, opts ...grpc.CallOption) (Export_ExportMetricsClient, error)
@ -116,7 +193,7 @@ func NewExportClient(cc *grpc.ClientConn) ExportClient {
}
func (c *exportClient) ExportSpan(ctx context.Context, opts ...grpc.CallOption) (Export_ExportSpanClient, error) {
stream, err := grpc.NewClientStream(ctx, &_Export_serviceDesc.Streams[0], c.cc, "/opencensus.proto.exporter.Export/ExportSpan", opts...)
stream, err := c.cc.NewStream(ctx, &_Export_serviceDesc.Streams[0], "/opencensus.proto.exporter.Export/ExportSpan", opts...)
if err != nil {
return nil, err
}
@ -147,7 +224,7 @@ func (x *exportExportSpanClient) Recv() (*ExportSpanResponse, error) {
}
func (c *exportClient) ExportMetrics(ctx context.Context, opts ...grpc.CallOption) (Export_ExportMetricsClient, error) {
stream, err := grpc.NewClientStream(ctx, &_Export_serviceDesc.Streams[1], c.cc, "/opencensus.proto.exporter.Export/ExportMetrics", opts...)
stream, err := c.cc.NewStream(ctx, &_Export_serviceDesc.Streams[1], "/opencensus.proto.exporter.Export/ExportMetrics", opts...)
if err != nil {
return nil, err
}
@ -177,8 +254,7 @@ func (x *exportExportMetricsClient) Recv() (*ExportMetricsResponse, error) {
return m, nil
}
// Server API for Export service
// ExportServer is the server API for Export service.
type ExportServer interface {
ExportSpan(Export_ExportSpanServer) error
ExportMetrics(Export_ExportMetricsServer) error
@ -261,28 +337,29 @@ var _Export_serviceDesc = grpc.ServiceDesc{
Metadata: "opencensus/proto/exporter/exporter.proto",
}
func init() { proto.RegisterFile("opencensus/proto/exporter/exporter.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 305 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0xcf, 0x4a, 0xf3, 0x40,
0x10, 0xff, 0xc2, 0x87, 0x15, 0x46, 0x3c, 0xb8, 0x54, 0xd4, 0xd0, 0x83, 0xe4, 0x20, 0x3d, 0x34,
0xbb, 0xa5, 0xbe, 0x80, 0x14, 0xa4, 0x27, 0xa1, 0xd4, 0x8b, 0x78, 0x4b, 0xc3, 0x10, 0x73, 0xc8,
0xee, 0xba, 0x3b, 0x81, 0xbc, 0xb7, 0x2f, 0x20, 0xee, 0x24, 0x4d, 0x6b, 0x28, 0xf6, 0x92, 0x09,
0xbf, 0xfc, 0xfe, 0x65, 0x18, 0x98, 0x1a, 0x8b, 0x3a, 0x47, 0xed, 0x6b, 0xaf, 0xac, 0x33, 0x64,
0x14, 0x36, 0xd6, 0x38, 0x42, 0xb7, 0x7b, 0x91, 0x01, 0x17, 0x77, 0x3d, 0x93, 0x11, 0xd9, 0x11,
0xe2, 0x64, 0x60, 0x42, 0x2e, 0xcb, 0x91, 0x9f, 0x4c, 0x8e, 0x67, 0x03, 0x8e, 0xa7, 0x8c, 0xbc,
0xaa, 0x90, 0x5c, 0x99, 0xef, 0x26, 0xb3, 0x93, 0x15, 0x5c, 0x3d, 0x07, 0xf7, 0x57, 0x9b, 0xe9,
0x0d, 0x7e, 0xd6, 0xe8, 0x49, 0x2c, 0xe0, 0xcc, 0xdb, 0x4c, 0xfb, 0xdb, 0xe8, 0xfe, 0xff, 0xf4,
0x62, 0x31, 0x91, 0x83, 0x46, 0x1c, 0x18, 0x34, 0x4c, 0x4d, 0xc6, 0x20, 0xf6, 0x8d, 0xbc, 0x35,
0xda, 0x63, 0xf2, 0x06, 0x63, 0x46, 0x5f, 0x38, 0xb5, 0x4b, 0x78, 0x82, 0xf3, 0xb6, 0x47, 0x9b,
0xf1, 0x30, 0xcc, 0x08, 0xb5, 0x65, 0x57, 0x97, 0x0d, 0x36, 0x9d, 0x2c, 0xb9, 0x81, 0xeb, 0x5f,
0xce, 0x1c, 0xb9, 0xf8, 0x8a, 0x60, 0xc4, 0x5f, 0x84, 0x01, 0xe8, 0x3b, 0x89, 0x99, 0x3c, 0xba,
0x58, 0x39, 0xd8, 0x41, 0x9c, 0x9e, 0xc8, 0x6e, 0x7f, 0xf4, 0xdf, 0x34, 0x9a, 0x47, 0xa2, 0x81,
0xcb, 0x83, 0x52, 0x42, 0xfd, 0xe9, 0x72, 0xb8, 0x98, 0x78, 0x7e, 0xba, 0x60, 0x3f, 0x79, 0xd9,
0xc0, 0xa4, 0x34, 0xc7, 0xb5, 0xcb, 0xb6, 0x17, 0xba, 0xf5, 0x0f, 0xbe, 0x8e, 0xde, 0x57, 0x45,
0x49, 0x1f, 0xf5, 0x56, 0xe6, 0xa6, 0x52, 0x2c, 0x49, 0x4b, 0xed, 0xc9, 0xd5, 0x15, 0x6a, 0xca,
0xa8, 0x34, 0x5a, 0xf5, 0x6e, 0x29, 0x1f, 0x52, 0x81, 0x3a, 0x2d, 0xfa, 0xc3, 0x0d, 0xe0, 0x76,
0x14, 0xc6, 0xe3, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x58, 0x53, 0x94, 0xb0, 0xe1, 0x02, 0x00,
0x00,
func init() {
proto.RegisterFile("opencensus/proto/exporter/exporter.proto", fileDescriptor_exporter_086a4e9f05685d10)
}
var fileDescriptor_exporter_086a4e9f05685d10 = []byte{
// 298 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x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08, 0x66, 0x74,
0xc3, 0x24, 0xc0, 0xd4, 0x86, 0x3d, 0xf0, 0xa3, 0xc3, 0xe4, 0xc1, 0xeb, 0xe3, 0xec, 0x44, 0xf6,
0xf8, 0xc4, 0x7f, 0x69, 0xb4, 0x8a, 0xd8, 0x00, 0x97, 0x07, 0xa5, 0x58, 0xfe, 0xa7, 0xcb, 0xe1,
0x48, 0xe2, 0xd5, 0xe9, 0x82, 0xfd, 0xe4, 0xf5, 0x00, 0x8b, 0x56, 0x1e, 0xd7, 0xae, 0xc7, 0x5e,
0xa8, 0xb7, 0xdf, 0xf8, 0x36, 0x7a, 0xdb, 0x34, 0xad, 0x7d, 0xef, 0x77, 0xbc, 0x96, 0x5d, 0x4e,
0x92, 0xac, 0x15, 0xc6, 0xea, 0xbe, 0x43, 0x61, 0x2b, 0xdb, 0x4a, 0x91, 0x4f, 0x6e, 0x19, 0x2d,
0x4f, 0x83, 0x22, 0x6b, 0xa6, 0x65, 0x75, 0xe0, 0x6e, 0xe6, 0x8e, 0xc7, 0xaf, 0x00, 0x00, 0x00,
0xff, 0xff, 0xef, 0x97, 0x71, 0xe7, 0xd5, 0x02, 0x00, 0x00,
}

@ -0,0 +1,894 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: opencensus/proto/metrics/metrics.proto
package metricsproto // import "github.com/census-instrumentation/opencensus-proto/gen-go/metricsproto"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The kind of metric. It describes how the data is reported.
//
// A gauge is an instantaneous measurement of a value.
//
// A cumulative measurement is a value accumulated over a time interval. In
// a time series, cumulative measurements should have the same start time and
// increasing end times, until an event resets the cumulative value to zero
// and sets a new start time for the following points.
type MetricDescriptor_Type int32
const (
// Do not use this default value.
MetricDescriptor_UNSPECIFIED MetricDescriptor_Type = 0
// Integer gauge.
MetricDescriptor_GAUGE_INT64 MetricDescriptor_Type = 1
// Floating point gauge.
MetricDescriptor_GAUGE_DOUBLE MetricDescriptor_Type = 2
// Integer cumulative measurement.
MetricDescriptor_CUMULATIVE_INT64 MetricDescriptor_Type = 3
// Floating point cumulative measurement.
MetricDescriptor_CUMULATIVE_DOUBLE MetricDescriptor_Type = 4
// Distribution cumulative measurement.
MetricDescriptor_CUMULATIVE_DISTRIBUTION MetricDescriptor_Type = 5
)
var MetricDescriptor_Type_name = map[int32]string{
0: "UNSPECIFIED",
1: "GAUGE_INT64",
2: "GAUGE_DOUBLE",
3: "CUMULATIVE_INT64",
4: "CUMULATIVE_DOUBLE",
5: "CUMULATIVE_DISTRIBUTION",
}
var MetricDescriptor_Type_value = map[string]int32{
"UNSPECIFIED": 0,
"GAUGE_INT64": 1,
"GAUGE_DOUBLE": 2,
"CUMULATIVE_INT64": 3,
"CUMULATIVE_DOUBLE": 4,
"CUMULATIVE_DISTRIBUTION": 5,
}
func (x MetricDescriptor_Type) String() string {
return proto.EnumName(MetricDescriptor_Type_name, int32(x))
}
func (MetricDescriptor_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_metrics_9a93938b67b723d3, []int{1, 0}
}
// Defines a Metric which has one or more timeseries.
type Metric struct {
// The definition of the Metric. For now, we send the full MetricDescriptor
// every time in order to keep the protocol stateless, but this is one of the
// places where we can make future changes to make the protocol more
// efficient.
MetricDescriptor *MetricDescriptor `protobuf:"bytes,1,opt,name=metric_descriptor,json=metricDescriptor,proto3" json:"metric_descriptor,omitempty"`
// One or more timeseries for a single metric, where each timeseries has
// one or more points. The type of the timeseries must match
// metric_descriptor.type, so only one of the two should be populated.
GaugeTimeseries []*GaugeTimeSeries `protobuf:"bytes,2,rep,name=gauge_timeseries,json=gaugeTimeseries,proto3" json:"gauge_timeseries,omitempty"`
CumulativeTimeseries []*CumulativeTimeSeries `protobuf:"bytes,3,rep,name=cumulative_timeseries,json=cumulativeTimeseries,proto3" json:"cumulative_timeseries,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Metric) Reset() { *m = Metric{} }
func (m *Metric) String() string { return proto.CompactTextString(m) }
func (*Metric) ProtoMessage() {}
func (*Metric) Descriptor() ([]byte, []int) {
return fileDescriptor_metrics_9a93938b67b723d3, []int{0}
}
func (m *Metric) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Metric.Unmarshal(m, b)
}
func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Metric.Marshal(b, m, deterministic)
}
func (dst *Metric) XXX_Merge(src proto.Message) {
xxx_messageInfo_Metric.Merge(dst, src)
}
func (m *Metric) XXX_Size() int {
return xxx_messageInfo_Metric.Size(m)
}
func (m *Metric) XXX_DiscardUnknown() {
xxx_messageInfo_Metric.DiscardUnknown(m)
}
var xxx_messageInfo_Metric proto.InternalMessageInfo
func (m *Metric) GetMetricDescriptor() *MetricDescriptor {
if m != nil {
return m.MetricDescriptor
}
return nil
}
func (m *Metric) GetGaugeTimeseries() []*GaugeTimeSeries {
if m != nil {
return m.GaugeTimeseries
}
return nil
}
func (m *Metric) GetCumulativeTimeseries() []*CumulativeTimeSeries {
if m != nil {
return m.CumulativeTimeseries
}
return nil
}
// Defines a metric type and its schema.
type MetricDescriptor struct {
// The metric type, including its DNS name prefix. It must be unique.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A detailed description of the metric, which can be used in documentation.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// The 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"`
Type MetricDescriptor_Type `protobuf:"varint,4,opt,name=type,proto3,enum=opencensus.proto.metrics.MetricDescriptor_Type" json:"type,omitempty"`
// The label keys associated with the metric descriptor.
LabelKeys []*LabelKey `protobuf:"bytes,5,rep,name=label_keys,json=labelKeys,proto3" json:"label_keys,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MetricDescriptor) Reset() { *m = MetricDescriptor{} }
func (m *MetricDescriptor) String() string { return proto.CompactTextString(m) }
func (*MetricDescriptor) ProtoMessage() {}
func (*MetricDescriptor) Descriptor() ([]byte, []int) {
return fileDescriptor_metrics_9a93938b67b723d3, []int{1}
}
func (m *MetricDescriptor) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MetricDescriptor.Unmarshal(m, b)
}
func (m *MetricDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MetricDescriptor.Marshal(b, m, deterministic)
}
func (dst *MetricDescriptor) XXX_Merge(src proto.Message) {
xxx_messageInfo_MetricDescriptor.Merge(dst, src)
}
func (m *MetricDescriptor) XXX_Size() int {
return xxx_messageInfo_MetricDescriptor.Size(m)
}
func (m *MetricDescriptor) XXX_DiscardUnknown() {
xxx_messageInfo_MetricDescriptor.DiscardUnknown(m)
}
var xxx_messageInfo_MetricDescriptor proto.InternalMessageInfo
func (m *MetricDescriptor) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *MetricDescriptor) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *MetricDescriptor) GetUnit() string {
if m != nil {
return m.Unit
}
return ""
}
func (m *MetricDescriptor) GetType() MetricDescriptor_Type {
if m != nil {
return m.Type
}
return MetricDescriptor_UNSPECIFIED
}
func (m *MetricDescriptor) GetLabelKeys() []*LabelKey {
if m != nil {
return m.LabelKeys
}
return nil
}
// Defines a label key associated with a metric descriptor.
type LabelKey struct {
// The key for the label.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// A human-readable description of what this label key represents.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LabelKey) Reset() { *m = LabelKey{} }
func (m *LabelKey) String() string { return proto.CompactTextString(m) }
func (*LabelKey) ProtoMessage() {}
func (*LabelKey) Descriptor() ([]byte, []int) {
return fileDescriptor_metrics_9a93938b67b723d3, []int{2}
}
func (m *LabelKey) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LabelKey.Unmarshal(m, b)
}
func (m *LabelKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LabelKey.Marshal(b, m, deterministic)
}
func (dst *LabelKey) XXX_Merge(src proto.Message) {
xxx_messageInfo_LabelKey.Merge(dst, src)
}
func (m *LabelKey) XXX_Size() int {
return xxx_messageInfo_LabelKey.Size(m)
}
func (m *LabelKey) XXX_DiscardUnknown() {
xxx_messageInfo_LabelKey.DiscardUnknown(m)
}
var xxx_messageInfo_LabelKey proto.InternalMessageInfo
func (m *LabelKey) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *LabelKey) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
// A collection of data points that describes the time-varying values
// of a gauge metric.
type GaugeTimeSeries 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.
LabelValues []*LabelValue `protobuf:"bytes,1,rep,name=label_values,json=labelValues,proto3" json:"label_values,omitempty"`
// The data points of this timeseries. Point type MUST match the MetricDescriptor.type.
Points []*Point `protobuf:"bytes,2,rep,name=points,proto3" json:"points,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GaugeTimeSeries) Reset() { *m = GaugeTimeSeries{} }
func (m *GaugeTimeSeries) String() string { return proto.CompactTextString(m) }
func (*GaugeTimeSeries) ProtoMessage() {}
func (*GaugeTimeSeries) Descriptor() ([]byte, []int) {
return fileDescriptor_metrics_9a93938b67b723d3, []int{3}
}
func (m *GaugeTimeSeries) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GaugeTimeSeries.Unmarshal(m, b)
}
func (m *GaugeTimeSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GaugeTimeSeries.Marshal(b, m, deterministic)
}
func (dst *GaugeTimeSeries) XXX_Merge(src proto.Message) {
xxx_messageInfo_GaugeTimeSeries.Merge(dst, src)
}
func (m *GaugeTimeSeries) XXX_Size() int {
return xxx_messageInfo_GaugeTimeSeries.Size(m)
}
func (m *GaugeTimeSeries) XXX_DiscardUnknown() {
xxx_messageInfo_GaugeTimeSeries.DiscardUnknown(m)
}
var xxx_messageInfo_GaugeTimeSeries proto.InternalMessageInfo
func (m *GaugeTimeSeries) GetLabelValues() []*LabelValue {
if m != nil {
return m.LabelValues
}
return nil
}
func (m *GaugeTimeSeries) GetPoints() []*Point {
if m != nil {
return m.Points
}
return nil
}
// A collection of data points that describes the time-varying values
// of a cumulative metric.
type CumulativeTimeSeries struct {
// The time that the cumulative value was reset to zero.
StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// 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.
LabelValues []*LabelValue `protobuf:"bytes,2,rep,name=label_values,json=labelValues,proto3" json:"label_values,omitempty"`
// The data points of this timeseries. Point type MUST match the MetricDescriptor.type.
Points []*Point `protobuf:"bytes,3,rep,name=points,proto3" json:"points,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CumulativeTimeSeries) Reset() { *m = CumulativeTimeSeries{} }
func (m *CumulativeTimeSeries) String() string { return proto.CompactTextString(m) }
func (*CumulativeTimeSeries) ProtoMessage() {}
func (*CumulativeTimeSeries) Descriptor() ([]byte, []int) {
return fileDescriptor_metrics_9a93938b67b723d3, []int{4}
}
func (m *CumulativeTimeSeries) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CumulativeTimeSeries.Unmarshal(m, b)
}
func (m *CumulativeTimeSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CumulativeTimeSeries.Marshal(b, m, deterministic)
}
func (dst *CumulativeTimeSeries) XXX_Merge(src proto.Message) {
xxx_messageInfo_CumulativeTimeSeries.Merge(dst, src)
}
func (m *CumulativeTimeSeries) XXX_Size() int {
return xxx_messageInfo_CumulativeTimeSeries.Size(m)
}
func (m *CumulativeTimeSeries) XXX_DiscardUnknown() {
xxx_messageInfo_CumulativeTimeSeries.DiscardUnknown(m)
}
var xxx_messageInfo_CumulativeTimeSeries proto.InternalMessageInfo
func (m *CumulativeTimeSeries) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *CumulativeTimeSeries) GetLabelValues() []*LabelValue {
if m != nil {
return m.LabelValues
}
return nil
}
func (m *CumulativeTimeSeries) GetPoints() []*Point {
if m != nil {
return m.Points
}
return nil
}
type LabelValue struct {
// The value for the label.
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// If false the value field is ignored and considered not set.
// This is used to differentiate a missing label from an empty string.
HasValue bool `protobuf:"varint,2,opt,name=has_value,json=hasValue,proto3" json:"has_value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LabelValue) Reset() { *m = LabelValue{} }
func (m *LabelValue) String() string { return proto.CompactTextString(m) }
func (*LabelValue) ProtoMessage() {}
func (*LabelValue) Descriptor() ([]byte, []int) {
return fileDescriptor_metrics_9a93938b67b723d3, []int{5}
}
func (m *LabelValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LabelValue.Unmarshal(m, b)
}
func (m *LabelValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LabelValue.Marshal(b, m, deterministic)
}
func (dst *LabelValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_LabelValue.Merge(dst, src)
}
func (m *LabelValue) XXX_Size() int {
return xxx_messageInfo_LabelValue.Size(m)
}
func (m *LabelValue) XXX_DiscardUnknown() {
xxx_messageInfo_LabelValue.DiscardUnknown(m)
}
var xxx_messageInfo_LabelValue proto.InternalMessageInfo
func (m *LabelValue) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *LabelValue) GetHasValue() bool {
if m != nil {
return m.HasValue
}
return false
}
// A timestamped measurement.
type Point struct {
// The moment when this point was recorded.
Timestamp *timestamp.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// The actual point value.
//
// Types that are valid to be assigned to Value:
// *Point_Int64Value
// *Point_DoubleValue
// *Point_DistributionValue
Value isPoint_Value `protobuf_oneof:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Point) Reset() { *m = Point{} }
func (m *Point) String() string { return proto.CompactTextString(m) }
func (*Point) ProtoMessage() {}
func (*Point) Descriptor() ([]byte, []int) {
return fileDescriptor_metrics_9a93938b67b723d3, []int{6}
}
func (m *Point) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Point.Unmarshal(m, b)
}
func (m *Point) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Point.Marshal(b, m, deterministic)
}
func (dst *Point) XXX_Merge(src proto.Message) {
xxx_messageInfo_Point.Merge(dst, src)
}
func (m *Point) XXX_Size() int {
return xxx_messageInfo_Point.Size(m)
}
func (m *Point) XXX_DiscardUnknown() {
xxx_messageInfo_Point.DiscardUnknown(m)
}
var xxx_messageInfo_Point proto.InternalMessageInfo
type isPoint_Value interface {
isPoint_Value()
}
type Point_Int64Value struct {
Int64Value int64 `protobuf:"varint,2,opt,name=int64_value,json=int64Value,proto3,oneof"`
}
type Point_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type Point_DistributionValue struct {
DistributionValue *DistributionValue `protobuf:"bytes,4,opt,name=distribution_value,json=distributionValue,proto3,oneof"`
}
func (*Point_Int64Value) isPoint_Value() {}
func (*Point_DoubleValue) isPoint_Value() {}
func (*Point_DistributionValue) isPoint_Value() {}
func (m *Point) GetValue() isPoint_Value {
if m != nil {
return m.Value
}
return nil
}
func (m *Point) GetTimestamp() *timestamp.Timestamp {
if m != nil {
return m.Timestamp
}
return nil
}
func (m *Point) GetInt64Value() int64 {
if x, ok := m.GetValue().(*Point_Int64Value); ok {
return x.Int64Value
}
return 0
}
func (m *Point) GetDoubleValue() float64 {
if x, ok := m.GetValue().(*Point_DoubleValue); ok {
return x.DoubleValue
}
return 0
}
func (m *Point) GetDistributionValue() *DistributionValue {
if x, ok := m.GetValue().(*Point_DistributionValue); ok {
return x.DistributionValue
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Point) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Point_OneofMarshaler, _Point_OneofUnmarshaler, _Point_OneofSizer, []interface{}{
(*Point_Int64Value)(nil),
(*Point_DoubleValue)(nil),
(*Point_DistributionValue)(nil),
}
}
func _Point_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Point)
// value
switch x := m.Value.(type) {
case *Point_Int64Value:
b.EncodeVarint(2<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.Int64Value))
case *Point_DoubleValue:
b.EncodeVarint(3<<3 | proto.WireFixed64)
b.EncodeFixed64(math.Float64bits(x.DoubleValue))
case *Point_DistributionValue:
b.EncodeVarint(4<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.DistributionValue); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("Point.Value has unexpected type %T", x)
}
return nil
}
func _Point_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Point)
switch tag {
case 2: // value.int64_value
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Value = &Point_Int64Value{int64(x)}
return true, err
case 3: // value.double_value
if wire != proto.WireFixed64 {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeFixed64()
m.Value = &Point_DoubleValue{math.Float64frombits(x)}
return true, err
case 4: // value.distribution_value
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(DistributionValue)
err := b.DecodeMessage(msg)
m.Value = &Point_DistributionValue{msg}
return true, err
default:
return false, nil
}
}
func _Point_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Point)
// value
switch x := m.Value.(type) {
case *Point_Int64Value:
n += 1 // tag and wire
n += proto.SizeVarint(uint64(x.Int64Value))
case *Point_DoubleValue:
n += 1 // tag and wire
n += 8
case *Point_DistributionValue:
s := proto.Size(x.DistributionValue)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Distribution contains summary statistics for a population of values. It
// optionally contains a histogram representing the distribution of those
// values across a set of buckets.
type DistributionValue struct {
// The number of values in the population. Must be non-negative. This value
// must equal the sum of the values in bucket_counts if a histogram is
// provided.
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
// The arithmetic mean of the values in the population. If count is zero
// then this field must be zero.
Mean float64 `protobuf:"fixed64,2,opt,name=mean,proto3" json:"mean,omitempty"`
// The sum of squared deviations from the mean of the values in the
// population. For values x_i this is:
//
// Sum[i=1..n]((x_i - mean)^2)
//
// Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
// describes Welford's method for accumulating this sum in one pass.
//
// If count is zero then this field must be zero.
SumOfSquaredDeviation float64 `protobuf:"fixed64,3,opt,name=sum_of_squared_deviation,json=sumOfSquaredDeviation,proto3" json:"sum_of_squared_deviation,omitempty"`
// A Distribution may optionally contain a histogram of the values in the
// population. The bucket boundaries for that histogram are described by
// bucket_bounds. This defines size(bucket_bounds) + 1 (= N)
// buckets. The boundaries for bucket index i are:
//
// (-infinity, bucket_bounds[i]) for i == 0
// [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-2
// [bucket_bounds[i-1], +infinity) for i == N-1
//
// i.e. an underflow bucket (number 0), zero or more finite buckets (1
// through N - 2, and an overflow bucket (N - 1), with inclusive lower
// bounds and exclusive upper bounds.
//
// If bucket_bounds has no elements (zero size), then there is no
// histogram associated with the Distribution. If bucket_bounds has only
// one element, there are no finite buckets, and that single element is the
// common boundary of the overflow and underflow buckets. The values must
// be monotonically increasing.
//
// Don't change bucket boundaries within a timeseries if your backend
// doesn't support this.
BucketBounds []float64 `protobuf:"fixed64,4,rep,packed,name=bucket_bounds,json=bucketBounds,proto3" json:"bucket_bounds,omitempty"`
// If the distribution does not have a histogram, then omit this field.
// If there is a histogram, then the sum of the values in the Bucket counts
// must equal the value in the count field of the distribution.
Buckets []*DistributionValue_Bucket `protobuf:"bytes,5,rep,name=buckets,proto3" json:"buckets,omitempty"`
// If the distribution does not have a histogram, then omit this field.
Exemplars []*DistributionValue_Exemplar `protobuf:"bytes,6,rep,name=exemplars,proto3" json:"exemplars,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DistributionValue) Reset() { *m = DistributionValue{} }
func (m *DistributionValue) String() string { return proto.CompactTextString(m) }
func (*DistributionValue) ProtoMessage() {}
func (*DistributionValue) Descriptor() ([]byte, []int) {
return fileDescriptor_metrics_9a93938b67b723d3, []int{7}
}
func (m *DistributionValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DistributionValue.Unmarshal(m, b)
}
func (m *DistributionValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DistributionValue.Marshal(b, m, deterministic)
}
func (dst *DistributionValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_DistributionValue.Merge(dst, src)
}
func (m *DistributionValue) XXX_Size() int {
return xxx_messageInfo_DistributionValue.Size(m)
}
func (m *DistributionValue) XXX_DiscardUnknown() {
xxx_messageInfo_DistributionValue.DiscardUnknown(m)
}
var xxx_messageInfo_DistributionValue proto.InternalMessageInfo
func (m *DistributionValue) GetCount() int64 {
if m != nil {
return m.Count
}
return 0
}
func (m *DistributionValue) GetMean() float64 {
if m != nil {
return m.Mean
}
return 0
}
func (m *DistributionValue) GetSumOfSquaredDeviation() float64 {
if m != nil {
return m.SumOfSquaredDeviation
}
return 0
}
func (m *DistributionValue) GetBucketBounds() []float64 {
if m != nil {
return m.BucketBounds
}
return nil
}
func (m *DistributionValue) GetBuckets() []*DistributionValue_Bucket {
if m != nil {
return m.Buckets
}
return nil
}
func (m *DistributionValue) GetExemplars() []*DistributionValue_Exemplar {
if m != nil {
return m.Exemplars
}
return nil
}
type DistributionValue_Bucket struct {
// The number of values in each bucket of the histogram, as described in
// bucket_bounds.
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DistributionValue_Bucket) Reset() { *m = DistributionValue_Bucket{} }
func (m *DistributionValue_Bucket) String() string { return proto.CompactTextString(m) }
func (*DistributionValue_Bucket) ProtoMessage() {}
func (*DistributionValue_Bucket) Descriptor() ([]byte, []int) {
return fileDescriptor_metrics_9a93938b67b723d3, []int{7, 0}
}
func (m *DistributionValue_Bucket) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DistributionValue_Bucket.Unmarshal(m, b)
}
func (m *DistributionValue_Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DistributionValue_Bucket.Marshal(b, m, deterministic)
}
func (dst *DistributionValue_Bucket) XXX_Merge(src proto.Message) {
xxx_messageInfo_DistributionValue_Bucket.Merge(dst, src)
}
func (m *DistributionValue_Bucket) XXX_Size() int {
return xxx_messageInfo_DistributionValue_Bucket.Size(m)
}
func (m *DistributionValue_Bucket) XXX_DiscardUnknown() {
xxx_messageInfo_DistributionValue_Bucket.DiscardUnknown(m)
}
var xxx_messageInfo_DistributionValue_Bucket proto.InternalMessageInfo
func (m *DistributionValue_Bucket) GetCount() int64 {
if m != nil {
return m.Count
}
return 0
}
// Exemplars are example points that may be used to annotate aggregated
// Distribution values. They are metadata that gives information about a
// particular value added to a Distribution bucket.
type DistributionValue_Exemplar struct {
// Value of the exemplar point. It determines which bucket the exemplar
// belongs to.
Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
// The observation (sampling) time of the above value.
Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Contextual information about the example value.
Attachments map[string]string `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DistributionValue_Exemplar) Reset() { *m = DistributionValue_Exemplar{} }
func (m *DistributionValue_Exemplar) String() string { return proto.CompactTextString(m) }
func (*DistributionValue_Exemplar) ProtoMessage() {}
func (*DistributionValue_Exemplar) Descriptor() ([]byte, []int) {
return fileDescriptor_metrics_9a93938b67b723d3, []int{7, 1}
}
func (m *DistributionValue_Exemplar) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DistributionValue_Exemplar.Unmarshal(m, b)
}
func (m *DistributionValue_Exemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DistributionValue_Exemplar.Marshal(b, m, deterministic)
}
func (dst *DistributionValue_Exemplar) XXX_Merge(src proto.Message) {
xxx_messageInfo_DistributionValue_Exemplar.Merge(dst, src)
}
func (m *DistributionValue_Exemplar) XXX_Size() int {
return xxx_messageInfo_DistributionValue_Exemplar.Size(m)
}
func (m *DistributionValue_Exemplar) XXX_DiscardUnknown() {
xxx_messageInfo_DistributionValue_Exemplar.DiscardUnknown(m)
}
var xxx_messageInfo_DistributionValue_Exemplar proto.InternalMessageInfo
func (m *DistributionValue_Exemplar) GetValue() float64 {
if m != nil {
return m.Value
}
return 0
}
func (m *DistributionValue_Exemplar) GetTimestamp() *timestamp.Timestamp {
if m != nil {
return m.Timestamp
}
return nil
}
func (m *DistributionValue_Exemplar) GetAttachments() map[string]string {
if m != nil {
return m.Attachments
}
return nil
}
func init() {
proto.RegisterType((*Metric)(nil), "opencensus.proto.metrics.Metric")
proto.RegisterType((*MetricDescriptor)(nil), "opencensus.proto.metrics.MetricDescriptor")
proto.RegisterType((*LabelKey)(nil), "opencensus.proto.metrics.LabelKey")
proto.RegisterType((*GaugeTimeSeries)(nil), "opencensus.proto.metrics.GaugeTimeSeries")
proto.RegisterType((*CumulativeTimeSeries)(nil), "opencensus.proto.metrics.CumulativeTimeSeries")
proto.RegisterType((*LabelValue)(nil), "opencensus.proto.metrics.LabelValue")
proto.RegisterType((*Point)(nil), "opencensus.proto.metrics.Point")
proto.RegisterType((*DistributionValue)(nil), "opencensus.proto.metrics.DistributionValue")
proto.RegisterType((*DistributionValue_Bucket)(nil), "opencensus.proto.metrics.DistributionValue.Bucket")
proto.RegisterType((*DistributionValue_Exemplar)(nil), "opencensus.proto.metrics.DistributionValue.Exemplar")
proto.RegisterMapType((map[string]string)(nil), "opencensus.proto.metrics.DistributionValue.Exemplar.AttachmentsEntry")
proto.RegisterEnum("opencensus.proto.metrics.MetricDescriptor_Type", MetricDescriptor_Type_name, MetricDescriptor_Type_value)
}
func init() {
proto.RegisterFile("opencensus/proto/metrics/metrics.proto", fileDescriptor_metrics_9a93938b67b723d3)
}
var fileDescriptor_metrics_9a93938b67b723d3 = []byte{
// 891 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x6e, 0xe3, 0x44,
0x14, 0xae, 0xed, 0x34, 0xdb, 0x9c, 0x04, 0xea, 0x8e, 0x5a, 0x61, 0xa5, 0x12, 0x1b, 0xbc, 0x08,
0x15, 0x50, 0x1d, 0xa9, 0x54, 0xbb, 0x0b, 0x17, 0x8b, 0x9a, 0x26, 0xdb, 0x46, 0x74, 0xdb, 0x6a,
0x9a, 0x2c, 0x12, 0x42, 0x8a, 0x1c, 0x67, 0xea, 0x8e, 0xea, 0x9f, 0xe0, 0x99, 0xa9, 0xc8, 0x35,
0xbc, 0x01, 0xb7, 0xbc, 0x15, 0x8f, 0xc0, 0x25, 0x37, 0x3c, 0x02, 0x9a, 0x19, 0x3b, 0x49, 0xb3,
0x8d, 0xb6, 0x61, 0xaf, 0x3c, 0xf3, 0xcd, 0xf7, 0x7d, 0x33, 0xe7, 0xf8, 0x9c, 0xb1, 0xe1, 0x8b,
0x74, 0x4c, 0x92, 0x80, 0x24, 0x4c, 0xb0, 0xe6, 0x38, 0x4b, 0x79, 0xda, 0x8c, 0x09, 0xcf, 0x68,
0xc0, 0x8a, 0xa7, 0xa7, 0x50, 0xe4, 0xcc, 0x78, 0x1a, 0xf1, 0xf2, 0xf5, 0xfa, 0xd3, 0x30, 0x4d,
0xc3, 0x88, 0x68, 0xf5, 0x50, 0x5c, 0x37, 0x39, 0x8d, 0x09, 0xe3, 0x7e, 0x3c, 0xd6, 0x44, 0xf7,
0x4f, 0x13, 0xca, 0x6f, 0x14, 0x19, 0xfd, 0x08, 0x5b, 0x5a, 0x36, 0x18, 0x11, 0x16, 0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767 +0,0 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: opencensus/proto/stats/metrics/metrics.proto
/*
Package metricsproto is a generated protocol buffer package.
It is generated from these files:
opencensus/proto/stats/metrics/metrics.proto
It has these top-level messages:
MetricSet
Metric
MetricDescriptor
LabelKey
TimeSeries
LabelValue
GaugePoint
CumulativePoint
DistributionValue
*/
package metricsproto
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// The kind of metric. It describes how the data is reported.
type MetricDescriptor_Type int32
const (
// Do not use this default value.
MetricDescriptor_UNSPECIFIED MetricDescriptor_Type = 0
// An instantaneous measurement of a value.
MetricDescriptor_GAUGE MetricDescriptor_Type = 1
// A value accumulated over a time interval. Cumulative measurements in a
// time series should have the same start time and increasing end times,
// until an event resets the cumulative value to zero and sets a new
// start time for the following points.
MetricDescriptor_CUMULATIVE MetricDescriptor_Type = 2
)
var MetricDescriptor_Type_name = map[int32]string{
0: "UNSPECIFIED",
1: "GAUGE",
2: "CUMULATIVE",
}
var MetricDescriptor_Type_value = map[string]int32{
"UNSPECIFIED": 0,
"GAUGE": 1,
"CUMULATIVE": 2,
}
func (x MetricDescriptor_Type) String() string {
return proto.EnumName(MetricDescriptor_Type_name, int32(x))
}
func (MetricDescriptor_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2, 0} }
// A collection of Metrics, used for batching.
type MetricSet struct {
// Each Metric has one or more timeseries.
Metrics []*Metric `protobuf:"bytes,1,rep,name=metrics" json:"metrics,omitempty"`
}
func (m *MetricSet) Reset() { *m = MetricSet{} }
func (m *MetricSet) String() string { return proto.CompactTextString(m) }
func (*MetricSet) ProtoMessage() {}
func (*MetricSet) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *MetricSet) GetMetrics() []*Metric {
if m != nil {
return m.Metrics
}
return nil
}
// Defines a Metric which has one or more timeseries.
type Metric struct {
// The definition of the Metric. For now, we send the full MetricDescriptor
// every time in order to keep the protocol stateless, but this is one of the
// places where we can make future changes to make the protocol more
// efficient.
MetricDescriptor *MetricDescriptor `protobuf:"bytes,1,opt,name=metric_descriptor,json=metricDescriptor" json:"metric_descriptor,omitempty"`
// One or more timeseries for a single metric, where each timeseries has
// one or more points.
Timeseries []*TimeSeries `protobuf:"bytes,2,rep,name=timeseries" json:"timeseries,omitempty"`
}
func (m *Metric) Reset() { *m = Metric{} }
func (m *Metric) String() string { return proto.CompactTextString(m) }
func (*Metric) ProtoMessage() {}
func (*Metric) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Metric) GetMetricDescriptor() *MetricDescriptor {
if m != nil {
return m.MetricDescriptor
}
return nil
}
func (m *Metric) GetTimeseries() []*TimeSeries {
if m != nil {
return m.Timeseries
}
return nil
}
// Defines a metric type and its schema.
type MetricDescriptor struct {
// The metric type, including its DNS name prefix. It must be unique.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// A detailed description of the metric, which can be used in documentation.
Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
// The 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" json:"unit,omitempty"`
Type MetricDescriptor_Type `protobuf:"varint,4,opt,name=type,enum=opencensus.proto.stats.metrics.MetricDescriptor_Type" json:"type,omitempty"`
// The label keys associated with the metric descriptor.
LabelKeys []*LabelKey `protobuf:"bytes,5,rep,name=label_keys,json=labelKeys" json:"label_keys,omitempty"`
}
func (m *MetricDescriptor) Reset() { *m = MetricDescriptor{} }
func (m *MetricDescriptor) String() string { return proto.CompactTextString(m) }
func (*MetricDescriptor) ProtoMessage() {}
func (*MetricDescriptor) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *MetricDescriptor) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *MetricDescriptor) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *MetricDescriptor) GetUnit() string {
if m != nil {
return m.Unit
}
return ""
}
func (m *MetricDescriptor) GetType() MetricDescriptor_Type {
if m != nil {
return m.Type
}
return MetricDescriptor_UNSPECIFIED
}
func (m *MetricDescriptor) GetLabelKeys() []*LabelKey {
if m != nil {
return m.LabelKeys
}
return nil
}
// Defines a label key associated with a metric descriptor.
type LabelKey struct {
// The key for the label.
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
// A human-readable description of what this label key represents.
Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
}
func (m *LabelKey) Reset() { *m = LabelKey{} }
func (m *LabelKey) String() string { return proto.CompactTextString(m) }
func (*LabelKey) ProtoMessage() {}
func (*LabelKey) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *LabelKey) GetKey() string {
if m != nil {
return m.Key
}
return ""
}
func (m *LabelKey) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
// A collection of data points that describes the time-varying values
// of a metric.
type TimeSeries struct {
// TODO: Add restrictions for characters that can be used for keys and values.
// The set of label values that uniquely identify this timeseries. Apply to all
// points. The order of label values must match that of label keys in the
// metric descriptor.
LabelValues []*LabelValue `protobuf:"bytes,1,rep,name=label_values,json=labelValues" json:"label_values,omitempty"`
// The data points of this timeseries. Point type MUST match the MetricDescriptor.type, so for
// a CUMULATIVE type only cumulative_points are present and for a GAUGE type only gauge_points
// are present.
GaugePoints []*GaugePoint `protobuf:"bytes,2,rep,name=gauge_points,json=gaugePoints" json:"gauge_points,omitempty"`
CumulativePoints []*CumulativePoint `protobuf:"bytes,3,rep,name=cumulative_points,json=cumulativePoints" json:"cumulative_points,omitempty"`
}
func (m *TimeSeries) Reset() { *m = TimeSeries{} }
func (m *TimeSeries) String() string { return proto.CompactTextString(m) }
func (*TimeSeries) ProtoMessage() {}
func (*TimeSeries) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *TimeSeries) GetLabelValues() []*LabelValue {
if m != nil {
return m.LabelValues
}
return nil
}
func (m *TimeSeries) GetGaugePoints() []*GaugePoint {
if m != nil {
return m.GaugePoints
}
return nil
}
func (m *TimeSeries) GetCumulativePoints() []*CumulativePoint {
if m != nil {
return m.CumulativePoints
}
return nil
}
type LabelValue struct {
// The value for the label.
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
// If false the value field is ignored and considered not set.
HasValue bool `protobuf:"varint,2,opt,name=has_value,json=hasValue" json:"has_value,omitempty"`
}
func (m *LabelValue) Reset() { *m = LabelValue{} }
func (m *LabelValue) String() string { return proto.CompactTextString(m) }
func (*LabelValue) ProtoMessage() {}
func (*LabelValue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *LabelValue) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *LabelValue) GetHasValue() bool {
if m != nil {
return m.HasValue
}
return false
}
// An instantaneous measurement of a value.
type GaugePoint struct {
// The moment when this gauge point was recorded.
Timestamp *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=timestamp" json:"timestamp,omitempty"`
// The actual point value.
//
// Types that are valid to be assigned to Value:
// *GaugePoint_Int64Value
// *GaugePoint_DoubleValue
Value isGaugePoint_Value `protobuf_oneof:"value"`
}
func (m *GaugePoint) Reset() { *m = GaugePoint{} }
func (m *GaugePoint) String() string { return proto.CompactTextString(m) }
func (*GaugePoint) ProtoMessage() {}
func (*GaugePoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
type isGaugePoint_Value interface {
isGaugePoint_Value()
}
type GaugePoint_Int64Value struct {
Int64Value int64 `protobuf:"varint,2,opt,name=int64_value,json=int64Value,oneof"`
}
type GaugePoint_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,oneof"`
}
func (*GaugePoint_Int64Value) isGaugePoint_Value() {}
func (*GaugePoint_DoubleValue) isGaugePoint_Value() {}
func (m *GaugePoint) GetValue() isGaugePoint_Value {
if m != nil {
return m.Value
}
return nil
}
func (m *GaugePoint) GetTimestamp() *google_protobuf.Timestamp {
if m != nil {
return m.Timestamp
}
return nil
}
func (m *GaugePoint) GetInt64Value() int64 {
if x, ok := m.GetValue().(*GaugePoint_Int64Value); ok {
return x.Int64Value
}
return 0
}
func (m *GaugePoint) GetDoubleValue() float64 {
if x, ok := m.GetValue().(*GaugePoint_DoubleValue); ok {
return x.DoubleValue
}
return 0
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*GaugePoint) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _GaugePoint_OneofMarshaler, _GaugePoint_OneofUnmarshaler, _GaugePoint_OneofSizer, []interface{}{
(*GaugePoint_Int64Value)(nil),
(*GaugePoint_DoubleValue)(nil),
}
}
func _GaugePoint_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*GaugePoint)
// value
switch x := m.Value.(type) {
case *GaugePoint_Int64Value:
b.EncodeVarint(2<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.Int64Value))
case *GaugePoint_DoubleValue:
b.EncodeVarint(3<<3 | proto.WireFixed64)
b.EncodeFixed64(math.Float64bits(x.DoubleValue))
case nil:
default:
return fmt.Errorf("GaugePoint.Value has unexpected type %T", x)
}
return nil
}
func _GaugePoint_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*GaugePoint)
switch tag {
case 2: // value.int64_value
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Value = &GaugePoint_Int64Value{int64(x)}
return true, err
case 3: // value.double_value
if wire != proto.WireFixed64 {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeFixed64()
m.Value = &GaugePoint_DoubleValue{math.Float64frombits(x)}
return true, err
default:
return false, nil
}
}
func _GaugePoint_OneofSizer(msg proto.Message) (n int) {
m := msg.(*GaugePoint)
// value
switch x := m.Value.(type) {
case *GaugePoint_Int64Value:
n += proto.SizeVarint(2<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.Int64Value))
case *GaugePoint_DoubleValue:
n += proto.SizeVarint(3<<3 | proto.WireFixed64)
n += 8
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Measurements accumulated over a time interval.
type CumulativePoint struct {
// This must be the same until an event resets the cumulative value to zero
// and sets a new start for the following points.
StartTime *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
// The end timestamp of the accumulated measurement.
EndTime *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
// The actual point value.
//
// Types that are valid to be assigned to Value:
// *CumulativePoint_Int64Value
// *CumulativePoint_DoubleValue
// *CumulativePoint_DistributionValue
Value isCumulativePoint_Value `protobuf_oneof:"value"`
}
func (m *CumulativePoint) Reset() { *m = CumulativePoint{} }
func (m *CumulativePoint) String() string { return proto.CompactTextString(m) }
func (*CumulativePoint) ProtoMessage() {}
func (*CumulativePoint) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
type isCumulativePoint_Value interface {
isCumulativePoint_Value()
}
type CumulativePoint_Int64Value struct {
Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,oneof"`
}
type CumulativePoint_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,oneof"`
}
type CumulativePoint_DistributionValue struct {
DistributionValue *DistributionValue `protobuf:"bytes,5,opt,name=distribution_value,json=distributionValue,oneof"`
}
func (*CumulativePoint_Int64Value) isCumulativePoint_Value() {}
func (*CumulativePoint_DoubleValue) isCumulativePoint_Value() {}
func (*CumulativePoint_DistributionValue) isCumulativePoint_Value() {}
func (m *CumulativePoint) GetValue() isCumulativePoint_Value {
if m != nil {
return m.Value
}
return nil
}
func (m *CumulativePoint) GetStartTime() *google_protobuf.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *CumulativePoint) GetEndTime() *google_protobuf.Timestamp {
if m != nil {
return m.EndTime
}
return nil
}
func (m *CumulativePoint) GetInt64Value() int64 {
if x, ok := m.GetValue().(*CumulativePoint_Int64Value); ok {
return x.Int64Value
}
return 0
}
func (m *CumulativePoint) GetDoubleValue() float64 {
if x, ok := m.GetValue().(*CumulativePoint_DoubleValue); ok {
return x.DoubleValue
}
return 0
}
func (m *CumulativePoint) GetDistributionValue() *DistributionValue {
if x, ok := m.GetValue().(*CumulativePoint_DistributionValue); ok {
return x.DistributionValue
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*CumulativePoint) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _CumulativePoint_OneofMarshaler, _CumulativePoint_OneofUnmarshaler, _CumulativePoint_OneofSizer, []interface{}{
(*CumulativePoint_Int64Value)(nil),
(*CumulativePoint_DoubleValue)(nil),
(*CumulativePoint_DistributionValue)(nil),
}
}
func _CumulativePoint_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*CumulativePoint)
// value
switch x := m.Value.(type) {
case *CumulativePoint_Int64Value:
b.EncodeVarint(3<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.Int64Value))
case *CumulativePoint_DoubleValue:
b.EncodeVarint(4<<3 | proto.WireFixed64)
b.EncodeFixed64(math.Float64bits(x.DoubleValue))
case *CumulativePoint_DistributionValue:
b.EncodeVarint(5<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.DistributionValue); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("CumulativePoint.Value has unexpected type %T", x)
}
return nil
}
func _CumulativePoint_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*CumulativePoint)
switch tag {
case 3: // value.int64_value
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.Value = &CumulativePoint_Int64Value{int64(x)}
return true, err
case 4: // value.double_value
if wire != proto.WireFixed64 {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeFixed64()
m.Value = &CumulativePoint_DoubleValue{math.Float64frombits(x)}
return true, err
case 5: // value.distribution_value
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(DistributionValue)
err := b.DecodeMessage(msg)
m.Value = &CumulativePoint_DistributionValue{msg}
return true, err
default:
return false, nil
}
}
func _CumulativePoint_OneofSizer(msg proto.Message) (n int) {
m := msg.(*CumulativePoint)
// value
switch x := m.Value.(type) {
case *CumulativePoint_Int64Value:
n += proto.SizeVarint(3<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.Int64Value))
case *CumulativePoint_DoubleValue:
n += proto.SizeVarint(4<<3 | proto.WireFixed64)
n += 8
case *CumulativePoint_DistributionValue:
s := proto.Size(x.DistributionValue)
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Distribution contains summary statistics for a population of values. It
// optionally contains a histogram representing the distribution of those
// values across a set of buckets.
type DistributionValue struct {
// The number of values in the population. Must be non-negative. This value
// must equal the sum of the values in bucket_counts if a histogram is
// provided.
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
// The arithmetic mean of the values in the population. If count is zero
// then this field must be zero.
Mean float64 `protobuf:"fixed64,2,opt,name=mean" json:"mean,omitempty"`
// The sum of squared deviations from the mean of the values in the
// population. For values x_i this is:
//
// Sum[i=1..n]((x_i - mean)^2)
//
// Knuth, "The Art of Computer Programming", Vol. 2, page 323, 3rd edition
// describes Welford's method for accumulating this sum in one pass.
//
// If count is zero then this field must be zero.
SumOfSquaredDeviation float64 `protobuf:"fixed64,3,opt,name=sum_of_squared_deviation,json=sumOfSquaredDeviation" json:"sum_of_squared_deviation,omitempty"`
// If specified, contains the range of the population values. The field
// must not be present if the count is zero.
Range *DistributionValue_Range `protobuf:"bytes,4,opt,name=range" json:"range,omitempty"`
// A Distribution may optionally contain a histogram of the values in the
// population. The bucket boundaries for that histogram are described by
// bucket_bounds. This defines size(bucket_bounds) + 1 (= N)
// buckets. The boundaries for bucket index i are:
//
// (-infinity, bucket_bounds[i]) for i == 0
// [bucket_bounds[i-1], bucket_bounds[i]) for 0 < i < N-2
// [bucket_bounds[i-1], +infinity) for i == N-1
//
// i.e. an underflow bucket (number 0), zero or more finite buckets (1
// through N - 2, and an overflow bucket (N - 1), with inclusive lower
// bounds and exclusive upper bounds.
//
// If bucket_bounds has no elements (zero size), then there is no
// histogram associated with the Distribution. If bucket_bounds has only
// one element, there are no finite buckets, and that single element is the
// common boundary of the overflow and underflow buckets. The values must
// be monotonically increasing.
BucketBounds []float64 `protobuf:"fixed64,5,rep,packed,name=bucket_bounds,json=bucketBounds" json:"bucket_bounds,omitempty"`
// If the distribution does not have a histogram, then omit this field.
// If there is a histogram, then the sum of the values in the Bucket counts
// must equal the value in the count field of the distribution.
Buckets []*DistributionValue_Bucket `protobuf:"bytes,6,rep,name=buckets" json:"buckets,omitempty"`
}
func (m *DistributionValue) Reset() { *m = DistributionValue{} }
func (m *DistributionValue) String() string { return proto.CompactTextString(m) }
func (*DistributionValue) ProtoMessage() {}
func (*DistributionValue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
func (m *DistributionValue) GetCount() int64 {
if m != nil {
return m.Count
}
return 0
}
func (m *DistributionValue) GetMean() float64 {
if m != nil {
return m.Mean
}
return 0
}
func (m *DistributionValue) GetSumOfSquaredDeviation() float64 {
if m != nil {
return m.SumOfSquaredDeviation
}
return 0
}
func (m *DistributionValue) GetRange() *DistributionValue_Range {
if m != nil {
return m.Range
}
return nil
}
func (m *DistributionValue) GetBucketBounds() []float64 {
if m != nil {
return m.BucketBounds
}
return nil
}
func (m *DistributionValue) GetBuckets() []*DistributionValue_Bucket {
if m != nil {
return m.Buckets
}
return nil
}
// The range of the population values.
type DistributionValue_Range struct {
// The minimum of the population values.
Min float64 `protobuf:"fixed64,1,opt,name=min" json:"min,omitempty"`
// The maximum of the population values.
Max float64 `protobuf:"fixed64,2,opt,name=max" json:"max,omitempty"`
}
func (m *DistributionValue_Range) Reset() { *m = DistributionValue_Range{} }
func (m *DistributionValue_Range) String() string { return proto.CompactTextString(m) }
func (*DistributionValue_Range) ProtoMessage() {}
func (*DistributionValue_Range) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8, 0} }
func (m *DistributionValue_Range) GetMin() float64 {
if m != nil {
return m.Min
}
return 0
}
func (m *DistributionValue_Range) GetMax() float64 {
if m != nil {
return m.Max
}
return 0
}
type DistributionValue_Bucket struct {
// The number of values in each bucket of the histogram, as described in
// bucket_bounds.
Count int64 `protobuf:"varint,1,opt,name=count" json:"count,omitempty"`
}
func (m *DistributionValue_Bucket) Reset() { *m = DistributionValue_Bucket{} }
func (m *DistributionValue_Bucket) String() string { return proto.CompactTextString(m) }
func (*DistributionValue_Bucket) ProtoMessage() {}
func (*DistributionValue_Bucket) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8, 1} }
func (m *DistributionValue_Bucket) GetCount() int64 {
if m != nil {
return m.Count
}
return 0
}
func init() {
proto.RegisterType((*MetricSet)(nil), "opencensus.proto.stats.metrics.MetricSet")
proto.RegisterType((*Metric)(nil), "opencensus.proto.stats.metrics.Metric")
proto.RegisterType((*MetricDescriptor)(nil), "opencensus.proto.stats.metrics.MetricDescriptor")
proto.RegisterType((*LabelKey)(nil), "opencensus.proto.stats.metrics.LabelKey")
proto.RegisterType((*TimeSeries)(nil), "opencensus.proto.stats.metrics.TimeSeries")
proto.RegisterType((*LabelValue)(nil), "opencensus.proto.stats.metrics.LabelValue")
proto.RegisterType((*GaugePoint)(nil), "opencensus.proto.stats.metrics.GaugePoint")
proto.RegisterType((*CumulativePoint)(nil), "opencensus.proto.stats.metrics.CumulativePoint")
proto.RegisterType((*DistributionValue)(nil), "opencensus.proto.stats.metrics.DistributionValue")
proto.RegisterType((*DistributionValue_Range)(nil), "opencensus.proto.stats.metrics.DistributionValue.Range")
proto.RegisterType((*DistributionValue_Bucket)(nil), "opencensus.proto.stats.metrics.DistributionValue.Bucket")
proto.RegisterEnum("opencensus.proto.stats.metrics.MetricDescriptor_Type", MetricDescriptor_Type_name, MetricDescriptor_Type_value)
}
func init() { proto.RegisterFile("opencensus/proto/stats/metrics/metrics.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 843 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xdd, 0x6e, 0x23, 0x35,
0x14, 0xee, 0xe4, 0xa7, 0x6d, 0xce, 0x94, 0xdd, 0xd4, 0x02, 0x69, 0xd4, 0x95, 0x96, 0x32, 0x2b,
0xa1, 0x6a, 0xa1, 0x13, 0x08, 0x2c, 0xbb, 0xdc, 0x00, 0x9b, 0xb6, 0xb4, 0x85, 0x0d, 0x14, 0xb7,
0xdd, 0x0b, 0x04, 0x1a, 0xcd, 0x8f, 0x3b, 0xb5, 0x3a, 0xe3, 0x09, 0x63, 0xbb, 0x22, 0x77, 0x5c,
0x22, 0xf1, 0x00, 0xbc, 0x00, 0x6f, 0xc0, 0x0d, 0x8f, 0x87, 0x7c, 0x3c, 0xf9, 0x21, 0x5b, 0x91,
0xf4, 0x2a, 0xc7, 0x9f, 0xcf, 0xf7, 0xf9, 0x9c, 0x2f, 0xc7, 0x1e, 0xf8, 0xb0, 0x1c, 0x31, 0x91,
0x30, 0x21, 0xb5, 0xec, 0x8d, 0xaa, 0x52, 0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e3, 0x15, 0x08, 0x00, 0x00,
}

@ -1,28 +1,12 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: opencensus/proto/stats/stats.proto
/*
Package statsproto is a generated protocol buffer package.
It is generated from these files:
opencensus/proto/stats/stats.proto
It has these top-level messages:
Tag
Measure
View
CountAggregation
SumAggregation
LastValueAggregation
DistributionAggregation
Measurement
*/
package statsproto
package statsproto // import "github.com/census-instrumentation/opencensus-proto/gen-go/statsproto"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
@ -60,18 +44,42 @@ var Measure_Type_value = map[string]int32{
func (x Measure_Type) String() string {
return proto.EnumName(Measure_Type_name, int32(x))
}
func (Measure_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
func (Measure_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_stats_f7995307e8bc4f65, []int{1, 0}
}
// TODO(bdrutu): Consider if this should be moved to a "tags" directory to match the API structure.
type Tag struct {
Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Tag) Reset() { *m = Tag{} }
func (m *Tag) String() string { return proto.CompactTextString(m) }
func (*Tag) ProtoMessage() {}
func (*Tag) Descriptor() ([]byte, []int) {
return fileDescriptor_stats_f7995307e8bc4f65, []int{0}
}
func (m *Tag) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Tag.Unmarshal(m, b)
}
func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Tag.Marshal(b, m, deterministic)
}
func (dst *Tag) XXX_Merge(src proto.Message) {
xxx_messageInfo_Tag.Merge(dst, src)
}
func (m *Tag) XXX_Size() int {
return xxx_messageInfo_Tag.Size(m)
}
func (m *Tag) XXX_DiscardUnknown() {
xxx_messageInfo_Tag.DiscardUnknown(m)
}
func (m *Tag) Reset() { *m = Tag{} }
func (m *Tag) String() string { return proto.CompactTextString(m) }
func (*Tag) ProtoMessage() {}
func (*Tag) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
var xxx_messageInfo_Tag proto.InternalMessageInfo
func (m *Tag) GetKey() string {
if m != nil {
@ -91,20 +99,42 @@ func (m *Tag) GetValue() string {
type Measure struct {
// A string by which the measure will be referred to, e.g. "rpc_server_latency". Names MUST be
// unique within the library.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Describes the measure, e.g. "RPC latency in seconds".
Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Describes the unit used for the Measure. Follows the format described by
// http://unitsofmeasure.org/ucum.html.
Unit string `protobuf:"bytes,3,opt,name=unit" json:"unit,omitempty"`
Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
// The type used for this Measure.
Type Measure_Type `protobuf:"varint,4,opt,name=type,enum=opencensus.proto.stats.Measure_Type" json:"type,omitempty"`
Type Measure_Type `protobuf:"varint,4,opt,name=type,proto3,enum=opencensus.proto.stats.Measure_Type" json:"type,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Measure) Reset() { *m = Measure{} }
func (m *Measure) String() string { return proto.CompactTextString(m) }
func (*Measure) ProtoMessage() {}
func (*Measure) Descriptor() ([]byte, []int) {
return fileDescriptor_stats_f7995307e8bc4f65, []int{1}
}
func (m *Measure) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Measure.Unmarshal(m, b)
}
func (m *Measure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Measure.Marshal(b, m, deterministic)
}
func (dst *Measure) XXX_Merge(src proto.Message) {
xxx_messageInfo_Measure.Merge(dst, src)
}
func (m *Measure) XXX_Size() int {
return xxx_messageInfo_Measure.Size(m)
}
func (m *Measure) XXX_DiscardUnknown() {
xxx_messageInfo_Measure.DiscardUnknown(m)
}
func (m *Measure) Reset() { *m = Measure{} }
func (m *Measure) String() string { return proto.CompactTextString(m) }
func (*Measure) ProtoMessage() {}
func (*Measure) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
var xxx_messageInfo_Measure proto.InternalMessageInfo
func (m *Measure) GetName() string {
if m != nil {
@ -137,15 +167,15 @@ func (m *Measure) GetType() Measure_Type {
type View struct {
// A string by which the View will be referred to, e.g. "rpc_latency". Names MUST be unique
// within the library.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Describes the view, e.g. "RPC latency distribution"
Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// The Measure to which this view is applied.
Measure *Measure `protobuf:"bytes,3,opt,name=measure" json:"measure,omitempty"`
Measure *Measure `protobuf:"bytes,3,opt,name=measure,proto3" json:"measure,omitempty"`
// An array of tag keys. These values associated with tags of this name form the basis by which
// individual stats will be aggregated (one aggregation per unique tag value). If none are
// provided, then all data is recorded in a single aggregation.
Columns []string `protobuf:"bytes,4,rep,name=columns" json:"columns,omitempty"`
Columns []string `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
// The description of the aggregation used for this view which describes how data collected are
// aggregated.
//
@ -154,29 +184,51 @@ type View struct {
// *View_SumAggregation
// *View_LastValueAggregation
// *View_DistributionAggregation
Aggregation isView_Aggregation `protobuf_oneof:"aggregation"`
Aggregation isView_Aggregation `protobuf_oneof:"aggregation"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *View) Reset() { *m = View{} }
func (m *View) String() string { return proto.CompactTextString(m) }
func (*View) ProtoMessage() {}
func (*View) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *View) Reset() { *m = View{} }
func (m *View) String() string { return proto.CompactTextString(m) }
func (*View) ProtoMessage() {}
func (*View) Descriptor() ([]byte, []int) {
return fileDescriptor_stats_f7995307e8bc4f65, []int{2}
}
func (m *View) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_View.Unmarshal(m, b)
}
func (m *View) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_View.Marshal(b, m, deterministic)
}
func (dst *View) XXX_Merge(src proto.Message) {
xxx_messageInfo_View.Merge(dst, src)
}
func (m *View) XXX_Size() int {
return xxx_messageInfo_View.Size(m)
}
func (m *View) XXX_DiscardUnknown() {
xxx_messageInfo_View.DiscardUnknown(m)
}
var xxx_messageInfo_View proto.InternalMessageInfo
type isView_Aggregation interface {
isView_Aggregation()
}
type View_CountAggregation struct {
CountAggregation *CountAggregation `protobuf:"bytes,5,opt,name=count_aggregation,json=countAggregation,oneof"`
CountAggregation *CountAggregation `protobuf:"bytes,5,opt,name=count_aggregation,json=countAggregation,proto3,oneof"`
}
type View_SumAggregation struct {
SumAggregation *SumAggregation `protobuf:"bytes,6,opt,name=sum_aggregation,json=sumAggregation,oneof"`
SumAggregation *SumAggregation `protobuf:"bytes,6,opt,name=sum_aggregation,json=sumAggregation,proto3,oneof"`
}
type View_LastValueAggregation struct {
LastValueAggregation *LastValueAggregation `protobuf:"bytes,7,opt,name=last_value_aggregation,json=lastValueAggregation,oneof"`
LastValueAggregation *LastValueAggregation `protobuf:"bytes,7,opt,name=last_value_aggregation,json=lastValueAggregation,proto3,oneof"`
}
type View_DistributionAggregation struct {
DistributionAggregation *DistributionAggregation `protobuf:"bytes,8,opt,name=distribution_aggregation,json=distributionAggregation,oneof"`
DistributionAggregation *DistributionAggregation `protobuf:"bytes,8,opt,name=distribution_aggregation,json=distributionAggregation,proto3,oneof"`
}
func (*View_CountAggregation) isView_Aggregation() {}
@ -334,22 +386,22 @@ func _View_OneofSizer(msg proto.Message) (n int) {
switch x := m.Aggregation.(type) {
case *View_CountAggregation:
s := proto.Size(x.CountAggregation)
n += proto.SizeVarint(5<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *View_SumAggregation:
s := proto.Size(x.SumAggregation)
n += proto.SizeVarint(6<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *View_LastValueAggregation:
s := proto.Size(x.LastValueAggregation)
n += proto.SizeVarint(7<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *View_DistributionAggregation:
s := proto.Size(x.DistributionAggregation)
n += proto.SizeVarint(8<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -360,28 +412,94 @@ func _View_OneofSizer(msg proto.Message) (n int) {
}
type CountAggregation struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CountAggregation) Reset() { *m = CountAggregation{} }
func (m *CountAggregation) String() string { return proto.CompactTextString(m) }
func (*CountAggregation) ProtoMessage() {}
func (*CountAggregation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *CountAggregation) Reset() { *m = CountAggregation{} }
func (m *CountAggregation) String() string { return proto.CompactTextString(m) }
func (*CountAggregation) ProtoMessage() {}
func (*CountAggregation) Descriptor() ([]byte, []int) {
return fileDescriptor_stats_f7995307e8bc4f65, []int{3}
}
func (m *CountAggregation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CountAggregation.Unmarshal(m, b)
}
func (m *CountAggregation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CountAggregation.Marshal(b, m, deterministic)
}
func (dst *CountAggregation) XXX_Merge(src proto.Message) {
xxx_messageInfo_CountAggregation.Merge(dst, src)
}
func (m *CountAggregation) XXX_Size() int {
return xxx_messageInfo_CountAggregation.Size(m)
}
func (m *CountAggregation) XXX_DiscardUnknown() {
xxx_messageInfo_CountAggregation.DiscardUnknown(m)
}
var xxx_messageInfo_CountAggregation proto.InternalMessageInfo
type SumAggregation struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SumAggregation) Reset() { *m = SumAggregation{} }
func (m *SumAggregation) String() string { return proto.CompactTextString(m) }
func (*SumAggregation) ProtoMessage() {}
func (*SumAggregation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *SumAggregation) Reset() { *m = SumAggregation{} }
func (m *SumAggregation) String() string { return proto.CompactTextString(m) }
func (*SumAggregation) ProtoMessage() {}
func (*SumAggregation) Descriptor() ([]byte, []int) {
return fileDescriptor_stats_f7995307e8bc4f65, []int{4}
}
func (m *SumAggregation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SumAggregation.Unmarshal(m, b)
}
func (m *SumAggregation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SumAggregation.Marshal(b, m, deterministic)
}
func (dst *SumAggregation) XXX_Merge(src proto.Message) {
xxx_messageInfo_SumAggregation.Merge(dst, src)
}
func (m *SumAggregation) XXX_Size() int {
return xxx_messageInfo_SumAggregation.Size(m)
}
func (m *SumAggregation) XXX_DiscardUnknown() {
xxx_messageInfo_SumAggregation.DiscardUnknown(m)
}
var xxx_messageInfo_SumAggregation proto.InternalMessageInfo
type LastValueAggregation struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *LastValueAggregation) Reset() { *m = LastValueAggregation{} }
func (m *LastValueAggregation) String() string { return proto.CompactTextString(m) }
func (*LastValueAggregation) ProtoMessage() {}
func (*LastValueAggregation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *LastValueAggregation) Reset() { *m = LastValueAggregation{} }
func (m *LastValueAggregation) String() string { return proto.CompactTextString(m) }
func (*LastValueAggregation) ProtoMessage() {}
func (*LastValueAggregation) Descriptor() ([]byte, []int) {
return fileDescriptor_stats_f7995307e8bc4f65, []int{5}
}
func (m *LastValueAggregation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_LastValueAggregation.Unmarshal(m, b)
}
func (m *LastValueAggregation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_LastValueAggregation.Marshal(b, m, deterministic)
}
func (dst *LastValueAggregation) XXX_Merge(src proto.Message) {
xxx_messageInfo_LastValueAggregation.Merge(dst, src)
}
func (m *LastValueAggregation) XXX_Size() int {
return xxx_messageInfo_LastValueAggregation.Size(m)
}
func (m *LastValueAggregation) XXX_DiscardUnknown() {
xxx_messageInfo_LastValueAggregation.DiscardUnknown(m)
}
var xxx_messageInfo_LastValueAggregation proto.InternalMessageInfo
type DistributionAggregation struct {
// A Distribution may optionally contain a histogram of the values in the
@ -402,13 +520,35 @@ type DistributionAggregation struct {
// one element, there are no finite buckets, and that single element is the
// common boundary of the overflow and underflow buckets. The values must
// be monotonically increasing.
BucketBounds []float64 `protobuf:"fixed64,1,rep,packed,name=bucket_bounds,json=bucketBounds" json:"bucket_bounds,omitempty"`
BucketBounds []float64 `protobuf:"fixed64,1,rep,packed,name=bucket_bounds,json=bucketBounds,proto3" json:"bucket_bounds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DistributionAggregation) Reset() { *m = DistributionAggregation{} }
func (m *DistributionAggregation) String() string { return proto.CompactTextString(m) }
func (*DistributionAggregation) ProtoMessage() {}
func (*DistributionAggregation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *DistributionAggregation) Reset() { *m = DistributionAggregation{} }
func (m *DistributionAggregation) String() string { return proto.CompactTextString(m) }
func (*DistributionAggregation) ProtoMessage() {}
func (*DistributionAggregation) Descriptor() ([]byte, []int) {
return fileDescriptor_stats_f7995307e8bc4f65, []int{6}
}
func (m *DistributionAggregation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DistributionAggregation.Unmarshal(m, b)
}
func (m *DistributionAggregation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DistributionAggregation.Marshal(b, m, deterministic)
}
func (dst *DistributionAggregation) XXX_Merge(src proto.Message) {
xxx_messageInfo_DistributionAggregation.Merge(dst, src)
}
func (m *DistributionAggregation) XXX_Size() int {
return xxx_messageInfo_DistributionAggregation.Size(m)
}
func (m *DistributionAggregation) XXX_DiscardUnknown() {
xxx_messageInfo_DistributionAggregation.DiscardUnknown(m)
}
var xxx_messageInfo_DistributionAggregation proto.InternalMessageInfo
func (m *DistributionAggregation) GetBucketBounds() []float64 {
if m != nil {
@ -419,9 +559,9 @@ func (m *DistributionAggregation) GetBucketBounds() []float64 {
// Describes a data point to be collected for a Measure.
type Measurement struct {
Tags []*Tag `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty"`
Tags []*Tag `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
// The name of the measure to which the value is applied.
MeasureName string `protobuf:"bytes,2,opt,name=measure_name,json=measureName" json:"measure_name,omitempty"`
MeasureName string `protobuf:"bytes,2,opt,name=measure_name,json=measureName,proto3" json:"measure_name,omitempty"`
// The recorded value, MUST have the appropriate type to match the Measure.
//
// Types that are valid to be assigned to Value:
@ -430,23 +570,45 @@ type Measurement struct {
Value isMeasurement_Value `protobuf_oneof:"value"`
// The time when this measurement was recorded. If the implementation uses a async buffer to
// record measurements this may be the time when the measurement was read from the buffer.
Time *google_protobuf.Timestamp `protobuf:"bytes,5,opt,name=time" json:"time,omitempty"`
Time *timestamp.Timestamp `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Measurement) Reset() { *m = Measurement{} }
func (m *Measurement) String() string { return proto.CompactTextString(m) }
func (*Measurement) ProtoMessage() {}
func (*Measurement) Descriptor() ([]byte, []int) {
return fileDescriptor_stats_f7995307e8bc4f65, []int{7}
}
func (m *Measurement) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Measurement.Unmarshal(m, b)
}
func (m *Measurement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Measurement.Marshal(b, m, deterministic)
}
func (dst *Measurement) XXX_Merge(src proto.Message) {
xxx_messageInfo_Measurement.Merge(dst, src)
}
func (m *Measurement) XXX_Size() int {
return xxx_messageInfo_Measurement.Size(m)
}
func (m *Measurement) XXX_DiscardUnknown() {
xxx_messageInfo_Measurement.DiscardUnknown(m)
}
func (m *Measurement) Reset() { *m = Measurement{} }
func (m *Measurement) String() string { return proto.CompactTextString(m) }
func (*Measurement) ProtoMessage() {}
func (*Measurement) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
var xxx_messageInfo_Measurement proto.InternalMessageInfo
type isMeasurement_Value interface {
isMeasurement_Value()
}
type Measurement_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,oneof"`
DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type Measurement_IntValue struct {
IntValue int64 `protobuf:"varint,4,opt,name=int_value,json=intValue,oneof"`
IntValue int64 `protobuf:"varint,4,opt,name=int_value,json=intValue,proto3,oneof"`
}
func (*Measurement_DoubleValue) isMeasurement_Value() {}
@ -487,7 +649,7 @@ func (m *Measurement) GetIntValue() int64 {
return 0
}
func (m *Measurement) GetTime() *google_protobuf.Timestamp {
func (m *Measurement) GetTime() *timestamp.Timestamp {
if m != nil {
return m.Time
}
@ -546,10 +708,10 @@ func _Measurement_OneofSizer(msg proto.Message) (n int) {
// value
switch x := m.Value.(type) {
case *Measurement_DoubleValue:
n += proto.SizeVarint(3<<3 | proto.WireFixed64)
n += 1 // tag and wire
n += 8
case *Measurement_IntValue:
n += proto.SizeVarint(4<<3 | proto.WireVarint)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(x.IntValue))
case nil:
default:
@ -570,9 +732,11 @@ func init() {
proto.RegisterEnum("opencensus.proto.stats.Measure_Type", Measure_Type_name, Measure_Type_value)
}
func init() { proto.RegisterFile("opencensus/proto/stats/stats.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("opencensus/proto/stats/stats.proto", fileDescriptor_stats_f7995307e8bc4f65)
}
var fileDescriptor0 = []byte{
var fileDescriptor_stats_f7995307e8bc4f65 = []byte{
// 629 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0xd1, 0x6e, 0xd3, 0x30,
0x14, 0x6d, 0xd6, 0x6c, 0x5d, 0x6f, 0xb7, 0x11, 0xac, 0x6a, 0x0b, 0x43, 0x68, 0x25, 0x43, 0xa8,

@ -1,27 +1,13 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: opencensus/proto/trace/trace.proto
/*
Package traceproto is a generated protocol buffer package.
It is generated from these files:
opencensus/proto/trace/trace.proto
It has these top-level messages:
Span
Status
AttributeValue
StackTrace
Module
TruncatableString
*/
package traceproto
package traceproto // import "github.com/census-instrumentation/opencensus-proto/gen-go/traceproto"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
import google_protobuf1 "github.com/golang/protobuf/ptypes/wrappers"
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
import wrappers "github.com/golang/protobuf/ptypes/wrappers"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
@ -63,7 +49,9 @@ var Span_SpanKind_value = map[string]int32{
func (x Span_SpanKind) String() string {
return proto.EnumName(Span_SpanKind_name, int32(x))
}
func (Span_SpanKind) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
func (Span_SpanKind) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{0, 0}
}
// Indicates whether the message was sent or received.
type Span_TimeEvent_MessageEvent_Type int32
@ -92,7 +80,7 @@ func (x Span_TimeEvent_MessageEvent_Type) String() string {
return proto.EnumName(Span_TimeEvent_MessageEvent_Type_name, int32(x))
}
func (Span_TimeEvent_MessageEvent_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 1, 1, 0}
return fileDescriptor_trace_be9b062e640bac25, []int{0, 1, 1, 0}
}
// The relationship of the current span relative to the linked span: child,
@ -123,7 +111,9 @@ var Span_Link_Type_value = map[string]int32{
func (x Span_Link_Type) String() string {
return proto.EnumName(Span_Link_Type_name, int32(x))
}
func (Span_Link_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 3, 0} }
func (Span_Link_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{0, 3, 0}
}
// A span represents a single operation within a trace. Spans can be
// nested to form a trace tree. Often, a trace contains a root span
@ -156,42 +146,64 @@ type Span struct {
// This makes it easier to correlate spans in different traces.
//
// This field is required.
Name *TruncatableString `protobuf:"bytes,4,opt,name=name" json:"name,omitempty"`
Name *TruncatableString `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// Distinguishes between spans generated in a particular context. For example,
// two spans with the same name may be distinguished using `CLIENT`
// and `SERVER` to identify queueing latency associated with the span.
Kind Span_SpanKind `protobuf:"varint,14,opt,name=kind,enum=opencensus.proto.trace.Span_SpanKind" json:"kind,omitempty"`
Kind Span_SpanKind `protobuf:"varint,14,opt,name=kind,proto3,enum=opencensus.proto.trace.Span_SpanKind" json:"kind,omitempty"`
// The start time of the span. On the client side, this is the time kept by
// the local machine where the span execution starts. On the server side, this
// is the time when the server's application handler starts running.
StartTime *google_protobuf.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
StartTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// The end time of the span. On the client side, this is the time kept by
// the local machine where the span execution ends. On the server side, this
// is the time when the server application handler stops running.
EndTime *google_protobuf.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
EndTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// A set of attributes on the span.
Attributes *Span_Attributes `protobuf:"bytes,7,opt,name=attributes" json:"attributes,omitempty"`
Attributes *Span_Attributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"`
// A stack trace captured at the start of the span.
StackTrace *StackTrace `protobuf:"bytes,8,opt,name=stack_trace,json=stackTrace" json:"stack_trace,omitempty"`
StackTrace *StackTrace `protobuf:"bytes,8,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
// The included time events.
TimeEvents *Span_TimeEvents `protobuf:"bytes,9,opt,name=time_events,json=timeEvents" json:"time_events,omitempty"`
TimeEvents *Span_TimeEvents `protobuf:"bytes,9,opt,name=time_events,json=timeEvents,proto3" json:"time_events,omitempty"`
// The inclued links.
Links *Span_Links `protobuf:"bytes,10,opt,name=links" json:"links,omitempty"`
Links *Span_Links `protobuf:"bytes,10,opt,name=links,proto3" json:"links,omitempty"`
// An optional final status for this span.
Status *Status `protobuf:"bytes,11,opt,name=status" json:"status,omitempty"`
Status *Status `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"`
// A highly recommended but not required flag that identifies when a trace
// crosses a process boundary. True when the parent_span belongs to the
// same process as the current span.
SameProcessAsParentSpan *google_protobuf1.BoolValue `protobuf:"bytes,12,opt,name=same_process_as_parent_span,json=sameProcessAsParentSpan" json:"same_process_as_parent_span,omitempty"`
SameProcessAsParentSpan *wrappers.BoolValue `protobuf:"bytes,12,opt,name=same_process_as_parent_span,json=sameProcessAsParentSpan,proto3" json:"same_process_as_parent_span,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 *google_protobuf1.UInt32Value `protobuf:"bytes,13,opt,name=child_span_count,json=childSpanCount" json:"child_span_count,omitempty"`
ChildSpanCount *wrappers.UInt32Value `protobuf:"bytes,13,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:"-"`
}
func (m *Span) Reset() { *m = Span{} }
func (m *Span) String() string { return proto.CompactTextString(m) }
func (*Span) ProtoMessage() {}
func (*Span) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{0}
}
func (m *Span) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span.Unmarshal(m, b)
}
func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span.Marshal(b, m, deterministic)
}
func (dst *Span) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span.Merge(dst, src)
}
func (m *Span) XXX_Size() int {
return xxx_messageInfo_Span.Size(m)
}
func (m *Span) XXX_DiscardUnknown() {
xxx_messageInfo_Span.DiscardUnknown(m)
}
func (m *Span) Reset() { *m = Span{} }
func (m *Span) String() string { return proto.CompactTextString(m) }
func (*Span) ProtoMessage() {}
func (*Span) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
var xxx_messageInfo_Span proto.InternalMessageInfo
func (m *Span) GetTraceId() []byte {
if m != nil {
@ -228,14 +240,14 @@ func (m *Span) GetKind() Span_SpanKind {
return Span_SPAN_KIND_UNSPECIFIED
}
func (m *Span) GetStartTime() *google_protobuf.Timestamp {
func (m *Span) GetStartTime() *timestamp.Timestamp {
if m != nil {
return m.StartTime
}
return nil
}
func (m *Span) GetEndTime() *google_protobuf.Timestamp {
func (m *Span) GetEndTime() *timestamp.Timestamp {
if m != nil {
return m.EndTime
}
@ -277,14 +289,14 @@ func (m *Span) GetStatus() *Status {
return nil
}
func (m *Span) GetSameProcessAsParentSpan() *google_protobuf1.BoolValue {
func (m *Span) GetSameProcessAsParentSpan() *wrappers.BoolValue {
if m != nil {
return m.SameProcessAsParentSpan
}
return nil
}
func (m *Span) GetChildSpanCount() *google_protobuf1.UInt32Value {
func (m *Span) GetChildSpanCount() *wrappers.UInt32Value {
if m != nil {
return m.ChildSpanCount
}
@ -300,17 +312,39 @@ type Span_Attributes struct {
// "/http/user_agent": ""
// "/http/server_latency": 300
// "abc.com/myattribute": true
AttributeMap map[string]*AttributeValue `protobuf:"bytes,1,rep,name=attribute_map,json=attributeMap" json:"attribute_map,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
AttributeMap map[string]*AttributeValue `protobuf:"bytes,1,rep,name=attribute_map,json=attributeMap,proto3" json:"attribute_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// The number of attributes that were discarded. Attributes can be discarded
// because their keys are too long or because there are too many attributes.
// If this value is 0, then no attributes were dropped.
DroppedAttributesCount int32 `protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount" json:"dropped_attributes_count,omitempty"`
DroppedAttributesCount int32 `protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_Attributes) Reset() { *m = Span_Attributes{} }
func (m *Span_Attributes) String() string { return proto.CompactTextString(m) }
func (*Span_Attributes) ProtoMessage() {}
func (*Span_Attributes) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
func (m *Span_Attributes) Reset() { *m = Span_Attributes{} }
func (m *Span_Attributes) String() string { return proto.CompactTextString(m) }
func (*Span_Attributes) ProtoMessage() {}
func (*Span_Attributes) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{0, 0}
}
func (m *Span_Attributes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_Attributes.Unmarshal(m, b)
}
func (m *Span_Attributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_Attributes.Marshal(b, m, deterministic)
}
func (dst *Span_Attributes) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_Attributes.Merge(dst, src)
}
func (m *Span_Attributes) XXX_Size() int {
return xxx_messageInfo_Span_Attributes.Size(m)
}
func (m *Span_Attributes) XXX_DiscardUnknown() {
xxx_messageInfo_Span_Attributes.DiscardUnknown(m)
}
var xxx_messageInfo_Span_Attributes proto.InternalMessageInfo
func (m *Span_Attributes) GetAttributeMap() map[string]*AttributeValue {
if m != nil {
@ -329,30 +363,52 @@ func (m *Span_Attributes) GetDroppedAttributesCount() int32 {
// A time-stamped annotation or message event in the Span.
type Span_TimeEvent struct {
// The time the event occurred.
Time *google_protobuf.Timestamp `protobuf:"bytes,1,opt,name=time" json:"time,omitempty"`
Time *timestamp.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
// A `TimeEvent` can contain either an `Annotation` object or a
// `MessageEvent` object, but not both.
//
// Types that are valid to be assigned to Value:
// *Span_TimeEvent_Annotation_
// *Span_TimeEvent_MessageEvent_
Value isSpan_TimeEvent_Value `protobuf_oneof:"value"`
Value isSpan_TimeEvent_Value `protobuf_oneof:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_TimeEvent) Reset() { *m = Span_TimeEvent{} }
func (m *Span_TimeEvent) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent) ProtoMessage() {}
func (*Span_TimeEvent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} }
func (m *Span_TimeEvent) Reset() { *m = Span_TimeEvent{} }
func (m *Span_TimeEvent) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent) ProtoMessage() {}
func (*Span_TimeEvent) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{0, 1}
}
func (m *Span_TimeEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_TimeEvent.Unmarshal(m, b)
}
func (m *Span_TimeEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_TimeEvent.Marshal(b, m, deterministic)
}
func (dst *Span_TimeEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_TimeEvent.Merge(dst, src)
}
func (m *Span_TimeEvent) XXX_Size() int {
return xxx_messageInfo_Span_TimeEvent.Size(m)
}
func (m *Span_TimeEvent) XXX_DiscardUnknown() {
xxx_messageInfo_Span_TimeEvent.DiscardUnknown(m)
}
var xxx_messageInfo_Span_TimeEvent proto.InternalMessageInfo
type isSpan_TimeEvent_Value interface {
isSpan_TimeEvent_Value()
}
type Span_TimeEvent_Annotation_ struct {
Annotation *Span_TimeEvent_Annotation `protobuf:"bytes,2,opt,name=annotation,oneof"`
Annotation *Span_TimeEvent_Annotation `protobuf:"bytes,2,opt,name=annotation,proto3,oneof"`
}
type Span_TimeEvent_MessageEvent_ struct {
MessageEvent *Span_TimeEvent_MessageEvent `protobuf:"bytes,3,opt,name=message_event,json=messageEvent,oneof"`
MessageEvent *Span_TimeEvent_MessageEvent `protobuf:"bytes,3,opt,name=message_event,json=messageEvent,proto3,oneof"`
}
func (*Span_TimeEvent_Annotation_) isSpan_TimeEvent_Value() {}
@ -365,7 +421,7 @@ func (m *Span_TimeEvent) GetValue() isSpan_TimeEvent_Value {
return nil
}
func (m *Span_TimeEvent) GetTime() *google_protobuf.Timestamp {
func (m *Span_TimeEvent) GetTime() *timestamp.Timestamp {
if m != nil {
return m.Time
}
@ -445,12 +501,12 @@ func _Span_TimeEvent_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) {
case *Span_TimeEvent_Annotation_:
s := proto.Size(x.Annotation)
n += proto.SizeVarint(2<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *Span_TimeEvent_MessageEvent_:
s := proto.Size(x.MessageEvent)
n += proto.SizeVarint(3<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
@ -463,15 +519,37 @@ func _Span_TimeEvent_OneofSizer(msg proto.Message) (n int) {
// A text annotation with a set of attributes.
type Span_TimeEvent_Annotation struct {
// A user-supplied message describing the event.
Description *TruncatableString `protobuf:"bytes,1,opt,name=description" json:"description,omitempty"`
Description *TruncatableString `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
// A set of attributes on the annotation.
Attributes *Span_Attributes `protobuf:"bytes,2,opt,name=attributes" json:"attributes,omitempty"`
Attributes *Span_Attributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_TimeEvent_Annotation) Reset() { *m = Span_TimeEvent_Annotation{} }
func (m *Span_TimeEvent_Annotation) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent_Annotation) ProtoMessage() {}
func (*Span_TimeEvent_Annotation) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{0, 1, 0}
}
func (m *Span_TimeEvent_Annotation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_TimeEvent_Annotation.Unmarshal(m, b)
}
func (m *Span_TimeEvent_Annotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_TimeEvent_Annotation.Marshal(b, m, deterministic)
}
func (dst *Span_TimeEvent_Annotation) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_TimeEvent_Annotation.Merge(dst, src)
}
func (m *Span_TimeEvent_Annotation) XXX_Size() int {
return xxx_messageInfo_Span_TimeEvent_Annotation.Size(m)
}
func (m *Span_TimeEvent_Annotation) XXX_DiscardUnknown() {
xxx_messageInfo_Span_TimeEvent_Annotation.DiscardUnknown(m)
}
func (m *Span_TimeEvent_Annotation) Reset() { *m = Span_TimeEvent_Annotation{} }
func (m *Span_TimeEvent_Annotation) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent_Annotation) ProtoMessage() {}
func (*Span_TimeEvent_Annotation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1, 0} }
var xxx_messageInfo_Span_TimeEvent_Annotation proto.InternalMessageInfo
func (m *Span_TimeEvent_Annotation) GetDescription() *TruncatableString {
if m != nil {
@ -491,25 +569,45 @@ func (m *Span_TimeEvent_Annotation) GetAttributes() *Span_Attributes {
type Span_TimeEvent_MessageEvent struct {
// The type of MessageEvent. Indicates whether the message was sent or
// received.
Type Span_TimeEvent_MessageEvent_Type `protobuf:"varint,1,opt,name=type,enum=opencensus.proto.trace.Span_TimeEvent_MessageEvent_Type" json:"type,omitempty"`
Type Span_TimeEvent_MessageEvent_Type `protobuf:"varint,1,opt,name=type,proto3,enum=opencensus.proto.trace.Span_TimeEvent_MessageEvent_Type" json:"type,omitempty"`
// An identifier for the MessageEvent's message that can be used to match
// SENT and RECEIVED MessageEvents. For example, this field could
// represent a sequence ID for a streaming RPC. It is recommended to be
// unique within a Span.
Id uint64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
// The number of uncompressed bytes sent or received.
UncompressedSize uint64 `protobuf:"varint,3,opt,name=uncompressed_size,json=uncompressedSize" json:"uncompressed_size,omitempty"`
UncompressedSize uint64 `protobuf:"varint,3,opt,name=uncompressed_size,json=uncompressedSize,proto3" json:"uncompressed_size,omitempty"`
// The number of compressed bytes sent or received. If zero, assumed to
// be the same size as uncompressed.
CompressedSize uint64 `protobuf:"varint,4,opt,name=compressed_size,json=compressedSize" json:"compressed_size,omitempty"`
CompressedSize uint64 `protobuf:"varint,4,opt,name=compressed_size,json=compressedSize,proto3" json:"compressed_size,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_TimeEvent_MessageEvent) Reset() { *m = Span_TimeEvent_MessageEvent{} }
func (m *Span_TimeEvent_MessageEvent) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvent_MessageEvent) ProtoMessage() {}
func (*Span_TimeEvent_MessageEvent) Descriptor() ([]byte, []int) {
return fileDescriptor0, []int{0, 1, 1}
return fileDescriptor_trace_be9b062e640bac25, []int{0, 1, 1}
}
func (m *Span_TimeEvent_MessageEvent) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_TimeEvent_MessageEvent.Unmarshal(m, b)
}
func (m *Span_TimeEvent_MessageEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_TimeEvent_MessageEvent.Marshal(b, m, deterministic)
}
func (dst *Span_TimeEvent_MessageEvent) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_TimeEvent_MessageEvent.Merge(dst, src)
}
func (m *Span_TimeEvent_MessageEvent) XXX_Size() int {
return xxx_messageInfo_Span_TimeEvent_MessageEvent.Size(m)
}
func (m *Span_TimeEvent_MessageEvent) XXX_DiscardUnknown() {
xxx_messageInfo_Span_TimeEvent_MessageEvent.DiscardUnknown(m)
}
var xxx_messageInfo_Span_TimeEvent_MessageEvent proto.InternalMessageInfo
func (m *Span_TimeEvent_MessageEvent) GetType() Span_TimeEvent_MessageEvent_Type {
if m != nil {
@ -544,19 +642,41 @@ func (m *Span_TimeEvent_MessageEvent) GetCompressedSize() uint64 {
// details of a message sent/received between Spans.
type Span_TimeEvents struct {
// A collection of `TimeEvent`s.
TimeEvent []*Span_TimeEvent `protobuf:"bytes,1,rep,name=time_event,json=timeEvent" json:"time_event,omitempty"`
TimeEvent []*Span_TimeEvent `protobuf:"bytes,1,rep,name=time_event,json=timeEvent,proto3" json:"time_event,omitempty"`
// The number of dropped annotations in all the included time events.
// If the value is 0, then no annotations were dropped.
DroppedAnnotationsCount int32 `protobuf:"varint,2,opt,name=dropped_annotations_count,json=droppedAnnotationsCount" json:"dropped_annotations_count,omitempty"`
DroppedAnnotationsCount int32 `protobuf:"varint,2,opt,name=dropped_annotations_count,json=droppedAnnotationsCount,proto3" json:"dropped_annotations_count,omitempty"`
// The number of dropped message events in all the included time events.
// If the value is 0, then no message events were dropped.
DroppedMessageEventsCount int32 `protobuf:"varint,3,opt,name=dropped_message_events_count,json=droppedMessageEventsCount" json:"dropped_message_events_count,omitempty"`
DroppedMessageEventsCount int32 `protobuf:"varint,3,opt,name=dropped_message_events_count,json=droppedMessageEventsCount,proto3" json:"dropped_message_events_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_TimeEvents) Reset() { *m = Span_TimeEvents{} }
func (m *Span_TimeEvents) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvents) ProtoMessage() {}
func (*Span_TimeEvents) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 2} }
func (m *Span_TimeEvents) Reset() { *m = Span_TimeEvents{} }
func (m *Span_TimeEvents) String() string { return proto.CompactTextString(m) }
func (*Span_TimeEvents) ProtoMessage() {}
func (*Span_TimeEvents) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{0, 2}
}
func (m *Span_TimeEvents) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_TimeEvents.Unmarshal(m, b)
}
func (m *Span_TimeEvents) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_TimeEvents.Marshal(b, m, deterministic)
}
func (dst *Span_TimeEvents) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_TimeEvents.Merge(dst, src)
}
func (m *Span_TimeEvents) XXX_Size() int {
return xxx_messageInfo_Span_TimeEvents.Size(m)
}
func (m *Span_TimeEvents) XXX_DiscardUnknown() {
xxx_messageInfo_Span_TimeEvents.DiscardUnknown(m)
}
var xxx_messageInfo_Span_TimeEvents proto.InternalMessageInfo
func (m *Span_TimeEvents) GetTimeEvent() []*Span_TimeEvent {
if m != nil {
@ -591,15 +711,37 @@ type Span_Link struct {
// is created. The ID is an 8-byte array.
SpanId []byte `protobuf:"bytes,2,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
// The relationship of the current span relative to the linked span.
Type Span_Link_Type `protobuf:"varint,3,opt,name=type,enum=opencensus.proto.trace.Span_Link_Type" json:"type,omitempty"`
Type Span_Link_Type `protobuf:"varint,3,opt,name=type,proto3,enum=opencensus.proto.trace.Span_Link_Type" json:"type,omitempty"`
// A set of attributes on the link.
Attributes *Span_Attributes `protobuf:"bytes,4,opt,name=attributes" json:"attributes,omitempty"`
Attributes *Span_Attributes `protobuf:"bytes,4,opt,name=attributes,proto3" json:"attributes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_Link) Reset() { *m = Span_Link{} }
func (m *Span_Link) String() string { return proto.CompactTextString(m) }
func (*Span_Link) ProtoMessage() {}
func (*Span_Link) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 3} }
func (m *Span_Link) Reset() { *m = Span_Link{} }
func (m *Span_Link) String() string { return proto.CompactTextString(m) }
func (*Span_Link) ProtoMessage() {}
func (*Span_Link) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{0, 3}
}
func (m *Span_Link) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_Link.Unmarshal(m, b)
}
func (m *Span_Link) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_Link.Marshal(b, m, deterministic)
}
func (dst *Span_Link) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_Link.Merge(dst, src)
}
func (m *Span_Link) XXX_Size() int {
return xxx_messageInfo_Span_Link.Size(m)
}
func (m *Span_Link) XXX_DiscardUnknown() {
xxx_messageInfo_Span_Link.DiscardUnknown(m)
}
var xxx_messageInfo_Span_Link proto.InternalMessageInfo
func (m *Span_Link) GetTraceId() []byte {
if m != nil {
@ -633,16 +775,38 @@ func (m *Span_Link) GetAttributes() *Span_Attributes {
// in the same or different trace.
type Span_Links struct {
// A collection of links.
Link []*Span_Link `protobuf:"bytes,1,rep,name=link" json:"link,omitempty"`
Link []*Span_Link `protobuf:"bytes,1,rep,name=link,proto3" json:"link,omitempty"`
// The number of dropped links after the maximum size was enforced. If
// this value is 0, then no links were dropped.
DroppedLinksCount int32 `protobuf:"varint,2,opt,name=dropped_links_count,json=droppedLinksCount" json:"dropped_links_count,omitempty"`
DroppedLinksCount int32 `protobuf:"varint,2,opt,name=dropped_links_count,json=droppedLinksCount,proto3" json:"dropped_links_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Span_Links) Reset() { *m = Span_Links{} }
func (m *Span_Links) String() string { return proto.CompactTextString(m) }
func (*Span_Links) ProtoMessage() {}
func (*Span_Links) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{0, 4}
}
func (m *Span_Links) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Span_Links.Unmarshal(m, b)
}
func (m *Span_Links) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Span_Links.Marshal(b, m, deterministic)
}
func (dst *Span_Links) XXX_Merge(src proto.Message) {
xxx_messageInfo_Span_Links.Merge(dst, src)
}
func (m *Span_Links) XXX_Size() int {
return xxx_messageInfo_Span_Links.Size(m)
}
func (m *Span_Links) XXX_DiscardUnknown() {
xxx_messageInfo_Span_Links.DiscardUnknown(m)
}
func (m *Span_Links) Reset() { *m = Span_Links{} }
func (m *Span_Links) String() string { return proto.CompactTextString(m) }
func (*Span_Links) ProtoMessage() {}
func (*Span_Links) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 4} }
var xxx_messageInfo_Span_Links proto.InternalMessageInfo
func (m *Span_Links) GetLink() []*Span_Link {
if m != nil {
@ -665,15 +829,37 @@ func (m *Span_Links) GetDroppedLinksCount() int32 {
// which is used by [gRPC](https://github.com/grpc).
type Status struct {
// The status code.
Code int32 `protobuf:"varint,1,opt,name=code" json:"code,omitempty"`
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
// A developer-facing error message, which should be in English.
Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Status) Reset() { *m = Status{} }
func (m *Status) String() string { return proto.CompactTextString(m) }
func (*Status) ProtoMessage() {}
func (*Status) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{1}
}
func (m *Status) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Status.Unmarshal(m, b)
}
func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Status.Marshal(b, m, deterministic)
}
func (dst *Status) XXX_Merge(src proto.Message) {
xxx_messageInfo_Status.Merge(dst, src)
}
func (m *Status) XXX_Size() int {
return xxx_messageInfo_Status.Size(m)
}
func (m *Status) XXX_DiscardUnknown() {
xxx_messageInfo_Status.DiscardUnknown(m)
}
func (m *Status) Reset() { *m = Status{} }
func (m *Status) String() string { return proto.CompactTextString(m) }
func (*Status) ProtoMessage() {}
func (*Status) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
var xxx_messageInfo_Status proto.InternalMessageInfo
func (m *Status) GetCode() int32 {
if m != nil {
@ -697,26 +883,48 @@ type AttributeValue struct {
// *AttributeValue_StringValue
// *AttributeValue_IntValue
// *AttributeValue_BoolValue
Value isAttributeValue_Value `protobuf_oneof:"value"`
Value isAttributeValue_Value `protobuf_oneof:"value"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AttributeValue) Reset() { *m = AttributeValue{} }
func (m *AttributeValue) String() string { return proto.CompactTextString(m) }
func (*AttributeValue) ProtoMessage() {}
func (*AttributeValue) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *AttributeValue) Reset() { *m = AttributeValue{} }
func (m *AttributeValue) String() string { return proto.CompactTextString(m) }
func (*AttributeValue) ProtoMessage() {}
func (*AttributeValue) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{2}
}
func (m *AttributeValue) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AttributeValue.Unmarshal(m, b)
}
func (m *AttributeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AttributeValue.Marshal(b, m, deterministic)
}
func (dst *AttributeValue) XXX_Merge(src proto.Message) {
xxx_messageInfo_AttributeValue.Merge(dst, src)
}
func (m *AttributeValue) XXX_Size() int {
return xxx_messageInfo_AttributeValue.Size(m)
}
func (m *AttributeValue) XXX_DiscardUnknown() {
xxx_messageInfo_AttributeValue.DiscardUnknown(m)
}
var xxx_messageInfo_AttributeValue proto.InternalMessageInfo
type isAttributeValue_Value interface {
isAttributeValue_Value()
}
type AttributeValue_StringValue struct {
StringValue *TruncatableString `protobuf:"bytes,1,opt,name=string_value,json=stringValue,oneof"`
StringValue *TruncatableString `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type AttributeValue_IntValue struct {
IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,oneof"`
IntValue int64 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"`
}
type AttributeValue_BoolValue struct {
BoolValue bool `protobuf:"varint,3,opt,name=bool_value,json=boolValue,oneof"`
BoolValue bool `protobuf:"varint,3,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
func (*AttributeValue_StringValue) isAttributeValue_Value() {}
@ -822,14 +1030,14 @@ func _AttributeValue_OneofSizer(msg proto.Message) (n int) {
switch x := m.Value.(type) {
case *AttributeValue_StringValue:
s := proto.Size(x.StringValue)
n += proto.SizeVarint(1<<3 | proto.WireBytes)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case *AttributeValue_IntValue:
n += proto.SizeVarint(2<<3 | proto.WireVarint)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(x.IntValue))
case *AttributeValue_BoolValue:
n += proto.SizeVarint(3<<3 | proto.WireVarint)
n += 1 // tag and wire
n += 1
case nil:
default:
@ -841,7 +1049,7 @@ func _AttributeValue_OneofSizer(msg proto.Message) (n int) {
// The call stack which originated this span.
type StackTrace struct {
// Stack frames in this stack trace.
StackFrames *StackTrace_StackFrames `protobuf:"bytes,1,opt,name=stack_frames,json=stackFrames" json:"stack_frames,omitempty"`
StackFrames *StackTrace_StackFrames `protobuf:"bytes,1,opt,name=stack_frames,json=stackFrames,proto3" json:"stack_frames,omitempty"`
// The hash ID is used to conserve network bandwidth for duplicate
// stack traces within a single trace.
//
@ -854,13 +1062,35 @@ type StackTrace struct {
//
// TODO: describe how to deal with the case where stack_trace_hash_id is
// zero because it was not set.
StackTraceHashId uint64 `protobuf:"varint,2,opt,name=stack_trace_hash_id,json=stackTraceHashId" json:"stack_trace_hash_id,omitempty"`
StackTraceHashId uint64 `protobuf:"varint,2,opt,name=stack_trace_hash_id,json=stackTraceHashId,proto3" json:"stack_trace_hash_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StackTrace) Reset() { *m = StackTrace{} }
func (m *StackTrace) String() string { return proto.CompactTextString(m) }
func (*StackTrace) ProtoMessage() {}
func (*StackTrace) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *StackTrace) Reset() { *m = StackTrace{} }
func (m *StackTrace) String() string { return proto.CompactTextString(m) }
func (*StackTrace) ProtoMessage() {}
func (*StackTrace) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{3}
}
func (m *StackTrace) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StackTrace.Unmarshal(m, b)
}
func (m *StackTrace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StackTrace.Marshal(b, m, deterministic)
}
func (dst *StackTrace) XXX_Merge(src proto.Message) {
xxx_messageInfo_StackTrace.Merge(dst, src)
}
func (m *StackTrace) XXX_Size() int {
return xxx_messageInfo_StackTrace.Size(m)
}
func (m *StackTrace) XXX_DiscardUnknown() {
xxx_messageInfo_StackTrace.DiscardUnknown(m)
}
var xxx_messageInfo_StackTrace proto.InternalMessageInfo
func (m *StackTrace) GetStackFrames() *StackTrace_StackFrames {
if m != nil {
@ -880,28 +1110,50 @@ func (m *StackTrace) GetStackTraceHashId() uint64 {
type StackTrace_StackFrame struct {
// The fully-qualified name that uniquely identifies the function or
// method that is active in this frame.
FunctionName *TruncatableString `protobuf:"bytes,1,opt,name=function_name,json=functionName" json:"function_name,omitempty"`
FunctionName *TruncatableString `protobuf:"bytes,1,opt,name=function_name,json=functionName,proto3" json:"function_name,omitempty"`
// An un-mangled function name, if `function_name` is
// [mangled](http://www.avabodh.com/cxxin/namemangling.html). The name can
// be fully qualified.
OriginalFunctionName *TruncatableString `protobuf:"bytes,2,opt,name=original_function_name,json=originalFunctionName" json:"original_function_name,omitempty"`
OriginalFunctionName *TruncatableString `protobuf:"bytes,2,opt,name=original_function_name,json=originalFunctionName,proto3" json:"original_function_name,omitempty"`
// The name of the source file where the function call appears.
FileName *TruncatableString `protobuf:"bytes,3,opt,name=file_name,json=fileName" json:"file_name,omitempty"`
FileName *TruncatableString `protobuf:"bytes,3,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
// The line number in `file_name` where the function call appears.
LineNumber int64 `protobuf:"varint,4,opt,name=line_number,json=lineNumber" json:"line_number,omitempty"`
LineNumber int64 `protobuf:"varint,4,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
// The column number where the function call appears, if available.
// This is important in JavaScript because of its anonymous functions.
ColumnNumber int64 `protobuf:"varint,5,opt,name=column_number,json=columnNumber" json:"column_number,omitempty"`
ColumnNumber int64 `protobuf:"varint,5,opt,name=column_number,json=columnNumber,proto3" json:"column_number,omitempty"`
// The binary module from where the code was loaded.
LoadModule *Module `protobuf:"bytes,6,opt,name=load_module,json=loadModule" json:"load_module,omitempty"`
LoadModule *Module `protobuf:"bytes,6,opt,name=load_module,json=loadModule,proto3" json:"load_module,omitempty"`
// The version of the deployed source code.
SourceVersion *TruncatableString `protobuf:"bytes,7,opt,name=source_version,json=sourceVersion" json:"source_version,omitempty"`
SourceVersion *TruncatableString `protobuf:"bytes,7,opt,name=source_version,json=sourceVersion,proto3" json:"source_version,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StackTrace_StackFrame) Reset() { *m = StackTrace_StackFrame{} }
func (m *StackTrace_StackFrame) String() string { return proto.CompactTextString(m) }
func (*StackTrace_StackFrame) ProtoMessage() {}
func (*StackTrace_StackFrame) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{3, 0}
}
func (m *StackTrace_StackFrame) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StackTrace_StackFrame.Unmarshal(m, b)
}
func (m *StackTrace_StackFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StackTrace_StackFrame.Marshal(b, m, deterministic)
}
func (dst *StackTrace_StackFrame) XXX_Merge(src proto.Message) {
xxx_messageInfo_StackTrace_StackFrame.Merge(dst, src)
}
func (m *StackTrace_StackFrame) XXX_Size() int {
return xxx_messageInfo_StackTrace_StackFrame.Size(m)
}
func (m *StackTrace_StackFrame) XXX_DiscardUnknown() {
xxx_messageInfo_StackTrace_StackFrame.DiscardUnknown(m)
}
func (m *StackTrace_StackFrame) Reset() { *m = StackTrace_StackFrame{} }
func (m *StackTrace_StackFrame) String() string { return proto.CompactTextString(m) }
func (*StackTrace_StackFrame) ProtoMessage() {}
func (*StackTrace_StackFrame) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 0} }
var xxx_messageInfo_StackTrace_StackFrame proto.InternalMessageInfo
func (m *StackTrace_StackFrame) GetFunctionName() *TruncatableString {
if m != nil {
@ -955,17 +1207,39 @@ func (m *StackTrace_StackFrame) GetSourceVersion() *TruncatableString {
// A collection of stack frames, which can be truncated.
type StackTrace_StackFrames struct {
// Stack frames in this call stack.
Frame []*StackTrace_StackFrame `protobuf:"bytes,1,rep,name=frame" json:"frame,omitempty"`
Frame []*StackTrace_StackFrame `protobuf:"bytes,1,rep,name=frame,proto3" json:"frame,omitempty"`
// The number of stack frames that were dropped because there
// were too many stack frames.
// If this value is 0, then no stack frames were dropped.
DroppedFramesCount int32 `protobuf:"varint,2,opt,name=dropped_frames_count,json=droppedFramesCount" json:"dropped_frames_count,omitempty"`
DroppedFramesCount int32 `protobuf:"varint,2,opt,name=dropped_frames_count,json=droppedFramesCount,proto3" json:"dropped_frames_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StackTrace_StackFrames) Reset() { *m = StackTrace_StackFrames{} }
func (m *StackTrace_StackFrames) String() string { return proto.CompactTextString(m) }
func (*StackTrace_StackFrames) ProtoMessage() {}
func (*StackTrace_StackFrames) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{3, 1}
}
func (m *StackTrace_StackFrames) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StackTrace_StackFrames.Unmarshal(m, b)
}
func (m *StackTrace_StackFrames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StackTrace_StackFrames.Marshal(b, m, deterministic)
}
func (dst *StackTrace_StackFrames) XXX_Merge(src proto.Message) {
xxx_messageInfo_StackTrace_StackFrames.Merge(dst, src)
}
func (m *StackTrace_StackFrames) XXX_Size() int {
return xxx_messageInfo_StackTrace_StackFrames.Size(m)
}
func (m *StackTrace_StackFrames) XXX_DiscardUnknown() {
xxx_messageInfo_StackTrace_StackFrames.DiscardUnknown(m)
}
func (m *StackTrace_StackFrames) Reset() { *m = StackTrace_StackFrames{} }
func (m *StackTrace_StackFrames) String() string { return proto.CompactTextString(m) }
func (*StackTrace_StackFrames) ProtoMessage() {}
func (*StackTrace_StackFrames) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3, 1} }
var xxx_messageInfo_StackTrace_StackFrames proto.InternalMessageInfo
func (m *StackTrace_StackFrames) GetFrame() []*StackTrace_StackFrame {
if m != nil {
@ -986,16 +1260,38 @@ type Module struct {
// TODO: document the meaning of this field.
// For example: main binary, kernel modules, and dynamic libraries
// such as libc.so, sharedlib.so.
Module *TruncatableString `protobuf:"bytes,1,opt,name=module" json:"module,omitempty"`
Module *TruncatableString `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"`
// A unique identifier for the module, usually a hash of its
// contents.
BuildId *TruncatableString `protobuf:"bytes,2,opt,name=build_id,json=buildId" json:"build_id,omitempty"`
BuildId *TruncatableString `protobuf:"bytes,2,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Module) Reset() { *m = Module{} }
func (m *Module) String() string { return proto.CompactTextString(m) }
func (*Module) ProtoMessage() {}
func (*Module) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *Module) Reset() { *m = Module{} }
func (m *Module) String() string { return proto.CompactTextString(m) }
func (*Module) ProtoMessage() {}
func (*Module) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{4}
}
func (m *Module) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Module.Unmarshal(m, b)
}
func (m *Module) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Module.Marshal(b, m, deterministic)
}
func (dst *Module) XXX_Merge(src proto.Message) {
xxx_messageInfo_Module.Merge(dst, src)
}
func (m *Module) XXX_Size() int {
return xxx_messageInfo_Module.Size(m)
}
func (m *Module) XXX_DiscardUnknown() {
xxx_messageInfo_Module.DiscardUnknown(m)
}
var xxx_messageInfo_Module proto.InternalMessageInfo
func (m *Module) GetModule() *TruncatableString {
if m != nil {
@ -1019,16 +1315,38 @@ type TruncatableString struct {
// character boundary, to ensure that a truncated string is still valid UTF-8.
// Because it may contain multi-byte characters, the size of the truncated string
// may be less than the truncation limit.
Value string `protobuf:"bytes,1,opt,name=value" json:"value,omitempty"`
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// The number of bytes removed from the original string. If this
// value is 0, then the string was not shortened.
TruncatedByteCount int32 `protobuf:"varint,2,opt,name=truncated_byte_count,json=truncatedByteCount" json:"truncated_byte_count,omitempty"`
TruncatedByteCount int32 `protobuf:"varint,2,opt,name=truncated_byte_count,json=truncatedByteCount,proto3" json:"truncated_byte_count,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TruncatableString) Reset() { *m = TruncatableString{} }
func (m *TruncatableString) String() string { return proto.CompactTextString(m) }
func (*TruncatableString) ProtoMessage() {}
func (*TruncatableString) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *TruncatableString) Reset() { *m = TruncatableString{} }
func (m *TruncatableString) String() string { return proto.CompactTextString(m) }
func (*TruncatableString) ProtoMessage() {}
func (*TruncatableString) Descriptor() ([]byte, []int) {
return fileDescriptor_trace_be9b062e640bac25, []int{5}
}
func (m *TruncatableString) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TruncatableString.Unmarshal(m, b)
}
func (m *TruncatableString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TruncatableString.Marshal(b, m, deterministic)
}
func (dst *TruncatableString) XXX_Merge(src proto.Message) {
xxx_messageInfo_TruncatableString.Merge(dst, src)
}
func (m *TruncatableString) XXX_Size() int {
return xxx_messageInfo_TruncatableString.Size(m)
}
func (m *TruncatableString) XXX_DiscardUnknown() {
xxx_messageInfo_TruncatableString.DiscardUnknown(m)
}
var xxx_messageInfo_TruncatableString proto.InternalMessageInfo
func (m *TruncatableString) GetValue() string {
if m != nil {
@ -1047,6 +1365,7 @@ func (m *TruncatableString) GetTruncatedByteCount() int32 {
func init() {
proto.RegisterType((*Span)(nil), "opencensus.proto.trace.Span")
proto.RegisterType((*Span_Attributes)(nil), "opencensus.proto.trace.Span.Attributes")
proto.RegisterMapType((map[string]*AttributeValue)(nil), "opencensus.proto.trace.Span.Attributes.AttributeMapEntry")
proto.RegisterType((*Span_TimeEvent)(nil), "opencensus.proto.trace.Span.TimeEvent")
proto.RegisterType((*Span_TimeEvent_Annotation)(nil), "opencensus.proto.trace.Span.TimeEvent.Annotation")
proto.RegisterType((*Span_TimeEvent_MessageEvent)(nil), "opencensus.proto.trace.Span.TimeEvent.MessageEvent")
@ -1065,9 +1384,11 @@ func init() {
proto.RegisterEnum("opencensus.proto.trace.Span_Link_Type", Span_Link_Type_name, Span_Link_Type_value)
}
func init() { proto.RegisterFile("opencensus/proto/trace/trace.proto", fileDescriptor0) }
func init() {
proto.RegisterFile("opencensus/proto/trace/trace.proto", fileDescriptor_trace_be9b062e640bac25)
}
var fileDescriptor0 = []byte{
var fileDescriptor_trace_be9b062e640bac25 = []byte{
// 1441 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xdd, 0x6e, 0xdb, 0xc6,
0x12, 0x36, 0x25, 0xea, 0x6f, 0x24, 0xeb, 0xc8, 0x1b, 0xc7, 0x91, 0x75, 0x72, 0x12, 0x1f, 0xb5,

Loading…
Cancel
Save