Documentation ¶
Index ¶
Constants ¶
View Source
const ( DoNotRecordFlag Flag = "00" RecordFlag Flag = "01" CurrentVersion Version = "00" )
Variables ¶
View Source
var DefaultConfig = Config{ RecordFlag, CurrentVersion, }
Functions ¶
This section is empty.
Types ¶
type Traceparent ¶
func Generate ¶
func Generate() (*Traceparent, error)
func GenerateCustom ¶
func GenerateCustom(c Config) (*Traceparent, error)
func New ¶
func New(traceID, spanID string) *Traceparent
func NewCustom ¶
func NewCustom(traceID, spanID string, c Config) *Traceparent
func Parse ¶
func Parse(s string) (*Traceparent, error)
func (*Traceparent) Pretty ¶
func (t *Traceparent) Pretty() string
func (*Traceparent) SetHeader ¶
func (t *Traceparent) SetHeader(req *http.Request)
func (*Traceparent) String ¶
func (t *Traceparent) String() string
Click to show internal directories.
Click to hide internal directories.