Documentation ¶
Overview ¶
Package tracer is a generated GoMock package.
Index ¶
- Variables
- type Attributes
- type Config
- type MockTracer
- func (m *MockTracer) EXPECT() *MockTracerMockRecorder
- func (m *MockTracer) Extract(ctx context.Context, carrier TextMapCarrier) context.Context
- func (m *MockTracer) Inject(ctx context.Context, carrier TextMapCarrier) error
- func (m *MockTracer) ServiceName() string
- func (m *MockTracer) Span(ctx context.Context, options ...Attributes) (context.Context, TSpan)
- func (m *MockTracer) SpanName(ctx context.Context, name string, options ...Attributes) (context.Context, TSpan)
- func (m *MockTracer) Stop(ctx context.Context) error
- type MockTracerMockRecorder
- func (mr *MockTracerMockRecorder) Extract(ctx, carrier interface{}) *gomock.Call
- func (mr *MockTracerMockRecorder) Inject(ctx, carrier interface{}) *gomock.Call
- func (mr *MockTracerMockRecorder) ServiceName() *gomock.Call
- func (mr *MockTracerMockRecorder) Span(ctx interface{}, options ...interface{}) *gomock.Call
- func (mr *MockTracerMockRecorder) SpanName(ctx, name interface{}, options ...interface{}) *gomock.Call
- func (mr *MockTracerMockRecorder) Stop(ctx interface{}) *gomock.Call
- type TSpan
- type TextMapCarrier
- type Tracer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type MockTracer ¶
type MockTracer struct {
// contains filtered or unexported fields
}
MockTracer is a mock of Tracer interface.
func NewMockTracer ¶
func NewMockTracer(ctrl *gomock.Controller) *MockTracer
NewMockTracer creates a new mock instance.
func (*MockTracer) EXPECT ¶
func (m *MockTracer) EXPECT() *MockTracerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTracer) Extract ¶
func (m *MockTracer) Extract(ctx context.Context, carrier TextMapCarrier) context.Context
Extract mocks base method.
func (*MockTracer) Inject ¶
func (m *MockTracer) Inject(ctx context.Context, carrier TextMapCarrier) error
Inject mocks base method.
func (*MockTracer) ServiceName ¶
func (m *MockTracer) ServiceName() string
ServiceName mocks base method.
func (*MockTracer) Span ¶
func (m *MockTracer) Span(ctx context.Context, options ...Attributes) (context.Context, TSpan)
Span mocks base method.
func (*MockTracer) SpanName ¶
func (m *MockTracer) SpanName(ctx context.Context, name string, options ...Attributes) (context.Context, TSpan)
SpanName mocks base method.
type MockTracerMockRecorder ¶
type MockTracerMockRecorder struct {
// contains filtered or unexported fields
}
MockTracerMockRecorder is the mock recorder for MockTracer.
func (*MockTracerMockRecorder) Extract ¶
func (mr *MockTracerMockRecorder) Extract(ctx, carrier interface{}) *gomock.Call
Extract indicates an expected call of Extract.
func (*MockTracerMockRecorder) Inject ¶
func (mr *MockTracerMockRecorder) Inject(ctx, carrier interface{}) *gomock.Call
Inject indicates an expected call of Inject.
func (*MockTracerMockRecorder) ServiceName ¶
func (mr *MockTracerMockRecorder) ServiceName() *gomock.Call
ServiceName indicates an expected call of ServiceName.
func (*MockTracerMockRecorder) Span ¶
func (mr *MockTracerMockRecorder) Span(ctx interface{}, options ...interface{}) *gomock.Call
Span indicates an expected call of Span.
func (*MockTracerMockRecorder) SpanName ¶
func (mr *MockTracerMockRecorder) SpanName(ctx, name interface{}, options ...interface{}) *gomock.Call
SpanName indicates an expected call of SpanName.
func (*MockTracerMockRecorder) Stop ¶
func (mr *MockTracerMockRecorder) Stop(ctx interface{}) *gomock.Call
Stop indicates an expected call of Stop.
type TextMapCarrier ¶
type TextMapCarrier = propagation.TextMapCarrier
type Tracer ¶
type Tracer interface { ServiceName() string Span(ctx context.Context, options ...Attributes) (context.Context, TSpan) SpanName(ctx context.Context, name string, options ...Attributes) (context.Context, TSpan) Extract(ctx context.Context, carrier TextMapCarrier) context.Context Inject(ctx context.Context, carrier TextMapCarrier) error Stop(ctx context.Context) error }