Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TraceB3 ¶
type TraceB3 struct {
// contains filtered or unexported fields
}
TraceB3 HTTP trace object of B3 or X-B3 kind.
func NewFromRequest ¶
NewFromRequest creates new TraceB3 object. If there is no trace data in request, then returns nil.
Warning: Does not return trace from request context.
func NewRandom ¶
func NewRandom() *TraceB3
NewRandom creates new TraceB3 object with random content.
func (*TraceB3) IsReceived ¶
IsReceived tells whether trace data was received (parsed from a request) or a random one.
func (*TraceB3) SetHeader ¶
SetHeader sets request headers according to the trace data. Input headers object must not be nil.
func (*TraceB3) Span ¶
Span spans the existing trace data and puts that into the request. Returns the updated request and a trace string for logging. Does not change the input trace data.
Click to show internal directories.
Click to hide internal directories.