test

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContextWithMockSpan

func NewContextWithMockSpan(ctx context.Context, traceID, spanID uint64) context.Context

Types

type MockLogger

type MockLogger struct {
	*zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewMockLogger

func NewMockLogger() *MockLogger

func (*MockLogger) String

func (m *MockLogger) String() string

type MockSpan

type MockSpan struct {
	// contains filtered or unexported fields
}

func NewMockSpan

func NewMockSpan(traceID, spanID uint64) *MockSpan

func (*MockSpan) BaggageItem

func (s *MockSpan) BaggageItem(_ string) string

func (*MockSpan) Context

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

func (*MockSpan) Finish

func (s *MockSpan) Finish()

func (*MockSpan) FinishWithOptions

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

func (*MockSpan) Log

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

func (*MockSpan) LogEvent

func (s *MockSpan) LogEvent(_ string)

func (*MockSpan) LogEventWithPayload

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

func (*MockSpan) LogFields

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

func (*MockSpan) LogKV

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

func (*MockSpan) SetBaggageItem

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

func (*MockSpan) SetOperationName

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

func (*MockSpan) SetTag

func (s *MockSpan) SetTag(_ string, _ interface{}) opentracing.Span

func (*MockSpan) Tracer

func (s *MockSpan) Tracer() opentracing.Tracer

type MockSpanContext

type MockSpanContext struct {
	// contains filtered or unexported fields
}

func (*MockSpanContext) ForeachBaggageItem

func (n *MockSpanContext) ForeachBaggageItem(_ func(k, v string) bool)

func (*MockSpanContext) SpanID

func (n *MockSpanContext) SpanID() jaeger.SpanID

func (*MockSpanContext) TraceID

func (n *MockSpanContext) TraceID() jaeger.TraceID

Jump to

Keyboard shortcuts

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