Documentation ¶
Index ¶
Constants ¶
View Source
const ProtocolSeparator = '\n'
ProtocolSeparator is the character used to split the header and body in an X-Ray segment
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
Header stores header of trace segment.
func SplitHeaderBody ¶ added in v0.9.0
SplitHeaderBody separates header and body from `buf` using a known separator: ProtocolSeparator. It returns the body of the segment if: 1. header and body can be correctly separated 2. header is valid
Click to show internal directories.
Click to hide internal directories.