Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct { Timestamp int64 `thrift:"timestamp,1" json:"timestamp"` Value string `thrift:"value,2" json:"value"` Host *Endpoint `thrift:"host,3" json:"endpoint,omitempty"` }
func (Annotation) String ¶ added in v0.2.2
func (a Annotation) String() string
type AnnotationType ¶
type AnnotationType int64
type BinaryAnnotation ¶
type BinaryAnnotation struct { Key string `thrift:"key,1" json:"key"` Value interface{} `thrift:"value,2" json:"value"` AnnotationType AnnotationType `thrift:"annotation_type,3" json:"annotationType"` Host *Endpoint `thrift:"host,4" json:"endpoint,omitempty"` }
func (BinaryAnnotation) String ¶
func (ba BinaryAnnotation) String() string
type Span ¶
type Span struct { TraceID string Name string ID string ParentID string Annotations []*Annotation BinaryAnnotations []BinaryAnnotation Debug bool Timestamp time.Time Duration time.Duration TraceIDHigh *int64 }
Span represents the Zipkin V1 Span object. See https://github.com/openzipkin/zipkin-api/blob/master/zipkin-api.yaml
func DecodeThrift ¶
DecodeThrift reads a list of encoded thrift spans from an io.Reader, and converts that list to a slice of Spans. The implementation is based on jaeger internals, but not exported there.
func (*Span) AddTag ¶ added in v0.1.3
AddTag adds a binary annotation with a key/value pair to the span
func (Span) MarshalJSON ¶
func (*Span) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.