2019-08-06 17:53:14 +01:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2019-12-04 23:51:07 +00:00
|
|
|
// source: micro/go-micro/debug/service/proto/debug.proto
|
2019-08-06 17:53:14 +01:00
|
|
|
|
|
|
|
package debug
|
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
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.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
2020-02-12 11:57:17 +01:00
|
|
|
type SpanType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
SpanType_INBOUND SpanType = 0
|
|
|
|
SpanType_OUTBOUND SpanType = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
var SpanType_name = map[int32]string{
|
|
|
|
0: "INBOUND",
|
|
|
|
1: "OUTBOUND",
|
|
|
|
}
|
|
|
|
|
|
|
|
var SpanType_value = map[string]int32{
|
|
|
|
"INBOUND": 0,
|
|
|
|
"OUTBOUND": 1,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x SpanType) String() string {
|
|
|
|
return proto.EnumName(SpanType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (SpanType) EnumDescriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_dea322649cde1ef2, []int{0}
|
|
|
|
}
|
|
|
|
|
2019-08-06 17:53:14 +01:00
|
|
|
type HealthRequest struct {
|
2019-12-04 12:02:44 +00:00
|
|
|
// optional service name
|
|
|
|
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
2019-08-06 17:53:14 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HealthRequest) Reset() { *m = HealthRequest{} }
|
|
|
|
func (m *HealthRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*HealthRequest) ProtoMessage() {}
|
|
|
|
func (*HealthRequest) Descriptor() ([]byte, []int) {
|
2019-12-04 23:51:07 +00:00
|
|
|
return fileDescriptor_dea322649cde1ef2, []int{0}
|
2019-08-06 17:53:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HealthRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_HealthRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *HealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_HealthRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *HealthRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_HealthRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *HealthRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_HealthRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *HealthRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_HealthRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_HealthRequest proto.InternalMessageInfo
|
|
|
|
|
2019-12-04 12:02:44 +00:00
|
|
|
func (m *HealthRequest) GetService() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Service
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-08-06 17:53:14 +01:00
|
|
|
type HealthResponse struct {
|
|
|
|
// default: ok
|
|
|
|
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HealthResponse) Reset() { *m = HealthResponse{} }
|
|
|
|
func (m *HealthResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*HealthResponse) ProtoMessage() {}
|
|
|
|
func (*HealthResponse) Descriptor() ([]byte, []int) {
|
2019-12-04 23:51:07 +00:00
|
|
|
return fileDescriptor_dea322649cde1ef2, []int{1}
|
2019-08-06 17:53:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *HealthResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_HealthResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *HealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_HealthResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *HealthResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_HealthResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *HealthResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_HealthResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *HealthResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_HealthResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_HealthResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *HealthResponse) GetStatus() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type StatsRequest struct {
|
2019-12-04 12:02:44 +00:00
|
|
|
// optional service name
|
|
|
|
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
2019-08-06 17:53:14 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsRequest) Reset() { *m = StatsRequest{} }
|
|
|
|
func (m *StatsRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*StatsRequest) ProtoMessage() {}
|
|
|
|
func (*StatsRequest) Descriptor() ([]byte, []int) {
|
2019-12-04 23:51:07 +00:00
|
|
|
return fileDescriptor_dea322649cde1ef2, []int{2}
|
2019-08-06 17:53:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_StatsRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatsRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_StatsRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatsRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StatsRequest proto.InternalMessageInfo
|
|
|
|
|
2019-12-04 12:02:44 +00:00
|
|
|
func (m *StatsRequest) GetService() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Service
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-08-06 17:53:14 +01:00
|
|
|
type StatsResponse struct {
|
2019-12-04 23:51:07 +00:00
|
|
|
// timestamp of recording
|
|
|
|
Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
2019-08-06 17:53:14 +01:00
|
|
|
// unix timestamp
|
2019-12-04 23:51:07 +00:00
|
|
|
Started uint64 `protobuf:"varint,2,opt,name=started,proto3" json:"started,omitempty"`
|
2019-08-06 17:53:14 +01:00
|
|
|
// in seconds
|
2019-12-04 23:51:07 +00:00
|
|
|
Uptime uint64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"`
|
2019-08-06 17:53:14 +01:00
|
|
|
// in bytes
|
2019-12-04 23:51:07 +00:00
|
|
|
Memory uint64 `protobuf:"varint,4,opt,name=memory,proto3" json:"memory,omitempty"`
|
2019-08-06 17:53:14 +01:00
|
|
|
// num threads
|
2019-12-04 23:51:07 +00:00
|
|
|
Threads uint64 `protobuf:"varint,5,opt,name=threads,proto3" json:"threads,omitempty"`
|
2019-08-06 17:53:14 +01:00
|
|
|
// total gc in nanoseconds
|
2019-12-18 18:36:42 +00:00
|
|
|
Gc uint64 `protobuf:"varint,6,opt,name=gc,proto3" json:"gc,omitempty"`
|
|
|
|
// total number of requests
|
|
|
|
Requests uint64 `protobuf:"varint,7,opt,name=requests,proto3" json:"requests,omitempty"`
|
|
|
|
// total number of errors
|
|
|
|
Errors uint64 `protobuf:"varint,8,opt,name=errors,proto3" json:"errors,omitempty"`
|
2019-08-06 17:53:14 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) Reset() { *m = StatsResponse{} }
|
|
|
|
func (m *StatsResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*StatsResponse) ProtoMessage() {}
|
|
|
|
func (*StatsResponse) Descriptor() ([]byte, []int) {
|
2019-12-04 23:51:07 +00:00
|
|
|
return fileDescriptor_dea322649cde1ef2, []int{3}
|
2019-08-06 17:53:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_StatsResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_StatsResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *StatsResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatsResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatsResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_StatsResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *StatsResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatsResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StatsResponse proto.InternalMessageInfo
|
|
|
|
|
2019-12-04 23:51:07 +00:00
|
|
|
func (m *StatsResponse) GetTimestamp() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-08-06 17:53:14 +01:00
|
|
|
func (m *StatsResponse) GetStarted() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Started
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) GetUptime() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Uptime
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) GetMemory() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Memory
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) GetThreads() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Threads
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) GetGc() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Gc
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-12-18 18:36:42 +00:00
|
|
|
func (m *StatsResponse) GetRequests() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Requests
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatsResponse) GetErrors() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Errors
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-12-01 13:15:10 +00:00
|
|
|
// LogRequest requests service logs
|
2019-11-26 15:39:55 +00:00
|
|
|
type LogRequest struct {
|
2019-12-04 12:02:44 +00:00
|
|
|
// service to request logs for
|
|
|
|
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
|
|
|
// stream records continuously
|
|
|
|
Stream bool `protobuf:"varint,2,opt,name=stream,proto3" json:"stream,omitempty"`
|
2019-12-01 13:15:10 +00:00
|
|
|
// count of records to request
|
2019-12-04 12:02:44 +00:00
|
|
|
Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
|
2019-11-26 15:39:55 +00:00
|
|
|
// relative time in seconds
|
|
|
|
// before the current time
|
|
|
|
// from which to show logs
|
2019-12-04 12:02:44 +00:00
|
|
|
Since int64 `protobuf:"varint,4,opt,name=since,proto3" json:"since,omitempty"`
|
2019-11-26 15:39:55 +00:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LogRequest) Reset() { *m = LogRequest{} }
|
|
|
|
func (m *LogRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LogRequest) ProtoMessage() {}
|
|
|
|
func (*LogRequest) Descriptor() ([]byte, []int) {
|
2019-12-04 23:51:07 +00:00
|
|
|
return fileDescriptor_dea322649cde1ef2, []int{4}
|
2019-11-26 15:39:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LogRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LogRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LogRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *LogRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LogRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *LogRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LogRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *LogRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LogRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_LogRequest proto.InternalMessageInfo
|
|
|
|
|
2019-12-04 12:02:44 +00:00
|
|
|
func (m *LogRequest) GetService() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Service
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LogRequest) GetStream() bool {
|
|
|
|
if m != nil {
|
|
|
|
return m.Stream
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2019-11-27 18:38:26 +00:00
|
|
|
func (m *LogRequest) GetCount() int64 {
|
2019-11-26 15:39:55 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Count
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-11-27 18:38:26 +00:00
|
|
|
func (m *LogRequest) GetSince() int64 {
|
2019-11-26 15:39:55 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Since
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-12-01 13:15:10 +00:00
|
|
|
// Record is service log record
|
|
|
|
type Record struct {
|
|
|
|
// timestamp of log record
|
2019-11-27 17:31:35 +00:00
|
|
|
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
2019-12-01 13:15:10 +00:00
|
|
|
// record metadata
|
2019-12-18 16:02:11 +00:00
|
|
|
Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
|
|
// message
|
|
|
|
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-11-27 17:31:35 +00:00
|
|
|
}
|
|
|
|
|
2019-12-01 13:15:10 +00:00
|
|
|
func (m *Record) Reset() { *m = Record{} }
|
|
|
|
func (m *Record) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Record) ProtoMessage() {}
|
|
|
|
func (*Record) Descriptor() ([]byte, []int) {
|
2019-12-04 23:51:07 +00:00
|
|
|
return fileDescriptor_dea322649cde1ef2, []int{5}
|
2019-11-26 15:39:55 +00:00
|
|
|
}
|
|
|
|
|
2019-12-01 13:15:10 +00:00
|
|
|
func (m *Record) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Record.Unmarshal(m, b)
|
2019-11-26 15:39:55 +00:00
|
|
|
}
|
2019-12-01 13:15:10 +00:00
|
|
|
func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Record.Marshal(b, m, deterministic)
|
2019-11-26 15:39:55 +00:00
|
|
|
}
|
2019-12-01 13:15:10 +00:00
|
|
|
func (m *Record) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Record.Merge(m, src)
|
2019-11-26 15:39:55 +00:00
|
|
|
}
|
2019-12-01 13:15:10 +00:00
|
|
|
func (m *Record) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Record.Size(m)
|
2019-11-26 15:39:55 +00:00
|
|
|
}
|
2019-12-01 13:15:10 +00:00
|
|
|
func (m *Record) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Record.DiscardUnknown(m)
|
2019-11-26 15:39:55 +00:00
|
|
|
}
|
|
|
|
|
2019-12-01 13:15:10 +00:00
|
|
|
var xxx_messageInfo_Record proto.InternalMessageInfo
|
2019-11-27 17:31:35 +00:00
|
|
|
|
2019-12-01 13:15:10 +00:00
|
|
|
func (m *Record) GetTimestamp() int64 {
|
2019-11-27 17:31:35 +00:00
|
|
|
if m != nil {
|
|
|
|
return m.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
2019-11-26 15:39:55 +00:00
|
|
|
|
2019-12-18 16:02:11 +00:00
|
|
|
func (m *Record) GetMetadata() map[string]string {
|
2019-11-26 15:39:55 +00:00
|
|
|
if m != nil {
|
2019-12-18 16:02:11 +00:00
|
|
|
return m.Metadata
|
2019-11-26 15:39:55 +00:00
|
|
|
}
|
2019-12-18 16:02:11 +00:00
|
|
|
return nil
|
2019-11-26 15:39:55 +00:00
|
|
|
}
|
|
|
|
|
2019-12-18 16:02:11 +00:00
|
|
|
func (m *Record) GetMessage() string {
|
2019-11-27 17:31:35 +00:00
|
|
|
if m != nil {
|
2019-12-18 16:02:11 +00:00
|
|
|
return m.Message
|
2019-11-27 17:31:35 +00:00
|
|
|
}
|
2019-12-18 16:02:11 +00:00
|
|
|
return ""
|
2019-11-27 17:31:35 +00:00
|
|
|
}
|
|
|
|
|
2020-01-24 21:29:29 +00:00
|
|
|
type TraceRequest struct {
|
|
|
|
// trace id to retrieve
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TraceRequest) Reset() { *m = TraceRequest{} }
|
|
|
|
func (m *TraceRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*TraceRequest) ProtoMessage() {}
|
|
|
|
func (*TraceRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_dea322649cde1ef2, []int{6}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TraceRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_TraceRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *TraceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_TraceRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *TraceRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TraceRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *TraceRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_TraceRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *TraceRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TraceRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_TraceRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *TraceRequest) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type TraceResponse struct {
|
|
|
|
Spans []*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 *TraceResponse) Reset() { *m = TraceResponse{} }
|
|
|
|
func (m *TraceResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*TraceResponse) ProtoMessage() {}
|
|
|
|
func (*TraceResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_dea322649cde1ef2, []int{7}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TraceResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_TraceResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *TraceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_TraceResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *TraceResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TraceResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *TraceResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_TraceResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *TraceResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TraceResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_TraceResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *TraceResponse) GetSpans() []*Span {
|
|
|
|
if m != nil {
|
|
|
|
return m.Spans
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type Span struct {
|
|
|
|
// the trace id
|
|
|
|
Trace string `protobuf:"bytes,1,opt,name=trace,proto3" json:"trace,omitempty"`
|
|
|
|
// id of the span
|
|
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
// parent span
|
|
|
|
Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
|
|
|
|
// name of the resource
|
|
|
|
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
// time of start in nanoseconds
|
|
|
|
Started uint64 `protobuf:"varint,5,opt,name=started,proto3" json:"started,omitempty"`
|
|
|
|
// duration of the execution in nanoseconds
|
|
|
|
Duration uint64 `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"`
|
|
|
|
// associated metadata
|
|
|
|
Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
2020-02-12 11:57:17 +01:00
|
|
|
Type SpanType `protobuf:"varint,8,opt,name=type,proto3,enum=SpanType" json:"type,omitempty"`
|
2020-01-24 21:29:29 +00:00
|
|
|
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_dea322649cde1ef2, []int{8}
|
|
|
|
}
|
|
|
|
|
|
|
|
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 (m *Span) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Span.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Span) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Span.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Span) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Span.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Span proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Span) GetTrace() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Trace
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Span) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Span) GetParent() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Parent
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Span) GetName() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Span) GetStarted() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Started
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Span) GetDuration() uint64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Duration
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Span) GetMetadata() map[string]string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-02-12 11:57:17 +01:00
|
|
|
func (m *Span) GetType() SpanType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return SpanType_INBOUND
|
|
|
|
}
|
|
|
|
|
2019-08-06 17:53:14 +01:00
|
|
|
func init() {
|
2020-02-12 11:57:17 +01:00
|
|
|
proto.RegisterEnum("SpanType", SpanType_name, SpanType_value)
|
2019-08-06 17:53:14 +01:00
|
|
|
proto.RegisterType((*HealthRequest)(nil), "HealthRequest")
|
|
|
|
proto.RegisterType((*HealthResponse)(nil), "HealthResponse")
|
|
|
|
proto.RegisterType((*StatsRequest)(nil), "StatsRequest")
|
|
|
|
proto.RegisterType((*StatsResponse)(nil), "StatsResponse")
|
2019-11-26 15:39:55 +00:00
|
|
|
proto.RegisterType((*LogRequest)(nil), "LogRequest")
|
2019-12-01 13:15:10 +00:00
|
|
|
proto.RegisterType((*Record)(nil), "Record")
|
|
|
|
proto.RegisterMapType((map[string]string)(nil), "Record.MetadataEntry")
|
2020-01-24 21:29:29 +00:00
|
|
|
proto.RegisterType((*TraceRequest)(nil), "TraceRequest")
|
|
|
|
proto.RegisterType((*TraceResponse)(nil), "TraceResponse")
|
|
|
|
proto.RegisterType((*Span)(nil), "Span")
|
|
|
|
proto.RegisterMapType((map[string]string)(nil), "Span.MetadataEntry")
|
2019-08-06 17:53:14 +01:00
|
|
|
}
|
|
|
|
|
2019-12-04 12:02:44 +00:00
|
|
|
func init() {
|
2019-12-04 23:51:07 +00:00
|
|
|
proto.RegisterFile("micro/go-micro/debug/service/proto/debug.proto", fileDescriptor_dea322649cde1ef2)
|
|
|
|
}
|
|
|
|
|
|
|
|
var fileDescriptor_dea322649cde1ef2 = []byte{
|
2020-02-12 11:57:17 +01:00
|
|
|
// 595 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xa4, 0x54, 0x5b, 0x6e, 0xd3, 0x40,
|
|
|
|
0x14, 0x8d, 0x63, 0x3b, 0x71, 0x6e, 0x1e, 0x54, 0xc3, 0x43, 0x56, 0x78, 0xca, 0x12, 0x52, 0x78,
|
|
|
|
0x39, 0x10, 0x7e, 0x10, 0xfc, 0xa1, 0x22, 0x81, 0x04, 0xad, 0x34, 0x4d, 0x17, 0x30, 0xb5, 0x47,
|
|
|
|
0xa9, 0xa1, 0xf6, 0x98, 0x99, 0x71, 0xa5, 0xac, 0x85, 0x15, 0xf0, 0xc7, 0x66, 0xd8, 0x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