Versions in this module Expand all Collapse all v0 v0.1.2 Oct 10, 2019 Changes in this version + type NoopSpan struct + func (*NoopSpan) End() + func (*NoopSpan) Error(time.Time, ...string) + func (*NoopSpan) Log(time.Time, ...string) + func (*NoopSpan) SetComponent(int32) + func (*NoopSpan) SetOperationName(string) + func (*NoopSpan) SetPeer(string) + func (*NoopSpan) SetSpanLayer(common.SpanLayer) + func (*NoopSpan) Tag(Tag, string) + type ReportedSpan interface + ComponentID func() int32 + Context func() *SegmentContext + EndTime func() int64 + IsError func() bool + Logs func() []*v2.Log + OperationName func() string + Peer func() string + Refs func() []*propagation.SpanContext + SpanLayer func() common.SpanLayer + SpanType func() common.SpanType + StartTime func() int64 + Tags func() []*common.KeyStringValuePair + type Reporter interface + Close func() + Register func(service string, instance string) (int32, int32, error) + Send func(spans []ReportedSpan) + type SegmentContext struct + ParentSegmentID []int64 + ParentSpanID int32 + SegmentID []int64 + SpanID int32 + TraceID []int64 + type Span interface + End func() + Error func(time.Time, ...string) + Log func(time.Time, ...string) + SetComponent func(int32) + SetOperationName func(string) + SetPeer func(string) + SetSpanLayer func(common.SpanLayer) + Tag func(Tag, string) + type SpanOption func(s *defaultSpan) + func WithContext(sc *propagation.SpanContext) SpanOption + func WithSpanType(spanType SpanType) SpanOption + type SpanType int32 + const SpanTypeEntry + const SpanTypeExit + const SpanTypeLocal + type Tag string + const TagDBBindVariables + const TagDBInstance + const TagDBStatement + const TagDBType + const TagHTTPMethod + const TagMQBroker + const TagMQQueue + const TagMQTopic + const TagStatusCode + const TagURL + type Tracer struct + func NewTracer(service string, opts ...TracerOption) (tracer *Tracer, err error) + func (t *Tracer) CreateEntrySpan(ctx context.Context, operationName string, extractor propagation.Extractor) (s Span, nCtx context.Context, err error) + func (t *Tracer) CreateExitSpan(ctx context.Context, operationName string, peer string, ...) (Span, error) + func (t *Tracer) CreateLocalSpan(ctx context.Context, opts ...SpanOption) (s Span, c context.Context, err error) + func (t *Tracer) WaitUntilRegister() + type TracerOption func(t *Tracer) + func WithInstance(instance string) TracerOption + func WithReporter(reporter Reporter) TracerOption