Documentation ¶
Overview ¶
Package tracecontext contains HTTP propagator for TraceContext standard. See https://github.com/w3c/distributed-tracing for more information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPFormat ¶
type HTTPFormat struct{}
HTTPFormat implements the TraceContext trace propagation format.
func (*HTTPFormat) FromRequest ¶
func (f *HTTPFormat) FromRequest(req *http.Request) (sc trace.SpanContext, ok bool)
FromRequest extracts a span context from incoming requests.
func (*HTTPFormat) ToRequest ¶
func (f *HTTPFormat) ToRequest(sc trace.SpanContext, req *http.Request)
ToRequest modifies the given request to include a header.
Click to show internal directories.
Click to hide internal directories.