Documentation
¶
Index ¶
- func DecorateHttpRequest(req *http.Request, span opentracing.Span) *http.Request
- func FromRequest(name string, req *http.Request) opentracing.Span
- func GlobalTracer() opentracing.Tracer
- func NewConstantTracer(logger log.Logger, serviceName string) (opentracing.Tracer, io.Closer, error)
- func NewProbabilisticTracer(logger log.Logger, serviceName string, rate float64) (opentracing.Tracer, io.Closer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecorateHttpRequest ¶
func FromRequest ¶
func FromRequest(name string, req *http.Request) opentracing.Span
func GlobalTracer ¶
func GlobalTracer() opentracing.Tracer
func NewConstantTracer ¶
func NewConstantTracer(logger log.Logger, serviceName string) (opentracing.Tracer, io.Closer, error)
NewConstantTracer returns an opentracer.Tracer from Jaeger that always records spans for recording.
This method uses the opentracing singleton and Proometheus DefaultRegisterer singleton.
func NewProbabilisticTracer ¶
func NewProbabilisticTracer(logger log.Logger, serviceName string, rate float64) (opentracing.Tracer, io.Closer, error)
NewProbabilisticTracer returns an opentracer.Tracer from Jaeger that records approximately the given percentage of spans for recording.
This method uses the opentracing singleton and Proometheus DefaultRegisterer singleton.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.