Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultTraceID = trace.TraceID([16]byte{97, 98, 99, 100, 101, 102, 103, 104, 105, 103, 107, 108, 109, 110, 111, 113}) DefaultSpanID = trace.SpanID([8]byte{97, 98, 99, 100, 101, 102, 103, 104}) )
Consistent IDs for testing
Functions ¶
This section is empty.
Types ¶
type TestIDGenerator ¶
TestIDGenerator implements the trace.IDGenerator interface
func NewTestIDGenerator ¶
func NewTestIDGenerator() *TestIDGenerator
NewTestIDGenerator constructs a new trace ID generator for testing so we can assert on consistent trace ids
func (*TestIDGenerator) NewSpanID ¶
func (t *TestIDGenerator) NewSpanID() [8]byte
NewSpanID returns the span id
func (*TestIDGenerator) NewTraceID ¶
func (t *TestIDGenerator) NewTraceID() [16]byte
NewTraceID returns the trace id
Click to show internal directories.
Click to hide internal directories.