Documentation
¶
Index ¶
- type Trace
- type TraceImpl
- func (t *TraceImpl) Close() error
- func (t *TraceImpl) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
- func (t *TraceImpl) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error
- func (t *TraceImpl) SetGlobalTracer()
- func (t *TraceImpl) 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 Trace ¶
type Trace interface { SetGlobalTracer() StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error) Close() error }
Trace interface def.
type TraceImpl ¶
type TraceImpl struct {
// contains filtered or unexported fields
}
TraceImpl implement the Trace
func MakeTrace ¶
func MakeTrace(cfg config.Configuration) (*TraceImpl, error)
MakeTrace return the point of TraceImpl
func (*TraceImpl) Extract ¶
func (t *TraceImpl) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
Extract return the tracer's impl
func (*TraceImpl) Inject ¶
func (t *TraceImpl) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error
Inject return the tracer's impl
func (*TraceImpl) SetGlobalTracer ¶
func (t *TraceImpl) SetGlobalTracer()
SetGlobalTracer set the global tracer
Click to show internal directories.
Click to hide internal directories.