package propagation
Import Path
go.opencensus.io/trace/propagation (on go.dev)
Dependency Relation
imports 2 packages, and imported by 4 packages
Involved Source Files
Package propagation implements the binary trace context format.
Package-Level Type Names (only one, which is exported)
HTTPFormat implementations propagate span contexts
in HTTP requests.
SpanContextFromRequest extracts a span context from incoming
requests.
SpanContextToRequest modifies the given request to include the given
span context.
( T) SpanContextFromRequest(req *http.Request) (sc trace.SpanContext, ok bool)
( T) SpanContextToRequest(sc trace.SpanContext, req *http.Request)
*go.opencensus.io/plugin/ochttp/propagation/b3.HTTPFormat
*google.golang.org/api/transport/http/internal/propagation.HTTPFormat
var go.opencensus.io/plugin/ochttp.defaultFormat
Package-Level Functions (total 2, both are exported)
Binary returns the binary format representation of a SpanContext.
If sc is the zero value, Binary returns nil.
FromBinary returns the SpanContext represented by b.
If b has an unsupported version ID or contains no TraceID, FromBinary
returns with ok==false.
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |