45 lines
1.2 KiB
Go
45 lines
1.2 KiB
Go
|
// Code generated by protoc-gen-go.
|
||
|
// source: Tracing.proto
|
||
|
// DO NOT EDIT!
|
||
|
|
||
|
package proto
|
||
|
|
||
|
import proto1 "github.com/golang/protobuf/proto"
|
||
|
import math "math"
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var _ = proto1.Marshal
|
||
|
var _ = math.Inf
|
||
|
|
||
|
// Used to pass through the information necessary to continue
|
||
|
// a trace after an RPC is made. All we need is the traceid
|
||
|
// (so we know the overarching trace this message is a part of), and
|
||
|
// the id of the current span when this message was sent, so we know
|
||
|
// what span caused the new span we will create when this message is received.
|
||
|
type RPCTInfo struct {
|
||
|
TraceId *int64 `protobuf:"varint,1,opt,name=trace_id" json:"trace_id,omitempty"`
|
||
|
ParentId *int64 `protobuf:"varint,2,opt,name=parent_id" json:"parent_id,omitempty"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *RPCTInfo) Reset() { *m = RPCTInfo{} }
|
||
|
func (m *RPCTInfo) String() string { return proto1.CompactTextString(m) }
|
||
|
func (*RPCTInfo) ProtoMessage() {}
|
||
|
|
||
|
func (m *RPCTInfo) GetTraceId() int64 {
|
||
|
if m != nil && m.TraceId != nil {
|
||
|
return *m.TraceId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *RPCTInfo) GetParentId() int64 {
|
||
|
if m != nil && m.ParentId != nil {
|
||
|
return *m.ParentId
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
}
|