stackdriver: Index | Files

package propagation

import ""

Package propagation implement X-Cloud-Trace-Context header propagation used by Google Cloud products.


Package Files


type HTTPFormat Uses

type HTTPFormat struct{}

HTTPFormat implements propagation.HTTPFormat to propagate traces in HTTP headers for Google Cloud Platform and Stackdriver Trace.

func (*HTTPFormat) SpanContextFromRequest Uses

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

SpanContextFromRequest extracts a Stackdriver Trace 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 a Stackdriver Trace header.

Package propagation imports 8 packages (graph) and is imported by 27 packages. Updated 2018-11-13. Refresh now. Tools for package owners.