package google
import "go.opencensus.io/plugin/ochttp/propagation/google"
Package google is deprecated: Use go.opencensus.io/exporter/stackdriver/propagation.
Index ¶
Types ¶
type HTTPFormat ¶
type HTTPFormat struct{}
Deprecated: Use go.opencensus.io/exporter/stackdriver/propagation.HTTPFormat
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 ¶
google.go
- Version
- v0.5.0
- Published
- Mar 18, 2018
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 4 hours ago –
Tools for package owners.