Documentation ¶
Index ¶
Constants ¶
View Source
const ( TracingZipkinCollector = "zipkin" TracingNamedPipeCollector = "namedPipe" )
constant for tracing zipkin and pipe collectors
Variables ¶
View Source
var TracerMap map[string]opentracing.Tracer
TracerMap tracer map key: caller name val: tracer
Functions ¶
func NewCollector ¶
NewCollector returns the collector object based on collector type
Types ¶
type FileCollector ¶
FileCollector collects span to file
func (*FileCollector) Collect ¶
func (f *FileCollector) Collect(s *zipkincore.Span) error
Collect serialize the zipkin spans and write into the file collector
type HeaderCarrier ¶
HeaderCarrier http header carrier
func (*HeaderCarrier) ForeachKey ¶
func (f *HeaderCarrier) ForeachKey(handler func(key, val string) error) error
ForeachKey to check the headers of zipkin
type RestClientHeaderWriter ¶
RestClientHeaderWriter rest client header writer
func (RestClientHeaderWriter) Set ¶
func (r RestClientHeaderWriter) Set(key, val string)
Set to set the header while call API
Click to show internal directories.
Click to hide internal directories.