Documentation ¶
Index ¶
- Constants
- func GenerateNewTraceparent(sampled bool) (string, error)
- func GenerateParentId() (string, error)
- func GenerateParentIdRaw() ([]byte, error)
- func GenerateRandomBytes(n int) ([]byte, error)
- func GenerateTraceId() (string, error)
- func GenerateTraceIdRaw() ([]byte, error)
- func ParseTraceparent(traceparent string) (string, string, string, string, error)
- func ParseTraceparentRaw(traceparent string) ([]byte, []byte, []byte, []byte, error)
- func ValidateParentIdValue(parentId []byte) error
- func ValidateTraceIdValue(traceId []byte) error
Constants ¶
View Source
const ( INVALID_VALUE_COUNT = "invalid number of values" VERSION_INVALID_LENGTH = "invalid version length" TRACEID_INVALID_LENGTH = "invalid traceid length" PARENTID_INVALID_LENGTH = "invalid parentid length" FLAG_INVALID_LENGTH = "invalid flag length" TRACEID_IS_ZERO = "error traceid value is zero" PARENTID_IS_ZERO = "error parentid value is zero" )
Variables ¶
This section is empty.
Functions ¶
func GenerateNewTraceparent ¶
func GenerateParentId ¶
Counting on go compiler to inline these plsplspls :)
func GenerateParentIdRaw ¶
func GenerateRandomBytes ¶
func GenerateTraceId ¶
func GenerateTraceIdRaw ¶
func ParseTraceparent ¶
func ParseTraceparentRaw ¶
func ValidateParentIdValue ¶
func ValidateTraceIdValue ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.