Documentation ¶
Index ¶
- Constants
- Variables
- 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
- type Propagator
- type Span
- 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)
Constants ¶
View Source
const ( HttpFormat = iota GrpcFormat )
Variables ¶
View Source
var ErrInvalidCarrier = errors.New("invalid carrier")
Functions ¶
func StartClientSpan ¶
Types ¶
type Propagator ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.