Documentation
¶
Index ¶
- Constants
- Variables
- func CombineTraceBytes(objA []byte, objB []byte, dataEncodingA string, dataEncodingB string) (_ []byte, wasCombined bool, _ error)
- func CombineTraceProtos(traceA, traceB *tempopb.Trace) (*tempopb.Trace, int, int, int)
- func SortTrace(t *tempopb.Trace)
- func SortTraceBytes(t *tempopb.TraceBytes)
- func Unmarshal(obj []byte, dataEncoding string) (*tempopb.Trace, error)
Constants ¶
View Source
const CurrentEncoding = "v1"
CurrentEncoding is a string representing the encoding that all new blocks should be created with
"" = tempopb.Trace "v1" = tempopb.TraceBytes
View Source
const TracePBEncoding = ""
TracePBEncoding is a string that represents the original TracePBEncoding. Pass this if you know that the bytes are encoded *tracepb.Trace
Variables ¶
View Source
var ObjectCombiner = objectCombiner{}
Functions ¶
func CombineTraceBytes ¶
func CombineTraceBytes(objA []byte, objB []byte, dataEncodingA string, dataEncodingB string) (_ []byte, wasCombined bool, _ error)
CombineTraceBytes combines objA and objB encoded using dataEncodingA and dataEncodingB and returns a trace encoded with dataEncodingA
func CombineTraceProtos ¶
CombineTraceProtos combines two trace protos into one. Note that it is destructive.
All spans are combined into traceA. spanCountA, B, and Total are returned for logging purposes.
func SortTraceBytes ¶
func SortTraceBytes(t *tempopb.TraceBytes)
SortTraceBytes sorts a *tempopb.TraceBytes
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.