Documentation
¶
Index ¶
- type JaegerTracer
- func (jt JaegerTracer) Close() error
- func (jt JaegerTracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
- func (jt JaegerTracer) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error
- func (jt JaegerTracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JaegerTracer ¶
type JaegerTracer struct {
// contains filtered or unexported fields
}
JaegerTracer wraps an opentracing tracer with a jaeger reporter.
func (JaegerTracer) Extract ¶
func (jt JaegerTracer) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
Extract wraps Extract.
func (JaegerTracer) Inject ¶
func (jt JaegerTracer) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error
StartSpan wraps Inject.
func (JaegerTracer) StartSpan ¶
func (jt JaegerTracer) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
StartSpan wraps StartSpan.
type Tracer ¶
type Tracer interface { 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 }
Tracer defines the open tracing interface.
func NewJaegerTracer ¶
NewJaegerTracer returns a traces with defaults.
Click to show internal directories.
Click to hide internal directories.