Documentation
¶
Index ¶
- func Error(span opentracing.Span)
- func InjectToReq(ctx context.Context, req *http.Request) error
- func Middleware(next http.Handler) http.Handler
- func NewTracer(ctx context.Context, name string, host string) (opentracing.Tracer, error)
- func Request(ctx context.Context, params RequestOpts) ([]byte, int, error)
- func SetAuthorization(ctx context.Context, req *http.Request) error
- type RequestOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Error ¶ added in v0.0.5
func Error(span opentracing.Span)
Error - finish a span and set error status
func InjectToReq ¶
InjectToReq - inject opentracing span to *http.Requst
func Middleware ¶ added in v0.0.4
Middleware - create a new openTracing span and put it into request context
Types ¶
Click to show internal directories.
Click to hide internal directories.