Update gen-go files. (#86)
* Update gen-go files. * Remove outdated gen-go files. * Update gen-go files with latest changes.pull/90/head
parent
0f60ee61aa
commit
10f868359b
7 changed files with 1806 additions and 524 deletions
@ -0,0 +1,336 @@ |
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: opencensus/proto/agent/common/v1/common.proto
|
||||
|
||||
package v1 // import "github.com/census-instrumentation/opencensus-proto/gen-go/agent/common/v1"
|
||||
|
||||
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
|
||||
|
||||
type LibraryInfo_Language int32 |
||||
|
||||
const ( |
||||
LibraryInfo_LANGUAGE_UNSPECIFIED LibraryInfo_Language = 0 |
||||
LibraryInfo_CPP LibraryInfo_Language = 1 |
||||
LibraryInfo_C_SHARP LibraryInfo_Language = 2 |
||||
LibraryInfo_ERLANG LibraryInfo_Language = 3 |
||||
LibraryInfo_GO_LANG LibraryInfo_Language = 4 |
||||
LibraryInfo_JAVA LibraryInfo_Language = 5 |
||||
LibraryInfo_NODE_JS LibraryInfo_Language = 6 |
||||
LibraryInfo_PHP LibraryInfo_Language = 7 |
||||
LibraryInfo_PYTHON LibraryInfo_Language = 8 |
||||
LibraryInfo_RUBY LibraryInfo_Language = 9 |
||||
) |
||||
|
||||
var LibraryInfo_Language_name = map[int32]string{ |
||||
0: "LANGUAGE_UNSPECIFIED", |
||||
1: "CPP", |
||||
2: "C_SHARP", |
||||
3: "ERLANG", |
||||
4: "GO_LANG", |
||||
5: "JAVA", |
||||
6: "NODE_JS", |
||||
7: "PHP", |
||||
8: "PYTHON", |
||||
9: "RUBY", |
||||
} |
||||
var LibraryInfo_Language_value = map[string]int32{ |
||||
"LANGUAGE_UNSPECIFIED": 0, |
||||
"CPP": 1, |
||||
"C_SHARP": 2, |
||||
"ERLANG": 3, |
||||
"GO_LANG": 4, |
||||
"JAVA": 5, |
||||
"NODE_JS": 6, |
||||
"PHP": 7, |
||||
"PYTHON": 8, |
||||
"RUBY": 9, |
||||
} |
||||
|
||||
func (x LibraryInfo_Language) String() string { |
||||
return proto.EnumName(LibraryInfo_Language_name, int32(x)) |
||||
} |
||||
func (LibraryInfo_Language) EnumDescriptor() ([]byte, []int) { |
||||
return fileDescriptor_common_16e6d73ff146d81e, []int{2, 0} |
||||
} |
||||
|
||||
// Identifier metadata of the Node that connects to OpenCensus Agent.
|
||||
// In the future we plan to extend the identifier proto definition to support
|
||||
// additional information (e.g cloud id, monitored resource, etc.)
|
||||
type Node struct { |
||||
// Identifier that uniquely identifies a process within a VM/container.
|
||||
Identifier *ProcessIdentifier `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` |
||||
// Information on the OpenCensus Library who initiates the stream.
|
||||
LibraryInfo *LibraryInfo `protobuf:"bytes,2,opt,name=library_info,json=libraryInfo,proto3" json:"library_info,omitempty"` |
||||
// Additional informantion on service.
|
||||
ServiceInfo *ServiceInfo `protobuf:"bytes,3,opt,name=service_info,json=serviceInfo,proto3" json:"service_info,omitempty"` |
||||
// Additional attributes.
|
||||
Attributes map[string]string `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,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 *Node) Reset() { *m = Node{} } |
||||
func (m *Node) String() string { return proto.CompactTextString(m) } |
||||
func (*Node) ProtoMessage() {} |
||||
func (*Node) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_common_16e6d73ff146d81e, []int{0} |
||||
} |
||||
func (m *Node) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_Node.Unmarshal(m, b) |
||||
} |
||||
func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_Node.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *Node) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_Node.Merge(dst, src) |
||||
} |
||||
func (m *Node) XXX_Size() int { |
||||
return xxx_messageInfo_Node.Size(m) |
||||
} |
||||
func (m *Node) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_Node.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_Node proto.InternalMessageInfo |
||||
|
||||
func (m *Node) GetIdentifier() *ProcessIdentifier { |
||||
if m != nil { |
||||
return m.Identifier |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (m *Node) GetLibraryInfo() *LibraryInfo { |
||||
if m != nil { |
||||
return m.LibraryInfo |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (m *Node) GetServiceInfo() *ServiceInfo { |
||||
if m != nil { |
||||
return m.ServiceInfo |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (m *Node) GetAttributes() map[string]string { |
||||
if m != nil { |
||||
return m.Attributes |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
// Identifier that uniquely identifies a process within a VM/container.
|
||||
type ProcessIdentifier struct { |
||||
// The host name. Usually refers to the machine/container name.
|
||||
// For example: os.Hostname() in Go, socket.gethostname() in Python.
|
||||
HostName string `protobuf:"bytes,1,opt,name=host_name,json=hostName,proto3" json:"host_name,omitempty"` |
||||
// Process id.
|
||||
Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` |
||||
// Start time of this ProcessIdentifier. Represented in epoch time.
|
||||
StartTimestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"` |
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
||||
XXX_unrecognized []byte `json:"-"` |
||||
XXX_sizecache int32 `json:"-"` |
||||
} |
||||
|
||||
func (m *ProcessIdentifier) Reset() { *m = ProcessIdentifier{} } |
||||
func (m *ProcessIdentifier) String() string { return proto.CompactTextString(m) } |
||||
func (*ProcessIdentifier) ProtoMessage() {} |
||||
func (*ProcessIdentifier) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_common_16e6d73ff146d81e, []int{1} |
||||
} |
||||
func (m *ProcessIdentifier) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_ProcessIdentifier.Unmarshal(m, b) |
||||
} |
||||
func (m *ProcessIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_ProcessIdentifier.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *ProcessIdentifier) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_ProcessIdentifier.Merge(dst, src) |
||||
} |
||||
func (m *ProcessIdentifier) XXX_Size() int { |
||||
return xxx_messageInfo_ProcessIdentifier.Size(m) |
||||
} |
||||
func (m *ProcessIdentifier) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_ProcessIdentifier.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_ProcessIdentifier proto.InternalMessageInfo |
||||
|
||||
func (m *ProcessIdentifier) GetHostName() string { |
||||
if m != nil { |
||||
return m.HostName |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
func (m *ProcessIdentifier) GetPid() uint32 { |
||||
if m != nil { |
||||
return m.Pid |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func (m *ProcessIdentifier) GetStartTimestamp() *timestamp.Timestamp { |
||||
if m != nil { |
||||
return m.StartTimestamp |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
// Information on OpenCensus Library.
|
||||
type LibraryInfo struct { |
||||
// Language of OpenCensus Library.
|
||||
Language LibraryInfo_Language `protobuf:"varint,1,opt,name=language,proto3,enum=opencensus.proto.agent.common.v1.LibraryInfo_Language" json:"language,omitempty"` |
||||
// Version of Agent exporter of Library.
|
||||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
||||
XXX_unrecognized []byte `json:"-"` |
||||
XXX_sizecache int32 `json:"-"` |
||||
} |
||||
|
||||
func (m *LibraryInfo) Reset() { *m = LibraryInfo{} } |
||||
func (m *LibraryInfo) String() string { return proto.CompactTextString(m) } |
||||
func (*LibraryInfo) ProtoMessage() {} |
||||
func (*LibraryInfo) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_common_16e6d73ff146d81e, []int{2} |
||||
} |
||||
func (m *LibraryInfo) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_LibraryInfo.Unmarshal(m, b) |
||||
} |
||||
func (m *LibraryInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_LibraryInfo.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *LibraryInfo) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_LibraryInfo.Merge(dst, src) |
||||
} |
||||
func (m *LibraryInfo) XXX_Size() int { |
||||
return xxx_messageInfo_LibraryInfo.Size(m) |
||||
} |
||||
func (m *LibraryInfo) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_LibraryInfo.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_LibraryInfo proto.InternalMessageInfo |
||||
|
||||
func (m *LibraryInfo) GetLanguage() LibraryInfo_Language { |
||||
if m != nil { |
||||
return m.Language |
||||
} |
||||
return LibraryInfo_LANGUAGE_UNSPECIFIED |
||||
} |
||||
|
||||
func (m *LibraryInfo) GetVersion() string { |
||||
if m != nil { |
||||
return m.Version |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
// Additional service information.
|
||||
type ServiceInfo struct { |
||||
// Name of the service.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
||||
XXX_unrecognized []byte `json:"-"` |
||||
XXX_sizecache int32 `json:"-"` |
||||
} |
||||
|
||||
func (m *ServiceInfo) Reset() { *m = ServiceInfo{} } |
||||
func (m *ServiceInfo) String() string { return proto.CompactTextString(m) } |
||||
func (*ServiceInfo) ProtoMessage() {} |
||||
func (*ServiceInfo) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_common_16e6d73ff146d81e, []int{3} |
||||
} |
||||
func (m *ServiceInfo) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_ServiceInfo.Unmarshal(m, b) |
||||
} |
||||
func (m *ServiceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_ServiceInfo.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *ServiceInfo) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_ServiceInfo.Merge(dst, src) |
||||
} |
||||
func (m *ServiceInfo) XXX_Size() int { |
||||
return xxx_messageInfo_ServiceInfo.Size(m) |
||||
} |
||||
func (m *ServiceInfo) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_ServiceInfo.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_ServiceInfo proto.InternalMessageInfo |
||||
|
||||
func (m *ServiceInfo) GetName() string { |
||||
if m != nil { |
||||
return m.Name |
||||
} |
||||
return "" |
||||
} |
||||
|
||||
func init() { |
||||
proto.RegisterType((*Node)(nil), "opencensus.proto.agent.common.v1.Node") |
||||
proto.RegisterMapType((map[string]string)(nil), "opencensus.proto.agent.common.v1.Node.AttributesEntry") |
||||
proto.RegisterType((*ProcessIdentifier)(nil), "opencensus.proto.agent.common.v1.ProcessIdentifier") |
||||
proto.RegisterType((*LibraryInfo)(nil), "opencensus.proto.agent.common.v1.LibraryInfo") |
||||
proto.RegisterType((*ServiceInfo)(nil), "opencensus.proto.agent.common.v1.ServiceInfo") |
||||
proto.RegisterEnum("opencensus.proto.agent.common.v1.LibraryInfo_Language", LibraryInfo_Language_name, LibraryInfo_Language_value) |
||||
} |
||||
|
||||
func init() { |
||||
proto.RegisterFile("opencensus/proto/agent/common/v1/common.proto", fileDescriptor_common_16e6d73ff146d81e) |
||||
} |
||||
|
||||
var fileDescriptor_common_16e6d73ff146d81e = []byte{ |
||||
// 555 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x94, 0xc1, 0x6f, 0xda, 0x30, |
||||
0x14, 0xc6, 0x17, 0x42, 0x0b, 0xbc, 0x6c, 0x6d, 0x66, 0xf5, 0x80, 0xba, 0xc3, 0x3a, 0x76, 0xe9, |
||||
0x85, 0x44, 0x6d, 0xa5, 0x69, 0x9a, 0xb4, 0x43, 0x4a, 0xb3, 0x96, 0x0a, 0xa5, 0x91, 0x29, 0x95, |
||||
0xba, 0x4b, 0x14, 0xc0, 0xa4, 0xd6, 0x88, 0x8d, 0x62, 0x07, 0x89, 0xd3, 0x8e, 0xd5, 0xfe, 0x81, |
||||
0xfd, 0xbd, 0x93, 0xe3, 0x00, 0xd1, 0x7a, 0xa0, 0xb7, 0xf7, 0xfc, 0xbe, 0xef, 0x97, 0xe8, 0xf3, |
||||
0x93, 0xa1, 0xcb, 0x17, 0x84, 0x4d, 0x08, 0x13, 0xb9, 0x70, 0x17, 0x19, 0x97, 0xdc, 0x8d, 0x13, |
||||
0xc2, 0xa4, 0x3b, 0xe1, 0x69, 0xca, 0x99, 0xbb, 0x3c, 0x2b, 0x2b, 0xa7, 0x18, 0xa2, 0x93, 0xad, |
||||
0x5c, 0x9f, 0x38, 0x85, 0xdc, 0x29, 0x45, 0xcb, 0xb3, 0xe3, 0x8f, 0x09, 0xe7, 0xc9, 0x9c, 0x68, |
||||
0xd8, 0x38, 0x9f, 0xb9, 0x92, 0xa6, 0x44, 0xc8, 0x38, 0x5d, 0x68, 0x43, 0xe7, 0xaf, 0x09, 0xf5, |
||||
0x80, 0x4f, 0x09, 0x1a, 0x02, 0xd0, 0x29, 0x61, 0x92, 0xce, 0x28, 0xc9, 0xda, 0xc6, 0x89, 0x71, |
||||
0x6a, 0x9d, 0x5f, 0x38, 0xbb, 0x3e, 0xe0, 0x84, 0x19, 0x9f, 0x10, 0x21, 0xfa, 0x1b, 0x2b, 0xae, |
||||
0x60, 0x50, 0x08, 0x6f, 0xe7, 0x74, 0x9c, 0xc5, 0xd9, 0x2a, 0xa2, 0x6c, 0xc6, 0xdb, 0xb5, 0x02, |
||||
0xdb, 0xdd, 0x8d, 0x1d, 0x68, 0x57, 0x9f, 0xcd, 0x38, 0xb6, 0xe6, 0xdb, 0x46, 0x11, 0x05, 0xc9, |
||||
0x96, 0x74, 0x42, 0x34, 0xd1, 0x7c, 0x2d, 0x71, 0xa8, 0x5d, 0x9a, 0x28, 0xb6, 0x0d, 0x7a, 0x00, |
||||
0x88, 0xa5, 0xcc, 0xe8, 0x38, 0x97, 0x44, 0xb4, 0xeb, 0x27, 0xe6, 0xa9, 0x75, 0xfe, 0x65, 0x37, |
||||
0x4f, 0x85, 0xe6, 0x78, 0x1b, 0xa3, 0xcf, 0x64, 0xb6, 0xc2, 0x15, 0xd2, 0xf1, 0x77, 0x38, 0xfc, |
||||
0x6f, 0x8c, 0x6c, 0x30, 0x7f, 0x91, 0x55, 0x11, 0x6e, 0x0b, 0xab, 0x12, 0x1d, 0xc1, 0xde, 0x32, |
||||
0x9e, 0xe7, 0xa4, 0x48, 0xa6, 0x85, 0x75, 0xf3, 0xad, 0xf6, 0xd5, 0xe8, 0x3c, 0x1b, 0xf0, 0xfe, |
||||
0x45, 0xb8, 0xe8, 0x03, 0xb4, 0x9e, 0xb8, 0x90, 0x11, 0x8b, 0x53, 0x52, 0x72, 0x9a, 0xea, 0x20, |
||||
0x88, 0x53, 0xa2, 0xf0, 0x0b, 0x3a, 0x2d, 0x50, 0xef, 0xb0, 0x2a, 0x51, 0x0f, 0x0e, 0x85, 0x8c, |
||||
0x33, 0x19, 0x6d, 0xae, 0xbd, 0x0c, 0xec, 0xd8, 0xd1, 0x8b, 0xe1, 0xac, 0x17, 0xc3, 0xb9, 0x5f, |
||||
0x2b, 0xf0, 0x41, 0x61, 0xd9, 0xf4, 0x9d, 0xe7, 0x1a, 0x58, 0x95, 0xfb, 0x40, 0x18, 0x9a, 0xf3, |
||||
0x98, 0x25, 0x79, 0x9c, 0xe8, 0x5f, 0x38, 0x78, 0x4d, 0x5c, 0x15, 0x80, 0x33, 0x28, 0xdd, 0x78, |
||||
0xc3, 0x41, 0x6d, 0x68, 0x2c, 0x49, 0x26, 0x28, 0x67, 0x65, 0x12, 0xeb, 0xb6, 0xf3, 0xc7, 0x80, |
||||
0xe6, 0x60, 0x2b, 0x3b, 0x1a, 0x78, 0xc1, 0xf5, 0xc8, 0xbb, 0xf6, 0xa3, 0x51, 0x30, 0x0c, 0xfd, |
||||
0x5e, 0xff, 0x47, 0xdf, 0xbf, 0xb2, 0xdf, 0xa0, 0x06, 0x98, 0xbd, 0x30, 0xb4, 0x0d, 0x64, 0x41, |
||||
0xa3, 0x17, 0x0d, 0x6f, 0x3c, 0x1c, 0xda, 0x35, 0x04, 0xb0, 0xef, 0x63, 0xe5, 0xb0, 0x4d, 0x35, |
||||
0xb8, 0xbe, 0x8b, 0x8a, 0xa6, 0x8e, 0x9a, 0x50, 0xbf, 0xf5, 0x1e, 0x3c, 0x7b, 0x4f, 0x1d, 0x07, |
||||
0x77, 0x57, 0x7e, 0x74, 0x3b, 0xb4, 0xf7, 0x15, 0x25, 0xbc, 0x09, 0xed, 0x86, 0x32, 0x86, 0x8f, |
||||
0xf7, 0x37, 0x77, 0x81, 0xdd, 0x54, 0x5a, 0x3c, 0xba, 0x7c, 0xb4, 0x5b, 0x9d, 0x4f, 0x60, 0x55, |
||||
0xd6, 0x08, 0x21, 0xa8, 0x57, 0xee, 0xa1, 0xa8, 0x2f, 0x7f, 0xc3, 0x67, 0xca, 0x77, 0xc6, 0x71, |
||||
0x69, 0xf5, 0x8a, 0x32, 0x54, 0xc3, 0xd0, 0xf8, 0xd9, 0x4f, 0xa8, 0x7c, 0xca, 0xc7, 0x4a, 0xe0, |
||||
0x6a, 0x5f, 0x97, 0x32, 0x21, 0xb3, 0x3c, 0x25, 0x4c, 0xc6, 0x92, 0x72, 0xe6, 0x6e, 0x91, 0x5d, |
||||
0xfd, 0x32, 0x24, 0x84, 0x75, 0x93, 0x17, 0x0f, 0xc4, 0x78, 0xbf, 0x98, 0x5e, 0xfc, 0x0b, 0x00, |
||||
0x00, 0xff, 0xff, 0x5d, 0x1d, 0xe4, 0xde, 0x4b, 0x04, 0x00, 0x00, |
||||
} |
@ -0,0 +1,411 @@ |
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: opencensus/proto/agent/trace/v1/trace_service.proto
|
||||
|
||||
package v1 // import "github.com/census-instrumentation/opencensus-proto/gen-go/agent/trace/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto" |
||||
import fmt "fmt" |
||||
import math "math" |
||||
import v1 "github.com/census-instrumentation/opencensus-proto/gen-go/agent/common/v1" |
||||
import v11 "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1" |
||||
|
||||
import ( |
||||
context "golang.org/x/net/context" |
||||
grpc "google.golang.org/grpc" |
||||
) |
||||
|
||||
// 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
|
||||
|
||||
type ConfigTraceServiceRequest struct { |
||||
// Identifier data effectively is a structured metadata.
|
||||
// This is required only in the first message on the stream.
|
||||
Node *v1.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` |
||||
// Current configuration.
|
||||
Config *v11.TraceConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` |
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
||||
XXX_unrecognized []byte `json:"-"` |
||||
XXX_sizecache int32 `json:"-"` |
||||
} |
||||
|
||||
func (m *ConfigTraceServiceRequest) Reset() { *m = ConfigTraceServiceRequest{} } |
||||
func (m *ConfigTraceServiceRequest) String() string { return proto.CompactTextString(m) } |
||||
func (*ConfigTraceServiceRequest) ProtoMessage() {} |
||||
func (*ConfigTraceServiceRequest) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_trace_service_becc484d53bc0469, []int{0} |
||||
} |
||||
func (m *ConfigTraceServiceRequest) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_ConfigTraceServiceRequest.Unmarshal(m, b) |
||||
} |
||||
func (m *ConfigTraceServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_ConfigTraceServiceRequest.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *ConfigTraceServiceRequest) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_ConfigTraceServiceRequest.Merge(dst, src) |
||||
} |
||||
func (m *ConfigTraceServiceRequest) XXX_Size() int { |
||||
return xxx_messageInfo_ConfigTraceServiceRequest.Size(m) |
||||
} |
||||
func (m *ConfigTraceServiceRequest) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_ConfigTraceServiceRequest.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_ConfigTraceServiceRequest proto.InternalMessageInfo |
||||
|
||||
func (m *ConfigTraceServiceRequest) GetNode() *v1.Node { |
||||
if m != nil { |
||||
return m.Node |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (m *ConfigTraceServiceRequest) GetConfig() *v11.TraceConfig { |
||||
if m != nil { |
||||
return m.Config |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
type ConfigTraceServiceResponse struct { |
||||
// Requested updated configuration.
|
||||
Config *v11.TraceConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` |
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
||||
XXX_unrecognized []byte `json:"-"` |
||||
XXX_sizecache int32 `json:"-"` |
||||
} |
||||
|
||||
func (m *ConfigTraceServiceResponse) Reset() { *m = ConfigTraceServiceResponse{} } |
||||
func (m *ConfigTraceServiceResponse) String() string { return proto.CompactTextString(m) } |
||||
func (*ConfigTraceServiceResponse) ProtoMessage() {} |
||||
func (*ConfigTraceServiceResponse) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_trace_service_becc484d53bc0469, []int{1} |
||||
} |
||||
func (m *ConfigTraceServiceResponse) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_ConfigTraceServiceResponse.Unmarshal(m, b) |
||||
} |
||||
func (m *ConfigTraceServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_ConfigTraceServiceResponse.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *ConfigTraceServiceResponse) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_ConfigTraceServiceResponse.Merge(dst, src) |
||||
} |
||||
func (m *ConfigTraceServiceResponse) XXX_Size() int { |
||||
return xxx_messageInfo_ConfigTraceServiceResponse.Size(m) |
||||
} |
||||
func (m *ConfigTraceServiceResponse) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_ConfigTraceServiceResponse.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_ConfigTraceServiceResponse proto.InternalMessageInfo |
||||
|
||||
func (m *ConfigTraceServiceResponse) GetConfig() *v11.TraceConfig { |
||||
if m != nil { |
||||
return m.Config |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
type ExportTraceServiceRequest struct { |
||||
// Identifier data effectively is a structured metadata.
|
||||
// This is required only in the first message on the stream.
|
||||
Node *v1.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` |
||||
Spans []*v11.Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"` |
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
||||
XXX_unrecognized []byte `json:"-"` |
||||
XXX_sizecache int32 `json:"-"` |
||||
} |
||||
|
||||
func (m *ExportTraceServiceRequest) Reset() { *m = ExportTraceServiceRequest{} } |
||||
func (m *ExportTraceServiceRequest) String() string { return proto.CompactTextString(m) } |
||||
func (*ExportTraceServiceRequest) ProtoMessage() {} |
||||
func (*ExportTraceServiceRequest) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_trace_service_becc484d53bc0469, []int{2} |
||||
} |
||||
func (m *ExportTraceServiceRequest) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_ExportTraceServiceRequest.Unmarshal(m, b) |
||||
} |
||||
func (m *ExportTraceServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_ExportTraceServiceRequest.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *ExportTraceServiceRequest) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_ExportTraceServiceRequest.Merge(dst, src) |
||||
} |
||||
func (m *ExportTraceServiceRequest) XXX_Size() int { |
||||
return xxx_messageInfo_ExportTraceServiceRequest.Size(m) |
||||
} |
||||
func (m *ExportTraceServiceRequest) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_ExportTraceServiceRequest.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_ExportTraceServiceRequest proto.InternalMessageInfo |
||||
|
||||
func (m *ExportTraceServiceRequest) GetNode() *v1.Node { |
||||
if m != nil { |
||||
return m.Node |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (m *ExportTraceServiceRequest) GetSpans() []*v11.Span { |
||||
if m != nil { |
||||
return m.Spans |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
type ExportTraceServiceResponse struct { |
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
||||
XXX_unrecognized []byte `json:"-"` |
||||
XXX_sizecache int32 `json:"-"` |
||||
} |
||||
|
||||
func (m *ExportTraceServiceResponse) Reset() { *m = ExportTraceServiceResponse{} } |
||||
func (m *ExportTraceServiceResponse) String() string { return proto.CompactTextString(m) } |
||||
func (*ExportTraceServiceResponse) ProtoMessage() {} |
||||
func (*ExportTraceServiceResponse) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_trace_service_becc484d53bc0469, []int{3} |
||||
} |
||||
func (m *ExportTraceServiceResponse) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_ExportTraceServiceResponse.Unmarshal(m, b) |
||||
} |
||||
func (m *ExportTraceServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_ExportTraceServiceResponse.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *ExportTraceServiceResponse) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_ExportTraceServiceResponse.Merge(dst, src) |
||||
} |
||||
func (m *ExportTraceServiceResponse) XXX_Size() int { |
||||
return xxx_messageInfo_ExportTraceServiceResponse.Size(m) |
||||
} |
||||
func (m *ExportTraceServiceResponse) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_ExportTraceServiceResponse.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_ExportTraceServiceResponse proto.InternalMessageInfo |
||||
|
||||
func init() { |
||||
proto.RegisterType((*ConfigTraceServiceRequest)(nil), "opencensus.proto.agent.trace.v1.ConfigTraceServiceRequest") |
||||
proto.RegisterType((*ConfigTraceServiceResponse)(nil), "opencensus.proto.agent.trace.v1.ConfigTraceServiceResponse") |
||||
proto.RegisterType((*ExportTraceServiceRequest)(nil), "opencensus.proto.agent.trace.v1.ExportTraceServiceRequest") |
||||
proto.RegisterType((*ExportTraceServiceResponse)(nil), "opencensus.proto.agent.trace.v1.ExportTraceServiceResponse") |
||||
} |
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context |
||||
var _ grpc.ClientConn |
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4 |
||||
|
||||
// TraceServiceClient is the client API for TraceService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type TraceServiceClient interface { |
||||
// After the initialization this RPC must be kept alive for the
|
||||
// entire life of the application. Agent pushes configs to the
|
||||
// application via a stream of responses.
|
||||
Config(ctx context.Context, opts ...grpc.CallOption) (TraceService_ConfigClient, error) |
||||
// Allow to export Spans.
|
||||
// For performance reason, it is recommended to keep this RPC
|
||||
// alive for the entire life of the application.
|
||||
Export(ctx context.Context, opts ...grpc.CallOption) (TraceService_ExportClient, error) |
||||
} |
||||
|
||||
type traceServiceClient struct { |
||||
cc *grpc.ClientConn |
||||
} |
||||
|
||||
func NewTraceServiceClient(cc *grpc.ClientConn) TraceServiceClient { |
||||
return &traceServiceClient{cc} |
||||
} |
||||
|
||||
func (c *traceServiceClient) Config(ctx context.Context, opts ...grpc.CallOption) (TraceService_ConfigClient, error) { |
||||
stream, err := c.cc.NewStream(ctx, &_TraceService_serviceDesc.Streams[0], "/opencensus.proto.agent.trace.v1.TraceService/Config", opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
x := &traceServiceConfigClient{stream} |
||||
return x, nil |
||||
} |
||||
|
||||
type TraceService_ConfigClient interface { |
||||
Send(*ConfigTraceServiceRequest) error |
||||
Recv() (*ConfigTraceServiceResponse, error) |
||||
grpc.ClientStream |
||||
} |
||||
|
||||
type traceServiceConfigClient struct { |
||||
grpc.ClientStream |
||||
} |
||||
|
||||
func (x *traceServiceConfigClient) Send(m *ConfigTraceServiceRequest) error { |
||||
return x.ClientStream.SendMsg(m) |
||||
} |
||||
|
||||
func (x *traceServiceConfigClient) Recv() (*ConfigTraceServiceResponse, error) { |
||||
m := new(ConfigTraceServiceResponse) |
||||
if err := x.ClientStream.RecvMsg(m); err != nil { |
||||
return nil, err |
||||
} |
||||
return m, nil |
||||
} |
||||
|
||||
func (c *traceServiceClient) Export(ctx context.Context, opts ...grpc.CallOption) (TraceService_ExportClient, error) { |
||||
stream, err := c.cc.NewStream(ctx, &_TraceService_serviceDesc.Streams[1], "/opencensus.proto.agent.trace.v1.TraceService/Export", opts...) |
||||
if err != nil { |
||||
return nil, err |
||||
} |
||||
x := &traceServiceExportClient{stream} |
||||
return x, nil |
||||
} |
||||
|
||||
type TraceService_ExportClient interface { |
||||
Send(*ExportTraceServiceRequest) error |
||||
Recv() (*ExportTraceServiceResponse, error) |
||||
grpc.ClientStream |
||||
} |
||||
|
||||
type traceServiceExportClient struct { |
||||
grpc.ClientStream |
||||
} |
||||
|
||||
func (x *traceServiceExportClient) Send(m *ExportTraceServiceRequest) error { |
||||
return x.ClientStream.SendMsg(m) |
||||
} |
||||
|
||||
func (x *traceServiceExportClient) Recv() (*ExportTraceServiceResponse, error) { |
||||
m := new(ExportTraceServiceResponse) |
||||
if err := x.ClientStream.RecvMsg(m); err != nil { |
||||
return nil, err |
||||
} |
||||
return m, nil |
||||
} |
||||
|
||||
// TraceServiceServer is the server API for TraceService service.
|
||||
type TraceServiceServer interface { |
||||
// After the initialization this RPC must be kept alive for the
|
||||
// entire life of the application. Agent pushes configs to the
|
||||
// application via a stream of responses.
|
||||
Config(TraceService_ConfigServer) error |
||||
// Allow to export Spans.
|
||||
// For performance reason, it is recommended to keep this RPC
|
||||
// alive for the entire life of the application.
|
||||
Export(TraceService_ExportServer) error |
||||
} |
||||
|
||||
func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer) { |
||||
s.RegisterService(&_TraceService_serviceDesc, srv) |
||||
} |
||||
|
||||
func _TraceService_Config_Handler(srv interface{}, stream grpc.ServerStream) error { |
||||
return srv.(TraceServiceServer).Config(&traceServiceConfigServer{stream}) |
||||
} |
||||
|
||||
type TraceService_ConfigServer interface { |
||||
Send(*ConfigTraceServiceResponse) error |
||||
Recv() (*ConfigTraceServiceRequest, error) |
||||
grpc.ServerStream |
||||
} |
||||
|
||||
type traceServiceConfigServer struct { |
||||
grpc.ServerStream |
||||
} |
||||
|
||||
func (x *traceServiceConfigServer) Send(m *ConfigTraceServiceResponse) error { |
||||
return x.ServerStream.SendMsg(m) |
||||
} |
||||
|
||||
func (x *traceServiceConfigServer) Recv() (*ConfigTraceServiceRequest, error) { |
||||
m := new(ConfigTraceServiceRequest) |
||||
if err := x.ServerStream.RecvMsg(m); err != nil { |
||||
return nil, err |
||||
} |
||||
return m, nil |
||||
} |
||||
|
||||
func _TraceService_Export_Handler(srv interface{}, stream grpc.ServerStream) error { |
||||
return srv.(TraceServiceServer).Export(&traceServiceExportServer{stream}) |
||||
} |
||||
|
||||
type TraceService_ExportServer interface { |
||||
Send(*ExportTraceServiceResponse) error |
||||
Recv() (*ExportTraceServiceRequest, error) |
||||
grpc.ServerStream |
||||
} |
||||
|
||||
type traceServiceExportServer struct { |
||||
grpc.ServerStream |
||||
} |
||||
|
||||
func (x *traceServiceExportServer) Send(m *ExportTraceServiceResponse) error { |
||||
return x.ServerStream.SendMsg(m) |
||||
} |
||||
|
||||
func (x *traceServiceExportServer) Recv() (*ExportTraceServiceRequest, error) { |
||||
m := new(ExportTraceServiceRequest) |
||||
if err := x.ServerStream.RecvMsg(m); err != nil { |
||||
return nil, err |
||||
} |
||||
return m, nil |
||||
} |
||||
|
||||
var _TraceService_serviceDesc = grpc.ServiceDesc{ |
||||
ServiceName: "opencensus.proto.agent.trace.v1.TraceService", |
||||
HandlerType: (*TraceServiceServer)(nil), |
||||
Methods: []grpc.MethodDesc{}, |
||||
Streams: []grpc.StreamDesc{ |
||||
{ |
||||
StreamName: "Config", |
||||
Handler: _TraceService_Config_Handler, |
||||
ServerStreams: true, |
||||
ClientStreams: true, |
||||
}, |
||||
{ |
||||
StreamName: "Export", |
||||
Handler: _TraceService_Export_Handler, |
||||
ServerStreams: true, |
||||
ClientStreams: true, |
||||
}, |
||||
}, |
||||
Metadata: "opencensus/proto/agent/trace/v1/trace_service.proto", |
||||
} |
||||
|
||||
func init() { |
||||
proto.RegisterFile("opencensus/proto/agent/trace/v1/trace_service.proto", fileDescriptor_trace_service_becc484d53bc0469) |
||||
} |
||||
|
||||
var fileDescriptor_trace_service_becc484d53bc0469 = []byte{ |
||||
// 368 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xb1, 0x4f, 0xfa, 0x40, |
||||
0x14, 0xc7, 0x7f, 0xc7, 0x4f, 0x19, 0x0e, 0x17, 0x3b, 0x41, 0x63, 0x02, 0x69, 0xa2, 0x61, 0xb0, |
||||
0x57, 0x81, 0xb8, 0x60, 0xe2, 0x80, 0x31, 0x71, 0x32, 0xa4, 0x38, 0x19, 0x13, 0x52, 0xca, 0x59, |
||||
0x3b, 0xf0, 0x5e, 0xed, 0x5d, 0x1b, 0x77, 0x07, 0x37, 0x57, 0x77, 0xff, 0x52, 0xd3, 0x7b, 0x18, |
||||
0x50, 0xa9, 0x10, 0x75, 0xbb, 0xdc, 0xfb, 0x7e, 0xbf, 0xef, 0xf3, 0xde, 0x41, 0x79, 0x0f, 0x13, |
||||
0x09, 0xa1, 0x04, 0x95, 0x29, 0x2f, 0x49, 0x51, 0xa3, 0x17, 0x44, 0x12, 0xb4, 0xa7, 0xd3, 0x20, |
||||
0x94, 0x5e, 0xde, 0xa1, 0xc3, 0x58, 0xc9, 0x34, 0x8f, 0x43, 0x29, 0x8c, 0xc4, 0x6a, 0x2e, 0x4c, |
||||
0x74, 0x23, 0x8c, 0x49, 0x18, 0xad, 0xc8, 0x3b, 0xb6, 0x5b, 0x92, 0x1a, 0xe2, 0x6c, 0x86, 0x50, |
||||
0xc4, 0xd2, 0x89, 0xdc, 0xf6, 0xfe, 0x17, 0xf9, 0xc7, 0xf6, 0x73, 0xd9, 0xe1, 0x1a, 0xd9, 0x38, |
||||
0x44, 0xb8, 0x8d, 0x23, 0x52, 0x3b, 0x2f, 0x8c, 0x37, 0xce, 0xcc, 0xc5, 0x55, 0x51, 0x1c, 0xd1, |
||||
0x04, 0xbe, 0xbc, 0xcf, 0xa4, 0xd2, 0x56, 0x9f, 0x6f, 0x01, 0x4e, 0x65, 0x9d, 0xb5, 0x58, 0xbb, |
||||
0xd6, 0x3d, 0x10, 0x25, 0x13, 0xcd, 0x31, 0xf3, 0x8e, 0xb8, 0xc4, 0xa9, 0xf4, 0x8d, 0xc7, 0x3a, |
||||
0xe5, 0x55, 0xea, 0x54, 0xaf, 0x94, 0xb9, 0xdf, 0x37, 0x21, 0x4c, 0x6f, 0xc2, 0xf0, 0xe7, 0x2e, |
||||
0xe7, 0x86, 0xdb, 0xab, 0xc0, 0x54, 0x82, 0xa0, 0x7e, 0x9f, 0xfe, 0xcc, 0x78, 0xe3, 0xfc, 0x21, |
||||
0xc1, 0x54, 0xff, 0xf5, 0xdc, 0xc7, 0x7c, 0x5b, 0x25, 0x01, 0xa8, 0x7a, 0xa5, 0xf5, 0xbf, 0x5d, |
||||
0xeb, 0x36, 0xbf, 0x01, 0x1b, 0x25, 0x01, 0xf8, 0xa4, 0x76, 0xf6, 0xb8, 0xbd, 0x8a, 0x87, 0xc6, |
||||
0xed, 0xbe, 0x56, 0xf8, 0xce, 0x72, 0xc1, 0x7a, 0x62, 0xbc, 0x4a, 0x23, 0x59, 0x7d, 0xb1, 0xe6, |
||||
0x87, 0x26, 0x4a, 0x1f, 0xd8, 0x3e, 0xf9, 0x91, 0x97, 0xa0, 0x9c, 0x7f, 0x6d, 0x76, 0xc4, 0x0c, |
||||
0x09, 0x91, 0x6f, 0x40, 0x52, 0xba, 0xf2, 0x0d, 0x48, 0xca, 0xd7, 0x43, 0x24, 0x83, 0x47, 0xc6, |
||||
0x9d, 0x18, 0xd7, 0xe5, 0x0c, 0x76, 0x97, 0x23, 0x86, 0x85, 0x62, 0xc8, 0xae, 0x2f, 0xa2, 0x58, |
||||
0xdf, 0x65, 0x93, 0xe2, 0x49, 0x3d, 0x32, 0xbb, 0x31, 0x28, 0x9d, 0x66, 0x33, 0x09, 0x3a, 0xd0, |
||||
0x31, 0x82, 0xb7, 0xc8, 0x75, 0xe9, 0x7f, 0x15, 0x49, 0x70, 0xa3, 0xcf, 0x9f, 0x82, 0x49, 0xd5, |
||||
0x14, 0x7b, 0x6f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xa0, 0xe5, 0xe4, 0x71, 0x34, 0x04, 0x00, 0x00, |
||||
} |
@ -0,0 +1,358 @@ |
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: opencensus/proto/trace/v1/trace_config.proto
|
||||
|
||||
package v1 // import "github.com/census-instrumentation/opencensus-proto/gen-go/trace/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto" |
||||
import fmt "fmt" |
||||
import math "math" |
||||
|
||||
// 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
|
||||
|
||||
// Global configuration of the trace service.
|
||||
type TraceConfig struct { |
||||
// The global default sampler used to make decisions on span sampling.
|
||||
//
|
||||
// Types that are valid to be assigned to Sampler:
|
||||
// *TraceConfig_ProbabilitySampler
|
||||
// *TraceConfig_ConstantSampler
|
||||
// *TraceConfig_RateLimitingSampler
|
||||
Sampler isTraceConfig_Sampler `protobuf_oneof:"sampler"` |
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
||||
XXX_unrecognized []byte `json:"-"` |
||||
XXX_sizecache int32 `json:"-"` |
||||
} |
||||
|
||||
func (m *TraceConfig) Reset() { *m = TraceConfig{} } |
||||
func (m *TraceConfig) String() string { return proto.CompactTextString(m) } |
||||
func (*TraceConfig) ProtoMessage() {} |
||||
func (*TraceConfig) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_trace_config_f3e6892b10e0734b, []int{0} |
||||
} |
||||
func (m *TraceConfig) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_TraceConfig.Unmarshal(m, b) |
||||
} |
||||
func (m *TraceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_TraceConfig.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *TraceConfig) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_TraceConfig.Merge(dst, src) |
||||
} |
||||
func (m *TraceConfig) XXX_Size() int { |
||||
return xxx_messageInfo_TraceConfig.Size(m) |
||||
} |
||||
func (m *TraceConfig) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_TraceConfig.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_TraceConfig proto.InternalMessageInfo |
||||
|
||||
type isTraceConfig_Sampler interface { |
||||
isTraceConfig_Sampler() |
||||
} |
||||
|
||||
type TraceConfig_ProbabilitySampler struct { |
||||
ProbabilitySampler *ProbabilitySampler `protobuf:"bytes,1,opt,name=probability_sampler,json=probabilitySampler,proto3,oneof"` |
||||
} |
||||
|
||||
type TraceConfig_ConstantSampler struct { |
||||
ConstantSampler *ConstantSampler `protobuf:"bytes,2,opt,name=constant_sampler,json=constantSampler,proto3,oneof"` |
||||
} |
||||
|
||||
type TraceConfig_RateLimitingSampler struct { |
||||
RateLimitingSampler *RateLimitingSampler `protobuf:"bytes,3,opt,name=rate_limiting_sampler,json=rateLimitingSampler,proto3,oneof"` |
||||
} |
||||
|
||||
func (*TraceConfig_ProbabilitySampler) isTraceConfig_Sampler() {} |
||||
|
||||
func (*TraceConfig_ConstantSampler) isTraceConfig_Sampler() {} |
||||
|
||||
func (*TraceConfig_RateLimitingSampler) isTraceConfig_Sampler() {} |
||||
|
||||
func (m *TraceConfig) GetSampler() isTraceConfig_Sampler { |
||||
if m != nil { |
||||
return m.Sampler |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (m *TraceConfig) GetProbabilitySampler() *ProbabilitySampler { |
||||
if x, ok := m.GetSampler().(*TraceConfig_ProbabilitySampler); ok { |
||||
return x.ProbabilitySampler |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (m *TraceConfig) GetConstantSampler() *ConstantSampler { |
||||
if x, ok := m.GetSampler().(*TraceConfig_ConstantSampler); ok { |
||||
return x.ConstantSampler |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func (m *TraceConfig) GetRateLimitingSampler() *RateLimitingSampler { |
||||
if x, ok := m.GetSampler().(*TraceConfig_RateLimitingSampler); ok { |
||||
return x.RateLimitingSampler |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*TraceConfig) 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 _TraceConfig_OneofMarshaler, _TraceConfig_OneofUnmarshaler, _TraceConfig_OneofSizer, []interface{}{ |
||||
(*TraceConfig_ProbabilitySampler)(nil), |
||||
(*TraceConfig_ConstantSampler)(nil), |
||||
(*TraceConfig_RateLimitingSampler)(nil), |
||||
} |
||||
} |
||||
|
||||
func _TraceConfig_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
||||
m := msg.(*TraceConfig) |
||||
// sampler
|
||||
switch x := m.Sampler.(type) { |
||||
case *TraceConfig_ProbabilitySampler: |
||||
b.EncodeVarint(1<<3 | proto.WireBytes) |
||||
if err := b.EncodeMessage(x.ProbabilitySampler); err != nil { |
||||
return err |
||||
} |
||||
case *TraceConfig_ConstantSampler: |
||||
b.EncodeVarint(2<<3 | proto.WireBytes) |
||||
if err := b.EncodeMessage(x.ConstantSampler); err != nil { |
||||
return err |
||||
} |
||||
case *TraceConfig_RateLimitingSampler: |
||||
b.EncodeVarint(3<<3 | proto.WireBytes) |
||||
if err := b.EncodeMessage(x.RateLimitingSampler); err != nil { |
||||
return err |
||||
} |
||||
case nil: |
||||
default: |
||||
return fmt.Errorf("TraceConfig.Sampler has unexpected type %T", x) |
||||
} |
||||
return nil |
||||
} |
||||
|
||||
func _TraceConfig_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
||||
m := msg.(*TraceConfig) |
||||
switch tag { |
||||
case 1: // sampler.probability_sampler
|
||||
if wire != proto.WireBytes { |
||||
return true, proto.ErrInternalBadWireType |
||||
} |
||||
msg := new(ProbabilitySampler) |
||||
err := b.DecodeMessage(msg) |
||||
m.Sampler = &TraceConfig_ProbabilitySampler{msg} |
||||
return true, err |
||||
case 2: // sampler.constant_sampler
|
||||
if wire != proto.WireBytes { |
||||
return true, proto.ErrInternalBadWireType |
||||
} |
||||
msg := new(ConstantSampler) |
||||
err := b.DecodeMessage(msg) |
||||
m.Sampler = &TraceConfig_ConstantSampler{msg} |
||||
return true, err |
||||
case 3: // sampler.rate_limiting_sampler
|
||||
if wire != proto.WireBytes { |
||||
return true, proto.ErrInternalBadWireType |
||||
} |
||||
msg := new(RateLimitingSampler) |
||||
err := b.DecodeMessage(msg) |
||||
m.Sampler = &TraceConfig_RateLimitingSampler{msg} |
||||
return true, err |
||||
default: |
||||
return false, nil |
||||
} |
||||
} |
||||
|
||||
func _TraceConfig_OneofSizer(msg proto.Message) (n int) { |
||||
m := msg.(*TraceConfig) |
||||
// sampler
|
||||
switch x := m.Sampler.(type) { |
||||
case *TraceConfig_ProbabilitySampler: |
||||
s := proto.Size(x.ProbabilitySampler) |
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s)) |
||||
n += s |
||||
case *TraceConfig_ConstantSampler: |
||||
s := proto.Size(x.ConstantSampler) |
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s)) |
||||
n += s |
||||
case *TraceConfig_RateLimitingSampler: |
||||
s := proto.Size(x.RateLimitingSampler) |
||||
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 |
||||
} |
||||
|
||||
// Sampler that tries to uniformly sample traces with a given probability.
|
||||
// The probability of sampling a trace is equal to that of the specified probability.
|
||||
type ProbabilitySampler struct { |
||||
// The desired probability of sampling. Must be within [0.0, 1.0].
|
||||
SamplingProbability float64 `protobuf:"fixed64,1,opt,name=samplingProbability,proto3" json:"samplingProbability,omitempty"` |
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
||||
XXX_unrecognized []byte `json:"-"` |
||||
XXX_sizecache int32 `json:"-"` |
||||
} |
||||
|
||||
func (m *ProbabilitySampler) Reset() { *m = ProbabilitySampler{} } |
||||
func (m *ProbabilitySampler) String() string { return proto.CompactTextString(m) } |
||||
func (*ProbabilitySampler) ProtoMessage() {} |
||||
func (*ProbabilitySampler) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_trace_config_f3e6892b10e0734b, []int{1} |
||||
} |
||||
func (m *ProbabilitySampler) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_ProbabilitySampler.Unmarshal(m, b) |
||||
} |
||||
func (m *ProbabilitySampler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_ProbabilitySampler.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *ProbabilitySampler) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_ProbabilitySampler.Merge(dst, src) |
||||
} |
||||
func (m *ProbabilitySampler) XXX_Size() int { |
||||
return xxx_messageInfo_ProbabilitySampler.Size(m) |
||||
} |
||||
func (m *ProbabilitySampler) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_ProbabilitySampler.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_ProbabilitySampler proto.InternalMessageInfo |
||||
|
||||
func (m *ProbabilitySampler) GetSamplingProbability() float64 { |
||||
if m != nil { |
||||
return m.SamplingProbability |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
// Sampler that makes a constant decision (either always "yes" or always "no")
|
||||
// on span sampling.
|
||||
type ConstantSampler struct { |
||||
// Whether spans should be always sampled, or never sampled.
|
||||
Decision bool `protobuf:"varint,1,opt,name=decision,proto3" json:"decision,omitempty"` |
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
||||
XXX_unrecognized []byte `json:"-"` |
||||
XXX_sizecache int32 `json:"-"` |
||||
} |
||||
|
||||
func (m *ConstantSampler) Reset() { *m = ConstantSampler{} } |
||||
func (m *ConstantSampler) String() string { return proto.CompactTextString(m) } |
||||
func (*ConstantSampler) ProtoMessage() {} |
||||
func (*ConstantSampler) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_trace_config_f3e6892b10e0734b, []int{2} |
||||
} |
||||
func (m *ConstantSampler) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_ConstantSampler.Unmarshal(m, b) |
||||
} |
||||
func (m *ConstantSampler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_ConstantSampler.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *ConstantSampler) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_ConstantSampler.Merge(dst, src) |
||||
} |
||||
func (m *ConstantSampler) XXX_Size() int { |
||||
return xxx_messageInfo_ConstantSampler.Size(m) |
||||
} |
||||
func (m *ConstantSampler) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_ConstantSampler.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_ConstantSampler proto.InternalMessageInfo |
||||
|
||||
func (m *ConstantSampler) GetDecision() bool { |
||||
if m != nil { |
||||
return m.Decision |
||||
} |
||||
return false |
||||
} |
||||
|
||||
// Sampler that tries to sample with a rate per time window.
|
||||
type RateLimitingSampler struct { |
||||
// Rate per second.
|
||||
Qps int64 `protobuf:"varint,1,opt,name=qps,proto3" json:"qps,omitempty"` |
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"` |
||||
XXX_unrecognized []byte `json:"-"` |
||||
XXX_sizecache int32 `json:"-"` |
||||
} |
||||
|
||||
func (m *RateLimitingSampler) Reset() { *m = RateLimitingSampler{} } |
||||
func (m *RateLimitingSampler) String() string { return proto.CompactTextString(m) } |
||||
func (*RateLimitingSampler) ProtoMessage() {} |
||||
func (*RateLimitingSampler) Descriptor() ([]byte, []int) { |
||||
return fileDescriptor_trace_config_f3e6892b10e0734b, []int{3} |
||||
} |
||||
func (m *RateLimitingSampler) XXX_Unmarshal(b []byte) error { |
||||
return xxx_messageInfo_RateLimitingSampler.Unmarshal(m, b) |
||||
} |
||||
func (m *RateLimitingSampler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
||||
return xxx_messageInfo_RateLimitingSampler.Marshal(b, m, deterministic) |
||||
} |
||||
func (dst *RateLimitingSampler) XXX_Merge(src proto.Message) { |
||||
xxx_messageInfo_RateLimitingSampler.Merge(dst, src) |
||||
} |
||||
func (m *RateLimitingSampler) XXX_Size() int { |
||||
return xxx_messageInfo_RateLimitingSampler.Size(m) |
||||
} |
||||
func (m *RateLimitingSampler) XXX_DiscardUnknown() { |
||||
xxx_messageInfo_RateLimitingSampler.DiscardUnknown(m) |
||||
} |
||||
|
||||
var xxx_messageInfo_RateLimitingSampler proto.InternalMessageInfo |
||||
|
||||
func (m *RateLimitingSampler) GetQps() int64 { |
||||
if m != nil { |
||||
return m.Qps |
||||
} |
||||
return 0 |
||||
} |
||||
|
||||
func init() { |
||||
proto.RegisterType((*TraceConfig)(nil), "opencensus.proto.trace.v1.TraceConfig") |
||||
proto.RegisterType((*ProbabilitySampler)(nil), "opencensus.proto.trace.v1.ProbabilitySampler") |
||||
proto.RegisterType((*ConstantSampler)(nil), "opencensus.proto.trace.v1.ConstantSampler") |
||||
proto.RegisterType((*RateLimitingSampler)(nil), "opencensus.proto.trace.v1.RateLimitingSampler") |
||||
} |
||||
|
||||
func init() { |
||||
proto.RegisterFile("opencensus/proto/trace/v1/trace_config.proto", fileDescriptor_trace_config_f3e6892b10e0734b) |
||||
} |
||||
|
||||
var fileDescriptor_trace_config_f3e6892b10e0734b = []byte{ |
||||
// 327 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x5d, 0x4b, 0xf3, 0x30, |
||||
0x14, 0xc7, 0x9f, 0x6e, 0xf0, 0x38, 0xcf, 0x2e, 0x36, 0x52, 0x04, 0x15, 0x2f, 0xa4, 0x37, 0x8a, |
||||
0xd8, 0xd4, 0xe9, 0x37, 0xe8, 0x40, 0xbc, 0xf0, 0x62, 0x54, 0x41, 0xf0, 0x66, 0xa6, 0x59, 0xac, |
||||
0x07, 0xd6, 0xa4, 0x26, 0x67, 0x03, 0x3f, 0x9a, 0xdf, 0x4e, 0x96, 0x8e, 0x75, 0xba, 0x97, 0xbb, |
||||
0xe4, 0xff, 0xf2, 0x6b, 0x4f, 0x7b, 0xe0, 0xda, 0x54, 0x4a, 0x4b, 0xa5, 0xdd, 0xcc, 0x25, 0x95, |
||||
0x35, 0x64, 0x12, 0xb2, 0x42, 0xaa, 0x64, 0x3e, 0xa8, 0x0f, 0x63, 0x69, 0xf4, 0x3b, 0x16, 0xdc, |
||||
0x7b, 0xec, 0xa4, 0x49, 0xd7, 0x0a, 0xf7, 0x21, 0x3e, 0x1f, 0x44, 0xdf, 0x2d, 0xe8, 0x3e, 0x2f, |
||||
0x2e, 0x43, 0x5f, 0x60, 0x6f, 0x10, 0x56, 0xd6, 0xe4, 0x22, 0xc7, 0x29, 0xd2, 0xd7, 0xd8, 0x89, |
||||
0xb2, 0x9a, 0x2a, 0x7b, 0x1c, 0x9c, 0x07, 0x97, 0xdd, 0xdb, 0x98, 0xef, 0x04, 0xf1, 0x51, 0xd3, |
||||
0x7a, 0xaa, 0x4b, 0x0f, 0xff, 0x32, 0x56, 0x6d, 0xa8, 0xec, 0x05, 0xfa, 0xd2, 0x68, 0x47, 0x42, |
||||
0xd3, 0x0a, 0xdf, 0xf2, 0xf8, 0xab, 0x3d, 0xf8, 0xe1, 0xb2, 0xd2, 0xb0, 0x7b, 0xf2, 0xb7, 0xc4, |
||||
0x26, 0x70, 0x64, 0x05, 0xa9, 0xf1, 0x14, 0x4b, 0x24, 0xd4, 0xc5, 0x8a, 0xde, 0xf6, 0x74, 0xbe, |
||||
0x87, 0x9e, 0x09, 0x52, 0x8f, 0xcb, 0x5a, 0xf3, 0x84, 0xd0, 0x6e, 0xca, 0xe9, 0x21, 0x1c, 0x2c, |
||||
0xb9, 0xd1, 0x3d, 0xb0, 0xcd, 0xa9, 0xd9, 0x0d, 0x84, 0x3e, 0x80, 0xba, 0x58, 0x73, 0xfd, 0x17, |
||||
0x0c, 0xb2, 0x6d, 0x56, 0x14, 0x43, 0xef, 0xcf, 0x78, 0xec, 0x14, 0x3a, 0x13, 0x25, 0xd1, 0xa1, |
||||
0xd1, 0xbe, 0xd9, 0xc9, 0x56, 0xf7, 0xe8, 0x02, 0xc2, 0x2d, 0xef, 0xcb, 0xfa, 0xd0, 0xfe, 0xac, |
||||
0x9c, 0x4f, 0xb7, 0xb3, 0xc5, 0x31, 0x9d, 0xc3, 0x19, 0x9a, 0xdd, 0x53, 0xa7, 0xfd, 0xb5, 0x1f, |
||||
0x3f, 0x5a, 0x58, 0xa3, 0xe0, 0x35, 0x2d, 0x90, 0x3e, 0x66, 0x39, 0x97, 0xa6, 0x4c, 0xea, 0x56, |
||||
0x8c, 0xda, 0x91, 0x9d, 0x95, 0x4a, 0x93, 0x20, 0x34, 0x3a, 0x69, 0x80, 0x71, 0xbd, 0x7a, 0x85, |
||||
0xd2, 0x71, 0xd1, 0x6c, 0x60, 0xfe, 0xdf, 0xcb, 0x77, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb2, |
||||
0x61, 0x29, 0x8f, 0xa5, 0x02, 0x00, 0x00, |
||||
} |
Loading…
Reference in new issue