package propagation
import "go.opencensus.io/exporter/stackdriver/propagation"
Package propagation implement X-Cloud-Trace-Context header propagation used by Google Cloud products.
Index ¶
Types ¶
type HTTPFormat ¶
type HTTPFormat struct{}
HTTPFormat implements propagation.HTTPFormat to propagate traces in HTTP headers for Google Cloud Platform and Stackdriver Trace.
func (*HTTPFormat) SpanContextFromRequest ¶
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 ¶
func (f *HTTPFormat) SpanContextToRequest(sc trace.SpanContext, req *http.Request)
SpanContextToRequest modifies the given request to include a Stackdriver Trace header.
Source Files ¶
http.go
- Version
- v0.19.0
- Published
- Jan 22, 2019
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 4 hours ago –
Tools for package owners.