package google
import "go.opencensus.io/plugin/http/propagation/google"
Package google contains a propagation.HTTPFormat implementation for Google Cloud Trace and Stackdriver.
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) FromRequest ¶
func (f *HTTPFormat) FromRequest(req *http.Request) (sc trace.SpanContext, ok bool)
FromRequest extracts a Stackdriver Trace 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 Stackdriver Trace header.
Source Files ¶
google.go
- Version
- v0.2.0
- Published
- Jan 30, 2018
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 4 hours ago –
Tools for package owners.