mocktrace

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSpan

type MockSpan struct {
	*MockTrace
	OperationName string
	FinishErr     error
	Finished      bool
	Tags          []trace.Tag
	Logs          []trace.LogField
}

MockSpan .

func (*MockSpan) Finish

func (m *MockSpan) Finish(perr *error)

Finish .

func (*MockSpan) Follow

func (m *MockSpan) Follow(serviceName string, operationName string) trace.Trace

Follow .

func (*MockSpan) Fork

func (m *MockSpan) Fork(serviceName string, operationName string) trace.Trace

Fork .

func (*MockSpan) SetLog

func (m *MockSpan) SetLog(logs ...trace.LogField) trace.Trace

SetLog .

func (*MockSpan) SetTag

func (m *MockSpan) SetTag(tags ...trace.Tag) trace.Trace

SetTag .

func (*MockSpan) SetTitle

func (m *MockSpan) SetTitle(title string)

SetTitle .

func (*MockSpan) TraceID

func (m *MockSpan) TraceID() string

TraceID .

func (*MockSpan) Visit

func (m *MockSpan) Visit(fn func(k, v string))

Visit .

type MockTrace

type MockTrace struct {
	Spans []*MockSpan
}

MockTrace .

func (*MockTrace) Extract

func (m *MockTrace) Extract(format interface{}, carrier interface{}) (trace.Trace, error)

Extract .

func (*MockTrace) Inject

func (m *MockTrace) Inject(t trace.Trace, format interface{}, carrier interface{}) error

Inject .

func (*MockTrace) New

func (m *MockTrace) New(operationName string, opts ...trace.Option) trace.Trace

New .

Jump to

Keyboard shortcuts

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