model

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: AGPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

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

func CombineTraceProtos(traceA, traceB *tempopb.Trace) (*tempopb.Trace, int, int, int)

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 SortTrace

func SortTrace(t *tempopb.Trace)

SortTrace sorts a *tempopb.Trace

func SortTraceBytes

func SortTraceBytes(t *tempopb.TraceBytes)

SortTraceBytes sorts a *tempopb.TraceBytes

func Unmarshal

func Unmarshal(obj []byte, dataEncoding string) (*tempopb.Trace, error)

Unmarshal converts a byte slice of the passed encoding into a *tempopb.Trace

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL