trace

package
v0.10.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecorateHttpRequest

func DecorateHttpRequest(req *http.Request, span opentracing.Span) *http.Request

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL