Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOrderedIDGenerator ¶ added in v1.7.13
func NewRandomIDGenerator ¶ added in v1.7.13
Types ¶
type ID ¶ added in v1.7.13
type ID [16]byte
func NewRandomID ¶
func NewRandomID() ID
func (ID) IsValid ¶ added in v1.7.13
IsValid checks whether the trace TraceID is valid. A valid trace ID does not consist of zeros only.
func (ID) MarshalJSON ¶ added in v1.7.13
MarshalJSON implements a custom marshal function to encode TraceID as a hex string.
func (ID) UnmarshalJSON ¶ added in v1.7.13
Click to show internal directories.
Click to hide internal directories.