Documentation
¶
Overview ¶
Package trace implements execution operations for querying trace data.
Index ¶
- func Analyze(criteria *tracev1.QueryRequest, metadata []*commonv1.Metadata, ...) (logical.Plan, error)
- func BuildSchema(tr *databasev1.Trace, indexRules []*databasev1.IndexRule) (logical.Schema, error)
- func DecodeTraceResultFrame(body []byte) ([]model.TraceResult, error)
- func DistributedAnalyze(criteria *tracev1.QueryRequest, ss []logical.Schema) (logical.Plan, error)
- func EncodeTraceResultFrame(results []model.TraceResult) []byte
- type Parent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Analyze ¶
func Analyze(criteria *tracev1.QueryRequest, metadata []*commonv1.Metadata, ss []logical.Schema, ecc []executor.TraceExecutionContext, traceIDTagNames, spanIDTagNames, timestampTagNames []string, ) (logical.Plan, error)
Analyze converts logical expressions to executable operation tree represented by Plan.
func BuildSchema ¶
func BuildSchema(tr *databasev1.Trace, indexRules []*databasev1.IndexRule) (logical.Schema, error)
BuildSchema returns Schema loaded from the metadata repository.
func DecodeTraceResultFrame ¶ added in v0.11.0
func DecodeTraceResultFrame(body []byte) ([]model.TraceResult, error)
DecodeTraceResultFrame reconstructs the columnar slice of model.TraceResult from a frame body. All bytes/strings are copied because the body buffer is reused after this call returns.
func DistributedAnalyze ¶
DistributedAnalyze converts logical expressions to executable operation tree represented by Plan.
func EncodeTraceResultFrame ¶ added in v0.11.0
func EncodeTraceResultFrame(results []model.TraceResult) []byte
EncodeTraceResultFrame serializes a columnar slice of model.TraceResult into a magic+version-prefixed frame: length-delimited traces, each with its spans and columnar tags (one TagValue per span). It avoids the protobuf message-slice + oneof machinery that dominates the data↔liaison hop.