Versions in this module Expand all Collapse all v0 v0.5.1 Jul 4, 2017 v0.5.0 Jul 1, 2017 Changes in this version + func DurationAsMicroseconds(d time.Duration) uint64 + func EpochMicrosecondsAsTime(ts uint64) time.Time + func HashCode(o Hashable) (uint64, error) + func MicrosecondsAsDuration(v uint64) time.Duration + func TimeAsEpochMicroseconds(t time.Time) uint64 + type DependencyLink struct + CallCount uint64 + Child string + Parent string + type Flags uint32 + func (f *Flags) SetDebug() + func (f *Flags) SetSampled() + func (f Flags) IsDebug() bool + func (f Flags) IsSampled() bool + type Hashable interface + Hash func(w io.Writer) error + type KeyValue struct + Key string + VBlob []byte + VNum int64 + VStr string + VType ValueType + func Binary(key string, value []byte) KeyValue + func Bool(key string, value bool) KeyValue + func Float64(key string, value float64) KeyValue + func Int64(key string, value int64) KeyValue + func String(key string, value string) KeyValue + func (kv *KeyValue) AsString() string + func (kv *KeyValue) Binary() []byte + func (kv *KeyValue) Bool() bool + func (kv *KeyValue) Equal(other *KeyValue) bool + func (kv *KeyValue) Float64() float64 + func (kv *KeyValue) Int64() int64 + func (kv *KeyValue) IsLess(two *KeyValue) bool + func (kv *KeyValue) Value() interface{} + func (kv KeyValue) Hash(w io.Writer) error + type KeyValues []KeyValue + func (kvs KeyValues) Equal(other KeyValues) bool + func (kvs KeyValues) FindByKey(key string) (KeyValue, bool) + func (kvs KeyValues) Hash(w io.Writer) error + func (kvs KeyValues) Len() int + func (kvs KeyValues) Less(i, j int) bool + func (kvs KeyValues) Sort() + func (kvs KeyValues) Swap(i, j int) + type Log struct + Fields []KeyValue + Timestamp time.Time + type Process struct + ServiceName string + Tags KeyValues + func NewProcess(serviceName string, tags []KeyValue) *Process + func (p *Process) Equal(other *Process) bool + func (p *Process) Hash(w io.Writer) (err error) + type Span struct + Duration time.Duration + Flags Flags + Logs []Log + OperationName string + ParentSpanID SpanID + Process *Process + References []SpanRef + SpanID SpanID + StartTime time.Time + Tags KeyValues + TraceID TraceID + Warnings []string + func (s *Span) HasSpanKind(kind ext.SpanKindEnum) bool + func (s *Span) Hash(w io.Writer) (err error) + func (s *Span) IsRPCClient() bool + func (s *Span) IsRPCServer() bool + func (s *Span) NormalizeTimestamps() + type SpanID uint64 + func SpanIDFromString(s string) (SpanID, error) + func (s *SpanID) UnmarshalText(text []byte) error + func (s SpanID) MarshalText() ([]byte, error) + func (s SpanID) String() string + type SpanRef struct + RefType SpanRefType + SpanID SpanID + TraceID TraceID + type SpanRefType int + const ChildOf + const FollowsFrom + func SpanRefTypeFromString(s string) (SpanRefType, error) + func (p *SpanRefType) UnmarshalText(text []byte) error + func (p SpanRefType) MarshalText() ([]byte, error) + func (p SpanRefType) String() string + type Trace struct + Spans []*Span + Warnings []string + func (t *Trace) FindSpanByID(id SpanID) *Span + func (t *Trace) NormalizeTimestamps() + type TraceID struct + High uint64 + Low uint64 + func TraceIDFromString(s string) (TraceID, error) + func (t *TraceID) UnmarshalText(text []byte) error + func (t TraceID) MarshalText() ([]byte, error) + func (t TraceID) String() string + type ValueType int + const BinaryType + const BoolType + const Float64Type + const Int64Type + const StringType + func ValueTypeFromString(s string) (ValueType, error) + func (p *ValueType) UnmarshalText(text []byte) error + func (p ValueType) MarshalText() ([]byte, error) + func (p ValueType) String() string