Documentation
¶
Index ¶
- type LogSpan
- func (s *LogSpan) BaggageItem(_ string) string
- func (s *LogSpan) Context() opentracing.SpanContext
- func (s *LogSpan) Finish()
- func (s *LogSpan) FinishWithOptions(_ opentracing.FinishOptions)
- func (s *LogSpan) Log(_ opentracing.LogData)
- func (s *LogSpan) LogEvent(_ string)
- func (s *LogSpan) LogEventWithPayload(_ string, _ interface{})
- func (s *LogSpan) LogFields(_ ...log.Field)
- func (s *LogSpan) LogKV(_ ...interface{})
- func (s *LogSpan) SetBaggageItem(_, _ string) opentracing.Span
- func (s *LogSpan) SetOperationName(_ string) opentracing.Span
- func (s *LogSpan) SetTag(_ string, _ interface{}) opentracing.Span
- func (s *LogSpan) Tracer() opentracing.Tracer
- type LogSpanContext
- type LogTracer
- type SpanContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogSpan ¶
type LogSpan struct {
// contains filtered or unexported fields
}
func (*LogSpan) BaggageItem ¶
func (*LogSpan) Context ¶
func (s *LogSpan) Context() opentracing.SpanContext
func (*LogSpan) FinishWithOptions ¶
func (s *LogSpan) FinishWithOptions(_ opentracing.FinishOptions)
func (*LogSpan) Log ¶
func (s *LogSpan) Log(_ opentracing.LogData)
func (*LogSpan) LogEventWithPayload ¶
func (*LogSpan) SetBaggageItem ¶
func (s *LogSpan) SetBaggageItem(_, _ string) opentracing.Span
func (*LogSpan) SetOperationName ¶
func (s *LogSpan) SetOperationName(_ string) opentracing.Span
func (*LogSpan) Tracer ¶
func (s *LogSpan) Tracer() opentracing.Tracer
type LogSpanContext ¶
type LogSpanContext struct {
// contains filtered or unexported fields
}
func (*LogSpanContext) ForeachBaggageItem ¶
func (n *LogSpanContext) ForeachBaggageItem(_ func(k, v string) bool)
func (*LogSpanContext) SpanID ¶
func (n *LogSpanContext) SpanID() jaeger.SpanID
func (*LogSpanContext) TraceID ¶
func (n *LogSpanContext) TraceID() jaeger.TraceID
type LogTracer ¶
type LogTracer struct {
// contains filtered or unexported fields
}
func NewLogTracer ¶
func NewLogTracer() *LogTracer
func (LogTracer) Extract ¶
func (t LogTracer) Extract(_, _ interface{}) (opentracing.SpanContext, error)
Extract belongs to the Tracer interface.
func (*LogTracer) Inject ¶
func (t *LogTracer) Inject(sp opentracing.SpanContext, _, carrier interface{}) error
Inject belongs to the Tracer interface.
func (*LogTracer) StartSpan ¶
func (t *LogTracer) StartSpan(_ string, opts ...opentracing.StartSpanOption) opentracing.Span
StartSpan belongs to the Tracer interface.
type SpanContext ¶
type SpanContext interface {
opentracing.SpanContext
TraceID() jaeger.TraceID
SpanID() jaeger.SpanID
}
Click to show internal directories.
Click to hide internal directories.