logtracer

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 (s *LogSpan) BaggageItem(_ string) string

func (*LogSpan) Context

func (s *LogSpan) Context() opentracing.SpanContext

func (*LogSpan) Finish

func (s *LogSpan) Finish()

func (*LogSpan) FinishWithOptions

func (s *LogSpan) FinishWithOptions(_ opentracing.FinishOptions)

func (*LogSpan) Log

func (s *LogSpan) Log(_ opentracing.LogData)

func (*LogSpan) LogEvent

func (s *LogSpan) LogEvent(_ string)

func (*LogSpan) LogEventWithPayload

func (s *LogSpan) LogEventWithPayload(_ string, _ interface{})

func (*LogSpan) LogFields

func (s *LogSpan) LogFields(_ ...log.Field)

func (*LogSpan) LogKV

func (s *LogSpan) LogKV(_ ...interface{})

func (*LogSpan) SetBaggageItem

func (s *LogSpan) SetBaggageItem(_, _ string) opentracing.Span

func (*LogSpan) SetOperationName

func (s *LogSpan) SetOperationName(_ string) opentracing.Span

func (*LogSpan) SetTag

func (s *LogSpan) SetTag(_ string, _ interface{}) 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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL