trace_models

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTrace = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTrace   = fmt.Errorf("proto: integer overflow")
)
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 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"`
}

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) 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"`
}

func (*Trace) Descriptor

func (*Trace) Descriptor() ([]byte, []int)

func (*Trace) GetContainerId

func (m *Trace) GetContainerId() string

func (*Trace) GetEnv

func (m *Trace) GetEnv() 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

Jump to

Keyboard shortcuts

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