Documentation ¶
Index ¶
- type MemTracer
- func (t *MemTracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
- func (t *MemTracer) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error
- func (t *MemTracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemTracer ¶
type MemTracer struct {
Spans []string
}
MemTracer implements a simple tracer in memory for testing.
func (*MemTracer) Extract ¶
func (t *MemTracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
Extract implements opentracing.Tracer interface.
func (*MemTracer) Inject ¶
func (t *MemTracer) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error
Inject implements opentracing.Tracer interface.
func (*MemTracer) StartSpan ¶
func (t *MemTracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
StartSpan implements opentracing.Tracer interface.
Click to show internal directories.
Click to hide internal directories.