Versions in this module Expand all Collapse all v1 v1.15.1 Nov 7, 2019 Changes in this version + const BearerTokenKey + const StoragePropagationKey + var ErrTraceNotFound = errors.New("trace not found") + func ContextWithBearerToken(ctx context.Context, token string) context.Context + func GetBearerToken(ctx context.Context) (string, bool) + type CompositeWriter struct + func NewCompositeWriter(spanWriters ...Writer) *CompositeWriter + func (c *CompositeWriter) WriteSpan(span *model.Span) error + type DownsamplingOptions struct + HashSalt string + MetricsFactory metrics.Factory + Ratio float64 + type DownsamplingWriter struct + func NewDownsamplingWriter(spanWriter Writer, downsamplingOptions DownsamplingOptions) *DownsamplingWriter + func (ds *DownsamplingWriter) WriteSpan(span *model.Span) error + type Reader interface + FindTraceIDs func(ctx context.Context, query *TraceQueryParameters) ([]model.TraceID, error) + FindTraces func(ctx context.Context, query *TraceQueryParameters) ([]*model.Trace, error) + GetOperations func(ctx context.Context, service string) ([]string, error) + GetServices func(ctx context.Context) ([]string, error) + GetTrace func(ctx context.Context, traceID model.TraceID) (*model.Trace, error) + type Sampler struct + func NewSampler(ratio float64, hashSalt string) *Sampler + func (s *Sampler) ShouldSample(span *model.Span) bool + type TraceQueryParameters struct + DurationMax time.Duration + DurationMin time.Duration + NumTraces int + OperationName string + ServiceName string + StartTimeMax time.Time + StartTimeMin time.Time + Tags map[string]string + type Writer interface + WriteSpan func(span *model.Span) error