go.opencensus.io: go.opencensus.io/plugin/ochttp/propagation/tracecontext Index | Files

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

Package Files

propagation.go

type HTTPFormat Uses

type HTTPFormat struct{}

HTTPFormat implements the TraceContext trace propagation format.

func (*HTTPFormat) SpanContextFromRequest Uses

func (f *HTTPFormat) SpanContextFromRequest(req *http.Request) (sc trace.SpanContext, ok bool)

SpanContextFromRequest extracts a span context from incoming requests.

func (*HTTPFormat) SpanContextToRequest Uses

func (f *HTTPFormat) SpanContextToRequest(sc trace.SpanContext, req *http.Request)

SpanContextToRequest modifies the given request to include traceparent and tracestate headers.

Package tracecontext imports 9 packages (graph) and is imported by 7 packages. Updated 2018-09-28. Refresh now. Tools for package owners.