Documentation ¶
Index ¶
- func CreateChildSpan(ctx context.Context, name string) opentracing.Span
- func Extract(tracer opentracing.Tracer, r *http.Request) (opentracing.SpanContext, error)
- func Init(service string) (opentracing.Tracer, io.Closer)
- func Inject(span opentracing.Span, request *http.Request) error
- func NewTracedRequest(method string, url string, span opentracing.Span) (*http.Request, error)
- func OpenTracingMiddleware(next http.Handler) http.Handler
- func TraceFunction(ctx context.Context, fn interface{}, params ...interface{}) (result []reflect.Value)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChildSpan ¶
CreateChildSpan creates a new opentracing span adding tags for the span name and caller details. Returns a Span. User must call `defer sp.Finish()`
func Init ¶
Init returns an instance of Jaeger Tracer that samples 100% of traces and logs all spans to stdout.
func NewTracedRequest ¶
NewTracedRequest generates a new traced HTTP request with opentracing headers injected into it
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.