Documentation ¶
Index ¶
- Constants
- Variables
- func HashBucketData(bucket uint8, lst ...string) uint64
- func HashData(lst ...string) uint64
- func HashTagIndex(service, key, value string, bucket uint8) uint64
- func ToDomain(dbSpan *Span) (*model.Span, error)
- type IndexResult
- type Span
- type SpanData
- func (*SpanData) Descriptor() ([]byte, []int)
- func (m *SpanData) GetLogs() []model.Log
- func (m *SpanData) GetProcess() *model.Process
- func (m *SpanData) GetReferences() []model.SpanRef
- func (m *SpanData) GetTags() []model.KeyValue
- func (m *SpanData) Marshal() (dAtA []byte, err error)
- func (m *SpanData) MarshalTo(dAtA []byte) (int, error)
- func (*SpanData) ProtoMessage()
- func (m *SpanData) Reset()
- func (m *SpanData) Size() (n int)
- func (m *SpanData) String() string
- func (m *SpanData) Unmarshal(dAtA []byte) error
- func (m *SpanData) XXX_DiscardUnknown()
- func (m *SpanData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpanData) XXX_Merge(src proto.Message)
- func (m *SpanData) XXX_Size() int
- func (m *SpanData) XXX_Unmarshal(b []byte) error
- type TraceID
- type TraceIDList
- type UniqueTraceIDs
Constants ¶
View Source
const (
NumIndexBuckets = 10
)
Variables ¶
View Source
var ( ErrInvalidLengthSpandata = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSpandata = fmt.Errorf("proto: integer overflow") )
Functions ¶
func HashBucketData ¶
func HashTagIndex ¶
Types ¶
type IndexResult ¶
type IndexResult struct { Ids TraceIDList RevTs int64 }
type Span ¶
type Span struct { TraceIDLow uint64 TraceIDHigh uint64 SpanID uint64 OperationName string Flags uint32 StartTime int64 Duration int64 Extra []byte }
Span represents db-serializable model
func FromDomain ¶
FromDomain converts plugin model to db model or returns error
func (*Span) StructValue ¶
type SpanData ¶
type SpanData struct { Process *model.Process `protobuf:"bytes,1,opt,name=Process,proto3" json:"Process,omitempty"` Tags []model.KeyValue `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags"` Logs []model.Log `protobuf:"bytes,3,rep,name=logs,proto3" json:"logs"` References []model.SpanRef `protobuf:"bytes,4,rep,name=references,proto3" json:"references"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SpanData) Descriptor ¶
func (*SpanData) GetProcess ¶
func (*SpanData) GetReferences ¶
func (*SpanData) ProtoMessage ¶
func (*SpanData) ProtoMessage()
func (*SpanData) XXX_DiscardUnknown ¶
func (m *SpanData) XXX_DiscardUnknown()
func (*SpanData) XXX_Marshal ¶
func (*SpanData) XXX_Unmarshal ¶
type TraceID ¶
type TraceID [16]byte
TraceID represents db-serializable trace id
func TraceIDFromDomain ¶
type TraceIDList ¶
type TraceIDList []TraceID
func TraceIDListFromBytes ¶
func TraceIDListFromBytes(buf []byte) (TraceIDList, error)
func (*TraceIDList) Scan ¶
func (t *TraceIDList) Scan(src interface{}) error
type UniqueTraceIDs ¶
type UniqueTraceIDs struct {
// contains filtered or unexported fields
}
func IntersectTraceIDs ¶
func IntersectTraceIDs(uniqueTraceIdsList []*UniqueTraceIDs) *UniqueTraceIDs
IntersectTraceIDs takes a list of UniqueTraceIDs and intersects them.
func NewUniqueTraceIDs ¶
func NewUniqueTraceIDs() *UniqueTraceIDs
func (*UniqueTraceIDs) Add ¶
func (m *UniqueTraceIDs) Add(id TraceID)
func (*UniqueTraceIDs) AsList ¶
func (m *UniqueTraceIDs) AsList() []TraceID
func (*UniqueTraceIDs) Has ¶
func (m *UniqueTraceIDs) Has(id TraceID) bool
func (*UniqueTraceIDs) JoinWith ¶
func (m *UniqueTraceIDs) JoinWith(b *UniqueTraceIDs)
func (*UniqueTraceIDs) Len ¶
func (m *UniqueTraceIDs) Len() int
Click to show internal directories.
Click to hide internal directories.