Documentation ¶
Index ¶
- Variables
- type ErrorInfo
- func (*ErrorInfo) Descriptor() ([]byte, []int)
- func (m *ErrorInfo) GetErrorKind() ErrorType
- func (m *ErrorInfo) GetErrorMessage() string
- func (m *ErrorInfo) GetErrorOccurTime() int64
- func (m *ErrorInfo) GetErrorStack() []string
- func (m *ErrorInfo) GetErrorTags() map[string]string
- func (m *ErrorInfo) Marshal() (dAtA []byte, err error)
- func (m *ErrorInfo) MarshalTo(dAtA []byte) (int, error)
- func (*ErrorInfo) ProtoMessage()
- func (m *ErrorInfo) Reset()
- func (m *ErrorInfo) Size() (n int)
- func (m *ErrorInfo) String() string
- func (m *ErrorInfo) Unmarshal(dAtA []byte) error
- func (m *ErrorInfo) XXX_DiscardUnknown()
- func (m *ErrorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ErrorInfo) XXX_Merge(src proto.Message)
- func (m *ErrorInfo) XXX_Size() int
- func (m *ErrorInfo) XXX_Unmarshal(b []byte) error
- type ErrorTag
- type ErrorType
- type Span
- func (*Span) Descriptor() ([]byte, []int)
- func (m *Span) GetCallResource() string
- func (m *Span) GetCallService() string
- func (m *Span) GetCallServiceType() string
- func (m *Span) GetDurationMicroseconds() int64
- func (m *Span) GetEndTimeMillisecond() int64
- func (m *Span) GetErrorInfoList() []*ErrorInfo
- func (m *Span) GetOperationName() string
- func (m *Span) GetParamFloat() map[string]float64
- func (m *Span) GetParamInt() map[string]int64
- func (m *Span) GetParamString() map[string]string
- func (m *Span) GetParentSpanId() string
- func (m *Span) GetResource() string
- func (m *Span) GetSpanId() string
- func (m *Span) GetSpanType() SpanType
- func (m *Span) GetStartTimeMicrosecond() int64
- func (m *Span) GetStartTimeMillisecond() int64
- func (m *Span) GetStatus() int64
- func (m *Span) Marshal() (dAtA []byte, err error)
- func (m *Span) MarshalTo(dAtA []byte) (int, error)
- func (*Span) ProtoMessage()
- func (m *Span) Reset()
- func (m *Span) Size() (n int)
- func (m *Span) String() string
- func (m *Span) Unmarshal(dAtA []byte) error
- func (m *Span) XXX_DiscardUnknown()
- func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Span) XXX_Merge(src proto.Message)
- func (m *Span) XXX_Size() int
- func (m *Span) XXX_Unmarshal(b []byte) error
- type SpanType
- type Trace
- func (*Trace) Descriptor() ([]byte, []int)
- func (m *Trace) GetApiTimeSeconds() int64
- func (m *Trace) GetAppId() string
- func (m *Trace) GetContainerId() string
- func (m *Trace) GetEnv() string
- func (m *Trace) GetHostname() string
- func (m *Trace) GetInstanceId() string
- func (m *Trace) GetPid() int64
- func (m *Trace) GetProcessStartTime() int64
- func (m *Trace) GetService() string
- func (m *Trace) GetServiceType() string
- func (m *Trace) GetSpans() []*Span
- func (m *Trace) GetTraceId() string
- func (m *Trace) Marshal() (dAtA []byte, err error)
- func (m *Trace) MarshalTo(dAtA []byte) (int, error)
- func (*Trace) ProtoMessage()
- func (m *Trace) Reset()
- func (m *Trace) Size() (n int)
- func (m *Trace) String() string
- func (m *Trace) Unmarshal(dAtA []byte) error
- func (m *Trace) XXX_DiscardUnknown()
- func (m *Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Trace) XXX_Merge(src proto.Message)
- func (m *Trace) XXX_Size() int
- func (m *Trace) XXX_Unmarshal(b []byte) error
- type TraceCollect
- func (*TraceCollect) Descriptor() ([]byte, []int)
- func (m *TraceCollect) GetHostname() string
- func (m *TraceCollect) GetTraces() [][]byte
- func (m *TraceCollect) Marshal() (dAtA []byte, err error)
- func (m *TraceCollect) MarshalTo(dAtA []byte) (int, error)
- func (*TraceCollect) ProtoMessage()
- func (m *TraceCollect) Reset()
- func (m *TraceCollect) Size() (n int)
- func (m *TraceCollect) String() string
- func (m *TraceCollect) Unmarshal(dAtA []byte) error
- func (m *TraceCollect) XXX_DiscardUnknown()
- func (m *TraceCollect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *TraceCollect) XXX_Merge(src proto.Message)
- func (m *TraceCollect) XXX_Size() int
- func (m *TraceCollect) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthInternalTrace = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowInternalTrace = fmt.Errorf("proto: integer overflow") )
View Source
var ErrorTag_name = map[int32]string{
1: "ServerError",
2: "Error",
}
View Source
var ErrorTag_value = map[string]int32{
"ServerError": 1,
"Error": 2,
}
View Source
var ErrorType_name = map[int32]string{
0: "DbError",
1: "ExternalServiceError",
2: "HttpCodeError",
3: "NoSqlError",
4: "MqError",
5: "UncaughtException",
6: "BusinessError",
7: "Panic",
}
View Source
var ErrorType_value = map[string]int32{
"DbError": 0,
"ExternalServiceError": 1,
"HttpCodeError": 2,
"NoSqlError": 3,
"MqError": 4,
"UncaughtException": 5,
"BusinessError": 6,
"Panic": 7,
}
View Source
var SpanType_name = map[int32]string{
0: "Common",
1: "Server",
2: "Client",
}
View Source
var SpanType_value = map[string]int32{
"Common": 0,
"Server": 1,
"Client": 2,
}
Functions ¶
This section is empty.
Types ¶
type ErrorInfo ¶ added in v1.2.0
type ErrorInfo struct { ErrorKind ErrorType `protobuf:"varint,1,opt,name=error_kind,json=errorKind,enum=trace_models.ErrorType" json:"error_kind"` ErrorMessage string `protobuf:"bytes,2,opt,name=error_message,json=errorMessage" json:"error_message"` ErrorStack []string `protobuf:"bytes,3,rep,name=error_stack,json=errorStack" json:"error_stack,omitempty"` ErrorOccurTime int64 `protobuf:"varint,4,opt,name=error_occur_time,json=errorOccurTime" json:"error_occur_time"` ErrorTags map[string]string `` /* 157-byte string literal not displayed */ }
func (*ErrorInfo) Descriptor ¶ added in v1.2.0
func (*ErrorInfo) GetErrorKind ¶ added in v1.2.0
func (*ErrorInfo) GetErrorMessage ¶ added in v1.2.0
func (*ErrorInfo) GetErrorOccurTime ¶ added in v1.2.0
func (*ErrorInfo) GetErrorStack ¶ added in v1.2.0
func (*ErrorInfo) GetErrorTags ¶ added in v1.2.0
func (*ErrorInfo) ProtoMessage ¶ added in v1.2.0
func (*ErrorInfo) ProtoMessage()
func (*ErrorInfo) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *ErrorInfo) XXX_DiscardUnknown()
func (*ErrorInfo) XXX_Marshal ¶ added in v1.2.0
func (*ErrorInfo) XXX_Unmarshal ¶ added in v1.2.0
type ErrorTag ¶ added in v1.2.0
type ErrorTag int32
func (ErrorTag) EnumDescriptor ¶ added in v1.2.0
func (*ErrorTag) UnmarshalJSON ¶ added in v1.2.0
type ErrorType ¶ added in v1.2.0
type ErrorType int32
const ( ErrorType_DbError ErrorType = 0 ErrorType_ExternalServiceError ErrorType = 1 ErrorType_HttpCodeError ErrorType = 2 ErrorType_NoSqlError ErrorType = 3 ErrorType_MqError ErrorType = 4 ErrorType_UncaughtException ErrorType = 5 ErrorType_BusinessError ErrorType = 6 ErrorType_Panic ErrorType = 7 )
func (ErrorType) EnumDescriptor ¶ added in v1.2.0
func (*ErrorType) UnmarshalJSON ¶ added in v1.2.0
type Span ¶
type Span struct { SpanId string `protobuf:"bytes,1,req,name=span_id,json=spanId" json:"span_id"` ParentSpanId string `protobuf:"bytes,2,req,name=parent_span_id,json=parentSpanId" json:"parent_span_id"` OperationName string `protobuf:"bytes,3,req,name=operation_name,json=operationName" json:"operation_name"` StartTimeMillisecond int64 `protobuf:"varint,4,req,name=start_time_millisecond,json=startTimeMillisecond" json:"start_time_millisecond"` EndTimeMillisecond int64 `protobuf:"varint,5,req,name=end_time_millisecond,json=endTimeMillisecond" json:"end_time_millisecond"` DurationMicroseconds int64 `protobuf:"varint,6,req,name=duration_microseconds,json=durationMicroseconds" json:"duration_microseconds"` Status int64 `protobuf:"varint,7,req,name=status" json:"status"` SpanType SpanType `protobuf:"varint,8,req,name=span_type,json=spanType,enum=trace_models.SpanType" json:"span_type"` StartTimeMicrosecond int64 `protobuf:"varint,9,req,name=start_time_microsecond,json=startTimeMicrosecond" json:"start_time_microsecond"` ParamInt map[string]int64 `` /* 154-byte string literal not displayed */ ParamFloat map[string]float64 `` /* 161-byte string literal not displayed */ ParamString map[string]string `` /* 162-byte string literal not displayed */ Resource string `protobuf:"bytes,40,opt,name=resource" json:"resource"` CallServiceType string `protobuf:"bytes,60,opt,name=call_service_type,json=callServiceType" json:"call_service_type"` CallService string `protobuf:"bytes,61,opt,name=call_service,json=callService" json:"call_service"` CallResource string `protobuf:"bytes,62,opt,name=call_resource,json=callResource" json:"call_resource"` ErrorInfoList []*ErrorInfo `protobuf:"bytes,70,rep,name=error_info_list,json=errorInfoList" json:"error_info_list,omitempty"` }
func (*Span) Descriptor ¶
func (*Span) GetCallResource ¶
func (*Span) GetCallService ¶
func (*Span) GetCallServiceType ¶
func (*Span) GetDurationMicroseconds ¶
func (*Span) GetEndTimeMillisecond ¶
func (*Span) GetErrorInfoList ¶ added in v1.2.0
func (*Span) GetOperationName ¶
func (*Span) GetParamFloat ¶
func (*Span) GetParamInt ¶
func (*Span) GetParamString ¶
func (*Span) GetParentSpanId ¶
func (*Span) GetResource ¶
func (*Span) GetSpanType ¶
func (*Span) GetStartTimeMicrosecond ¶
func (*Span) GetStartTimeMillisecond ¶
func (*Span) ProtoMessage ¶
func (*Span) ProtoMessage()
func (*Span) XXX_DiscardUnknown ¶
func (m *Span) XXX_DiscardUnknown()
func (*Span) XXX_Unmarshal ¶
type SpanType ¶
type SpanType int32
func (SpanType) EnumDescriptor ¶
func (*SpanType) UnmarshalJSON ¶
type Trace ¶
type Trace struct { ServiceType string `protobuf:"bytes,1,req,name=service_type,json=serviceType" json:"service_type"` Service string `protobuf:"bytes,2,req,name=service" json:"service"` TraceId string `protobuf:"bytes,3,req,name=trace_id,json=traceId" json:"trace_id"` Env string `protobuf:"bytes,4,req,name=env" json:"env"` Spans []*Span `protobuf:"bytes,5,rep,name=spans" json:"spans,omitempty"` ContainerId string `protobuf:"bytes,6,opt,name=container_id,json=containerId" json:"container_id"` Pid int64 `protobuf:"varint,7,opt,name=pid" json:"pid"` ProcessStartTime int64 `protobuf:"varint,8,opt,name=process_start_time,json=processStartTime" json:"process_start_time"` InstanceId string `protobuf:"bytes,9,opt,name=instance_id,json=instanceId" json:"instance_id"` AppId string `protobuf:"bytes,64,opt,name=app_id,json=appId" json:"app_id"` Hostname string `protobuf:"bytes,65,opt,name=hostname" json:"hostname"` ApiTimeSeconds int64 `protobuf:"varint,66,opt,name=api_time_seconds,json=apiTimeSeconds" json:"api_time_seconds"` }
func (*Trace) Descriptor ¶
func (*Trace) GetApiTimeSeconds ¶ added in v1.2.0
func (*Trace) GetContainerId ¶
func (*Trace) GetHostname ¶ added in v1.2.0
func (*Trace) GetInstanceId ¶
func (*Trace) GetProcessStartTime ¶
func (*Trace) GetService ¶
func (*Trace) GetServiceType ¶
func (*Trace) GetTraceId ¶
func (*Trace) ProtoMessage ¶
func (*Trace) ProtoMessage()
func (*Trace) XXX_DiscardUnknown ¶
func (m *Trace) XXX_DiscardUnknown()
func (*Trace) XXX_Marshal ¶
func (*Trace) XXX_Unmarshal ¶
type TraceCollect ¶ added in v1.2.0
type TraceCollect struct { Traces [][]byte `protobuf:"bytes,1,rep,name=traces" json:"traces,omitempty"` Hostname string `protobuf:"bytes,2,req,name=hostname" json:"hostname"` }
func (*TraceCollect) Descriptor ¶ added in v1.2.0
func (*TraceCollect) Descriptor() ([]byte, []int)
func (*TraceCollect) GetHostname ¶ added in v1.2.0
func (m *TraceCollect) GetHostname() string
func (*TraceCollect) GetTraces ¶ added in v1.2.0
func (m *TraceCollect) GetTraces() [][]byte
func (*TraceCollect) Marshal ¶ added in v1.2.0
func (m *TraceCollect) Marshal() (dAtA []byte, err error)
func (*TraceCollect) MarshalTo ¶ added in v1.2.0
func (m *TraceCollect) MarshalTo(dAtA []byte) (int, error)
func (*TraceCollect) ProtoMessage ¶ added in v1.2.0
func (*TraceCollect) ProtoMessage()
func (*TraceCollect) Reset ¶ added in v1.2.0
func (m *TraceCollect) Reset()
func (*TraceCollect) Size ¶ added in v1.2.0
func (m *TraceCollect) Size() (n int)
func (*TraceCollect) String ¶ added in v1.2.0
func (m *TraceCollect) String() string
func (*TraceCollect) Unmarshal ¶ added in v1.2.0
func (m *TraceCollect) Unmarshal(dAtA []byte) error
func (*TraceCollect) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *TraceCollect) XXX_DiscardUnknown()
func (*TraceCollect) XXX_Marshal ¶ added in v1.2.0
func (m *TraceCollect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TraceCollect) XXX_Merge ¶ added in v1.2.0
func (dst *TraceCollect) XXX_Merge(src proto.Message)
func (*TraceCollect) XXX_Size ¶ added in v1.2.0
func (m *TraceCollect) XXX_Size() int
func (*TraceCollect) XXX_Unmarshal ¶ added in v1.2.0
func (m *TraceCollect) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.