go.opencensus.iogo.opencensus.io/trace/propagation Index | Files

package propagation

import "go.opencensus.io/trace/propagation"

Package propagation implements the binary trace context format.

TODO: link to external spec document.

Index

Functions

func Binary

func Binary(sc trace.SpanContext) []byte

Binary returns the binary format representation of a SpanContext.

If sc is the zero value, Binary returns nil.

func FromBinary

func FromBinary(b []byte) (sc trace.SpanContext, ok bool)

FromBinary returns the SpanContext represented by b.

If b has an unsupported version ID or contains no TraceID, FromBinary returns with ok==false.

Source Files

propagation.go

Version
v0.1.0
Published
Dec 15, 2017
Platform
js/wasm
Imports
1 packages
Last checked
3 hours ago

Tools for package owners.