Documentation ¶
Index ¶
- Variables
- func ContextWithSpanFromContext(ctx, ctx2 context.Context) context.Context
- func FinishWithError(span trace.Span, err error)
- func NewTransport(rt http.RoundTripper) http.RoundTripper
- func StartSpan(ctx context.Context, operationName string, opts ...trace.SpanStartOption) (trace.Span, context.Context)
- type MultiSpan
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = &http.Client{ Transport: DefaultTransport, }
View Source
var DefaultTransport http.RoundTripper = NewTransport(http.DefaultTransport)
Functions ¶
func ContextWithSpanFromContext ¶
ContextWithSpanFromContext sets the tracing span of a context from other context if one is not already set. Alternative would be context.WithoutCancel() that would copy the context but reset ctx.Done
func FinishWithError ¶
FinishWithError finalizes the span and sets the error if one is passed
func NewTransport ¶ added in v0.7.0
func NewTransport(rt http.RoundTripper) http.RoundTripper
Types ¶
Click to show internal directories.
Click to hide internal directories.