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 FasthttpHeaderCarrier ¶
type FasthttpHeaderCarrier struct {
*fasthttp.RequestHeader
}
FasthttpHeaderCarrier fast http heaer carrier
func (*FasthttpHeaderCarrier) ForeachKey ¶
func (f *FasthttpHeaderCarrier) ForeachKey(handler func(key, val string) error) error
ForeachKey to check the headers of zipkin
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 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.