MCPcopy
hub / github.com/grafana/tempo / traceToParquet

Function traceToParquet

tempodb/encoding/vparquet4/schema.go:351–357  ·  view source on GitHub ↗

traceToParquet converts a tempopb.Trace to this schema's object model. Returns the new object and a bool indicating if it's a connected trace or not

(meta *backend.BlockMeta, id common.ID, tr *tempopb.Trace, ot *Trace)

Source from the content-addressed store, hash-verified

349// traceToParquet converts a tempopb.Trace to this schema's object model. Returns the new object and
350// a bool indicating if it's a connected trace or not
351func traceToParquet(meta *backend.BlockMeta, id common.ID, tr *tempopb.Trace, ot *Trace) (*Trace, bool) {
352 // Dedicated attribute column assignments
353 dedicatedResourceAttributes := dedicatedColumnsToColumnMapping(meta.DedicatedColumns, backend.DedicatedColumnScopeResource)
354 dedicatedSpanAttributes := dedicatedColumnsToColumnMapping(meta.DedicatedColumns, backend.DedicatedColumnScopeSpan)
355
356 return traceToParquetWithMapping(id, tr, ot, dedicatedResourceAttributes, dedicatedSpanAttributes)
357}
358
359func traceToParquetWithMapping(id common.ID, tr *tempopb.Trace, ot *Trace, dedicatedResourceAttributes, dedicatedSpanAttributes dedicatedColumnMapping) (*Trace, bool) {
360 if ot == nil {

Callers 15

BenchmarkCombineFunction · 0.70
BenchmarkSortTraceFunction · 0.70
TestBackendBlockSearchFunction · 0.70
TestProtoParquetRandoFunction · 0.70
TestFieldsAreClearedFunction · 0.70
TestTraceToParquetFunction · 0.70
BenchmarkProtoToParquetFunction · 0.70
BenchmarkDeconstructFunction · 0.70
BenchmarkTraceToParquetFunction · 0.70

Calls 2

Tested by 15

BenchmarkCombineFunction · 0.56
BenchmarkSortTraceFunction · 0.56
TestBackendBlockSearchFunction · 0.56
TestProtoParquetRandoFunction · 0.56
TestFieldsAreClearedFunction · 0.56
TestTraceToParquetFunction · 0.56
BenchmarkProtoToParquetFunction · 0.56
BenchmarkDeconstructFunction · 0.56
BenchmarkTraceToParquetFunction · 0.56