Documentation ¶
Index ¶
- Variables
- func GetHTTPClient(srv IsTracedGetter) *http.Client
- func GetSpanFromRequest(r *http.Request, name string) opentracing.Span
- func InjectSpanToRequest(span opentracing.Span, r *http.Request)
- func Middleware(srv interface{}, name string, options ...nethttp.MWOption) http.HandlerFunc
- func NewRequester(srv IsTracedGetter) func(...nethttp.ClientOption) ...
- func NewTracer(name string, args ...interface{}) (opentracing.Tracer, io.Closer, error)
- type ComponentNameGetter
- type IsTracedGetter
- type JaegerTracerFactory
- type TracerFactory
- type TracerOption
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidTracerDriver = errors.New("invalid tracer driver")
)
Functions ¶
func GetHTTPClient ¶ added in v1.1.28
func GetHTTPClient(srv IsTracedGetter) *http.Client
func GetSpanFromRequest ¶ added in v1.1.28
func InjectSpanToRequest ¶ added in v1.1.28
func Middleware ¶ added in v1.1.28
func Middleware(srv interface{}, name string, options ...nethttp.MWOption) http.HandlerFunc
func NewRequester ¶ added in v1.1.28
Types ¶
type ComponentNameGetter ¶ added in v1.1.28
type ComponentNameGetter interface {
ComponentName() string
}
type IsTracedGetter ¶ added in v1.1.28
type JaegerTracerFactory ¶
type JaegerTracerFactory struct{}
type TracerFactory ¶
type TracerOption ¶
Click to show internal directories.
Click to hide internal directories.