Documentation
¶
Index ¶
- func Close() error
- func FinishHTTPSpan(sp opentracing.Span, code int)
- func FinishSpan(sp opentracing.Span, hasError bool)
- func Setup(name, agentAddress, samplerType string, samplerParam float64) error
- func StartChildSpan(ctx context.Context, opName, cmp string, tags ...opentracing.Tag) (opentracing.Span, context.Context)
- func StartConsumerSpan(ctx context.Context, name string, cmp Component, hdr map[string]string) (opentracing.Span, context.Context)
- func StartHTTPSpan(path string, r *http.Request) (opentracing.Span, *http.Request)
- type Component
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FinishHTTPSpan ¶
func FinishHTTPSpan(sp opentracing.Span, code int)
FinishHTTPSpan finishes a HTTP span.
func FinishSpan ¶ added in v0.3.1
func FinishSpan(sp opentracing.Span, hasError bool)
FinishSpan finished a kafka consumer span.
func StartChildSpan ¶ added in v0.3.1
func StartChildSpan(ctx context.Context, opName, cmp string, tags ...opentracing.Tag) (opentracing.Span, context.Context)
StartChildSpan starts a new child span with specified tags.
Types ¶
Click to show internal directories.
Click to hide internal directories.