Documentation ¶
Index ¶
- Constants
- func NewJaegerImpl() api.Driver
- func NewTracer(traceCfg map[string]interface{}) (api.Tracer, error)
- type HTTPHeadersCarrier
- type Span
- func (s *Span) FinishSpan()
- func (s *Span) InjectContext(requestHeaders api.HeaderMap, requestInfo api.RequestInfo)
- func (s *Span) ParentSpanId() string
- func (s *Span) SetOperation(operation string)
- func (s *Span) SetRequestInfo(reqinfo api.RequestInfo)
- func (s *Span) SetTag(key uint64, value string)
- func (s *Span) SpanId() string
- func (s *Span) SpawnChild(operationName string, startTime time.Time) api.Span
- func (s *Span) Tag(key uint64) string
- func (s *Span) TraceId() string
- type Tracer
Constants ¶
View Source
const ( DriverName = "jaeger" HeaderRouteMatchKey = "service" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPHeadersCarrier ¶
type HTTPHeadersCarrier http.RequestHeader
HTTPHeadersCarrier
func (HTTPHeadersCarrier) ForeachKey ¶
func (c HTTPHeadersCarrier) ForeachKey(handler func(key, val string) error) error
ForeachKey conforms to the HTTPHeadersCarrier interface.
type Span ¶
type Span struct {
// contains filtered or unexported fields
}
func (*Span) InjectContext ¶
func (s *Span) InjectContext(requestHeaders api.HeaderMap, requestInfo api.RequestInfo)
func (*Span) ParentSpanId ¶
func (*Span) SetOperation ¶
func (*Span) SetRequestInfo ¶
func (s *Span) SetRequestInfo(reqinfo api.RequestInfo)
SetRequestInfo record current request info to Span
func (*Span) SpawnChild ¶
Click to show internal directories.
Click to hide internal directories.