Documentation ¶
Index ¶
- Constants
- func ParseProtoSpanTag(protoSpan *protogen.Span) map[string]interface{}
- type ClientStatus
- type ClientStatusResp
- type Field
- type Log
- type ProtoSpan
- type SamplePoint
- type Span
- func (s *Span) BoolTag(key string) bool
- func (s *Span) GetTagString(key string) string
- func (s *Span) IsError() bool
- func (s *Span) IsServer() bool
- func (s *Span) Marshal() ([]byte, error)
- func (s *Span) ParentIDStr() string
- func (s *Span) SetOperationName(operationName string)
- func (s *Span) SetTag(key string, value interface{}) error
- func (s *Span) SpanIDStr() string
- func (s *Span) StringTag(key string) string
- func (s *Span) TraceIDStr() string
- type SpanPoint
- type SpanRef
- type Tag
Constants ¶
View Source
const ( RefTypeChildOf int8 = iota RefTypeFollowsFrom )
RefType Kind
View Source
const ( TagString int8 = iota TagInt TagBool TagFloat )
TagKind
Variables ¶
This section is empty.
Functions ¶
func ParseProtoSpanTag ¶
ParseProtoSpanTag tag
Types ¶
type ClientStatus ¶
type ClientStatus struct { Addr string `json:"addr"` UpTime int64 `json:"up_time"` ErrCount int64 `json:"err_count"` Rate int64 `json:"rate"` }
ClientStatus client status
type ClientStatusResp ¶
type ClientStatusResp struct { QueueLen int `json:"queue_len"` Clients []*ClientStatus `json:"clients"` }
ClientStatusResp response clientstatus request just for debug
type SamplePoint ¶
SamplePoint SamplePoint
type Span ¶
type Span struct { ServiceName string OperationName string TraceID uint64 SpanID uint64 ParentID uint64 Env string StartTime time.Time Duration time.Duration References []SpanRef Tags map[string]interface{} Logs []Log ProtoSpan *ProtoSpan }
Span represents a named unit of work performed by a service.
func FromProtoSpan ¶
FromProtoSpan convert protogen.Span to model.Span
func (*Span) ParentIDStr ¶
ParentIDStr return hex format parent_id
func (*Span) SetOperationName ¶
SetOperationName .
type SpanPoint ¶
type SpanPoint struct { Timestamp int64 ServiceName string OperationName string PeerService string SpanKind string AvgDuration SamplePoint // random sample point MaxDuration SamplePoint MinDuration SamplePoint Errors []SamplePoint }
SpanPoint contains time series
Click to show internal directories.
Click to hide internal directories.