package tracecontext
import "go.opencensus.io/plugin/ochttp/propagation/tracecontext"
Package tracecontext contains HTTP propagator for TraceContext standard. See https://github.com/w3c/distributed-tracing for more information.
Index ¶
Types ¶
type HTTPFormat ¶
type HTTPFormat struct{}
HTTPFormat implements the TraceContext trace propagation format.
func (*HTTPFormat) SpanContextFromRequest ¶
func (f *HTTPFormat) SpanContextFromRequest(req *http.Request) (sc trace.SpanContext, ok bool)
SpanContextFromRequest extracts a span context from incoming requests.
func (*HTTPFormat) SpanContextToRequest ¶
func (f *HTTPFormat) SpanContextToRequest(sc trace.SpanContext, req *http.Request)
SpanContextToRequest modifies the given request to include a header.
Source Files ¶
propagation.go
- Version
- v0.5.0
- Published
- Mar 18, 2018
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 4 hours ago –
Tools for package owners.