Documentation ¶
Index ¶
- type FinishOptionFunc
- type OptionFunc
- type PlatformType
- func (_m *PlatformType) GetTraceID(ctx context.Context) string
- func (_m *PlatformType) GetTraceURL(ctx context.Context) string
- func (_m *PlatformType) StartRootSpan(ctx context.Context, operationName string, header map[string]string) tracer.Tracer
- func (_m *PlatformType) StartSpan(ctx context.Context, opName string) tracer.Tracer
- type Tracer
- func (_m *Tracer) Context() context.Context
- func (_m *Tracer) Finish(opts ...tracer.FinishOptionFunc)
- func (_m *Tracer) InjectRequestHeader(header map[string]string)
- func (_m *Tracer) Log(key string, value interface{})
- func (_m *Tracer) NewContext() context.Context
- func (_m *Tracer) SetError(err error)
- func (_m *Tracer) SetTag(key string, value interface{})
- func (_m *Tracer) Tags() map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FinishOptionFunc ¶ added in v1.10.6
FinishOptionFunc is an autogenerated mock type for the FinishOptionFunc type
func NewFinishOptionFunc ¶ added in v1.11.21
func NewFinishOptionFunc(t interface { mock.TestingT Cleanup(func()) }) *FinishOptionFunc
NewFinishOptionFunc creates a new instance of FinishOptionFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*FinishOptionFunc) Execute ¶ added in v1.10.6
func (_m *FinishOptionFunc) Execute(_a0 *tracer.FinishOption)
Execute provides a mock function with given fields: _a0
type OptionFunc ¶
OptionFunc is an autogenerated mock type for the OptionFunc type
func NewOptionFunc ¶ added in v1.11.21
func NewOptionFunc(t interface { mock.TestingT Cleanup(func()) }) *OptionFunc
NewOptionFunc creates a new instance of OptionFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OptionFunc) Execute ¶
func (_m *OptionFunc) Execute(_a0 *tracer.Option)
Execute provides a mock function with given fields: _a0
type PlatformType ¶ added in v1.9.3
PlatformType is an autogenerated mock type for the PlatformType type
func NewPlatformType ¶ added in v1.11.21
func NewPlatformType(t interface { mock.TestingT Cleanup(func()) }) *PlatformType
NewPlatformType creates a new instance of PlatformType. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PlatformType) GetTraceID ¶ added in v1.10.6
func (_m *PlatformType) GetTraceID(ctx context.Context) string
GetTraceID provides a mock function with given fields: ctx
func (*PlatformType) GetTraceURL ¶ added in v1.10.6
func (_m *PlatformType) GetTraceURL(ctx context.Context) string
GetTraceURL provides a mock function with given fields: ctx
func (*PlatformType) StartRootSpan ¶ added in v1.9.3
func (_m *PlatformType) StartRootSpan(ctx context.Context, operationName string, header map[string]string) tracer.Tracer
StartRootSpan provides a mock function with given fields: ctx, operationName, header
type Tracer ¶ added in v1.10.6
Tracer is an autogenerated mock type for the Tracer type
func NewTracer ¶ added in v1.11.19
NewTracer creates a new instance of Tracer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Tracer) Finish ¶ added in v1.10.6
func (_m *Tracer) Finish(opts ...tracer.FinishOptionFunc)
Finish provides a mock function with given fields: opts
func (*Tracer) InjectRequestHeader ¶ added in v1.10.6
InjectRequestHeader provides a mock function with given fields: header
func (*Tracer) NewContext ¶ added in v1.11.19
NewContext provides a mock function with given fields: