trace_models

package
v1.3.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*ErrorInfo) GetErrorKind added in v1.2.0

func (m *ErrorInfo) GetErrorKind() ErrorType

func (*ErrorInfo) GetErrorMessage added in v1.2.0

func (m *ErrorInfo) GetErrorMessage() string

func (*ErrorInfo) GetErrorOccurTime added in v1.2.0

func (m *ErrorInfo) GetErrorOccurTime() int64

func (*ErrorInfo) GetErrorStack added in v1.2.0

func (m *ErrorInfo) GetErrorStack() []string

func (*ErrorInfo) GetErrorTags added in v1.2.0

func (m *ErrorInfo) GetErrorTags() map[string]string

func (*ErrorInfo) Marshal added in v1.2.0

func (m *ErrorInfo) Marshal() (dAtA []byte, err error)

func (*ErrorInfo) MarshalTo added in v1.2.0

func (m *ErrorInfo) MarshalTo(dAtA []byte) (int, error)

func (*ErrorInfo) ProtoMessage added in v1.2.0

func (*ErrorInfo) ProtoMessage()

func (*ErrorInfo) Reset added in v1.2.0

func (m *ErrorInfo) Reset()

func (*ErrorInfo) Size added in v1.2.0

func (m *ErrorInfo) Size() (n int)

func (*ErrorInfo) String added in v1.2.0

func (m *ErrorInfo) String() string

func (*ErrorInfo) Unmarshal added in v1.2.0

func (m *ErrorInfo) Unmarshal(dAtA []byte) error

func (*ErrorInfo) XXX_DiscardUnknown added in v1.2.0

func (m *ErrorInfo) XXX_DiscardUnknown()

func (*ErrorInfo) XXX_Marshal added in v1.2.0

func (m *ErrorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ErrorInfo) XXX_Merge added in v1.2.0

func (dst *ErrorInfo) XXX_Merge(src proto.Message)

func (*ErrorInfo) XXX_Size added in v1.2.0

func (m *ErrorInfo) XXX_Size() int

func (*ErrorInfo) XXX_Unmarshal added in v1.2.0

func (m *ErrorInfo) XXX_Unmarshal(b []byte) error

type ErrorTag added in v1.2.0

type ErrorTag int32
const (
	ErrorTag_ServerError ErrorTag = 1
	ErrorTag_Error       ErrorTag = 2
)

func (ErrorTag) Enum added in v1.2.0

func (x ErrorTag) Enum() *ErrorTag

func (ErrorTag) EnumDescriptor added in v1.2.0

func (ErrorTag) EnumDescriptor() ([]byte, []int)

func (ErrorTag) String added in v1.2.0

func (x ErrorTag) String() string

func (*ErrorTag) UnmarshalJSON added in v1.2.0

func (x *ErrorTag) UnmarshalJSON(data []byte) error

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) Enum added in v1.2.0

func (x ErrorType) Enum() *ErrorType

func (ErrorType) EnumDescriptor added in v1.2.0

func (ErrorType) EnumDescriptor() ([]byte, []int)

func (ErrorType) String added in v1.2.0

func (x ErrorType) String() string

func (*ErrorType) UnmarshalJSON added in v1.2.0

func (x *ErrorType) UnmarshalJSON(data []byte) error

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) Descriptor() ([]byte, []int)

func (*Span) GetCallResource

func (m *Span) GetCallResource() string

func (*Span) GetCallService

func (m *Span) GetCallService() string

func (*Span) GetCallServiceType

func (m *Span) GetCallServiceType() string

func (*Span) GetDurationMicroseconds

func (m *Span) GetDurationMicroseconds() int64

func (*Span) GetEndTimeMillisecond

func (m *Span) GetEndTimeMillisecond() int64

func (*Span) GetErrorInfoList added in v1.2.0

func (m *Span) GetErrorInfoList() []*ErrorInfo

func (*Span) GetOperationName

func (m *Span) GetOperationName() string

func (*Span) GetParamFloat

func (m *Span) GetParamFloat() map[string]float64

func (*Span) GetParamInt

