Documentation
¶
Overview ¶
Package zipkin provides a Zipkin tracing interface and client.
NOTE: This is a WIP. Please see the README.
Index ¶
- func ClientRecvAnnotation(t time.Time) *zipkin.Annotation
- func ClientSendAnnotation(t time.Time) *zipkin.Annotation
- func Handler(next http.Handler, options *Options) http.Handler
- func NewStringAnnotation(key string, value string) *zipkin.BinaryAnnotation
- func NewTimestampAnnotation(value string, t time.Time) *zipkin.Annotation
- func ServerRecvAnnotation(t time.Time) *zipkin.Annotation
- func ServerSendAnnotation(t time.Time) *zipkin.Annotation
- type DebugCollector
- type ID
- type Options
- type ScribeCollector
- type SpanCollector
- type Trace
- func CurrentTrace(r *http.Request) *Trace
- func CurrentTraceForURL(u *url.URL) *Trace
- func NewTrace(traceName string, collectors []SpanCollector) *Trace
- func NewTraceForHTTPHeader(traceName string, h http.Header, collectors []SpanCollector) *Trace
- func NewTraceForIDs(traceName string, traceID, spanID int64, parentSpanID *int64, ...) *Trace
- func (t *Trace) Child(name string) *Trace
- func (t *Trace) HTTPHeader() http.Header
- func (t *Trace) ParentSpanID() *ID
- func (t *Trace) Record(annotation *zipkin.Annotation)
- func (t *Trace) RecordBinary(annotation *zipkin.BinaryAnnotation)
- func (t *Trace) SetServiceName(serviceName string)
- func (t *Trace) SpanID() ID
- func (t *Trace) Submit()
- func (t *Trace) TraceID() ID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientRecvAnnotation ¶
func ClientRecvAnnotation(t time.Time) *zipkin.Annotation
func ClientSendAnnotation ¶
func ClientSendAnnotation(t time.Time) *zipkin.Annotation
func NewStringAnnotation ¶
func NewStringAnnotation(key string, value string) *zipkin.BinaryAnnotation
func NewTimestampAnnotation ¶
func NewTimestampAnnotation(value string, t time.Time) *zipkin.Annotation
func ServerRecvAnnotation ¶
func ServerRecvAnnotation(t time.Time) *zipkin.Annotation
func ServerSendAnnotation ¶
func ServerSendAnnotation(t time.Time) *zipkin.Annotation
Types ¶
type DebugCollector ¶
type DebugCollector struct{}
func (*DebugCollector) Collect ¶
func (*DebugCollector) Collect(span *zipkin.Span)
type Options ¶
type ScribeCollector ¶
type ScribeCollector struct {
// contains filtered or unexported fields
}
func NewScribeCollector ¶
func NewScribeCollector(addr string) *ScribeCollector
func (*ScribeCollector) Collect ¶
func (c *ScribeCollector) Collect(span *zipkin.Span)
func (*ScribeCollector) HandleConnection ¶
func (c *ScribeCollector) HandleConnection()
func (*ScribeCollector) SetCategory ¶
func (c *ScribeCollector) SetCategory(category string)
type SpanCollector ¶
type Trace ¶
type Trace struct {
Endpoint *zipkin.Endpoint
Collectors []SpanCollector
// contains filtered or unexported fields
}
func CurrentTrace ¶
func CurrentTraceForURL ¶
func NewTrace ¶
func NewTrace(traceName string, collectors []SpanCollector) *Trace
func NewTraceForHTTPHeader ¶
func NewTraceForHTTPHeader(traceName string, h http.Header, collectors []SpanCollector) *Trace
func NewTraceForIDs ¶
func NewTraceForIDs(traceName string, traceID, spanID int64, parentSpanID *int64, collectors []SpanCollector) *Trace
func (*Trace) HTTPHeader ¶
func (*Trace) ParentSpanID ¶
func (*Trace) Record ¶
func (t *Trace) Record(annotation *zipkin.Annotation)
func (*Trace) RecordBinary ¶
func (t *Trace) RecordBinary(annotation *zipkin.BinaryAnnotation)
func (*Trace) SetServiceName ¶
Click to show internal directories.
Click to hide internal directories.