Versions in this module Expand all Collapse all v1 v1.3.19 Apr 8, 2022 Changes in this version type Tracer + func (t *Tracer) CallGoroutineWithContext(ctx context.Context) (s Span, nCtx context.Context, err error) + func (t *Tracer) StartGoroutineWithContext(ctx context.Context) (headCtx context.Context, err error) v1.3.18 Mar 15, 2022 Changes in this version + const EmptyServiceInstanceName + const EmptyServiceName + const EmptySpanID + const EmptyTraceSegmentID + func SpanID(ctx context.Context) int32 + func TraceSegmentID(ctx context.Context) string type SpanOption + func WithOperationName(operationName string) SpanOption type Tag + const TagDBSqlParameters type Tracer + func (t *Tracer) CreateExitSpanWithContext(ctx context.Context, operationName string, peer string, ...) (s Span, nCtx context.Context, err error) v1.3.17 Feb 22, 2022 Changes in this version + const EmptyTraceID + const Inexistence + const NoopTraceID + func TraceID(ctx context.Context) string + type NoopSpan struct + func (*NoopSpan) End() + func (*NoopSpan) Error(time.Time, ...string) + func (*NoopSpan) GetOperationName() string + func (*NoopSpan) IsEntry() bool + func (*NoopSpan) IsExit() bool + 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 + FirstSpan Span + ParentSegmentID []int64 + ParentSpanID int32 + SegmentID []int64 + SpanID int32 + TraceID []int64 + func (ctx SegmentContext) GetReadableGlobalTraceID() string + type Span interface + End func() + Error func(time.Time, ...string) + GetOperationName func() string + IsEntry func() bool + IsExit func() bool + 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