func (m *Span) GetParamInt() map[string]int64

func (*Span) GetParamString

func (m *Span) GetParamString() map[string]string

func (*Span) GetParentSpanId

func (m *Span) GetParentSpanId() string

func (*Span) GetResource

func (m *Span) GetResource() string

func (*Span) GetSpanId

func (m *Span) GetSpanId() string

func (*Span) GetSpanType

func (m *Span) GetSpanType() SpanType

func (*Span) GetStartTimeMicrosecond

func (m *Span) GetStartTimeMicrosecond() int64

func (*Span) GetStartTimeMillisecond

func (m *Span) GetStartTimeMillisecond() int64

func (*Span) GetStatus

func (m *Span) GetStatus() int64

func (*Span) Marshal

func (m *Span) Marshal() (dAtA []byte, err error)

func (*Span) MarshalTo

func (m *Span) MarshalTo(dAtA []byte) (int, error)

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) Reset

func (m *Span) Reset()

func (*Span) Size

func (m *Span) Size() (n int)

func (*Span) String

func (m *Span) String() string

func (*Span) Unmarshal

func (m *Span) Unmarshal(dAtA []byte) error

func (*Span) XXX_DiscardUnknown

func (m *Span) XXX_DiscardUnknown()

func (*Span) XXX_Marshal

func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Span) XXX_Merge

func (dst *Span) XXX_Merge(src proto.Message)

func (*Span) XXX_Size

func (m *Span) XXX_Size() int

func (*Span) XXX_Unmarshal

func (m *Span) XXX_Unmarshal(b []byte) error

type SpanType

type SpanType int32
const (
	SpanType_Common SpanType = 0
	SpanType_Server SpanType = 1
	SpanType_Client SpanType = 2
)

func (SpanType) Enum

func (x SpanType) Enum() *SpanType

func (SpanType) EnumDescriptor

func (SpanType) EnumDescriptor() ([]byte, []int)

func (SpanType) String

func (x SpanType) String() string

func (*SpanType) UnmarshalJSON

func (x *SpanType) UnmarshalJSON(data []byte) error

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) Descriptor() ([]byte, []int)

func (*Trace) GetApiTimeSeconds added in v1.2.0

func (m *Trace) GetApiTimeSeconds() int64

func (*Trace) GetAppId added in v1.2.0

func (m *Trace) GetAppId() string

func (*Trace) GetContainerId

func (m *Trace) GetContainerId() string

func (*Trace) GetEnv

func (m *Trace) GetEnv() string

func (*Trace) GetHostname added in v1.2.0

func (m *Trace) GetHostname() string

func (*Trace) GetInstanceId

func (m *Trace) GetInstanceId() string

func (*Trace) GetPid

func (m *Trace) GetPid() int64

func (*Trace) GetProcessStartTime

func (m *Trace) GetProcessStartTime() int64

func (*Trace) GetService

func (m *Trace) GetService() string

func (*Trace) GetServiceType

func (m *Trace) GetServiceType() string

func (*Trace) GetSpans

func (m *Trace) GetSpans() []*Span

func (*Trace) GetTraceId

func (m *Trace) GetTraceId() string

func (*Trace) Marshal

func (m *Trace) Marshal() (dAtA []byte, err error)

func (*Trace) MarshalTo

func (m *Trace) MarshalTo(dAtA []byte) (int, error)

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) Reset

func (m *Trace) Reset()

func (*Trace) Size

func (m *Trace) Size() (n int)

func (*Trace) String

func (m *Trace) String() string

func (*Trace) Unmarshal

func (m *Trace) Unmarshal(dAtA []byte) error

func (*Trace) XXX_DiscardUnknown

func (m *Trace) XXX_DiscardUnknown()

func (*Trace) XXX_Marshal

func (m *Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Trace) XXX_Merge

func (dst *Trace) XXX_Merge(src proto.Message)

func (*Trace) XXX_Size

func (m *Trace) XXX_Size() int

func (*Trace) XXX_Unmarshal

func (m *Trace) XXX_Unmarshal(b []byte) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL