Versions in this module Expand all Collapse all v1 v1.0.0 Jun 11, 2021 Changes in this version + const GrpcFormat + const HttpFormat + var ErrInvalidCarrier = errors.New("invalid carrier") + func StartClientSpan(ctx context.Context, serviceName, operationName string) (context.Context, tracespec.Trace) + func StartServerSpan(ctx context.Context, carrier Carrier, serviceName, operationName string) (context.Context, tracespec.Trace) + type Carrier interface + Get func(key string) string + Set func(key, value string) + func Extract(format, carrier interface{}) (Carrier, error) + func Inject(format, carrier interface{}) (Carrier, error) + type Propagator interface + Extract func(carrier interface{}) (Carrier, error) + Inject func(carrier interface{}) (Carrier, error) + type Span struct + func (s *Span) Finish() + func (s *Span) Follow(ctx context.Context, serviceName, operationName string) (context.Context, tracespec.Trace) + func (s *Span) Fork(ctx context.Context, serviceName, operationName string) (context.Context, tracespec.Trace) + func (s *Span) SpanId() string + func (s *Span) TraceId() string + func (s *Span) Visit(fn func(key, val string) bool)