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

Function eventToParquet

tempodb/encoding/vparquet3/schema.go:498–509  ·  view source on GitHub ↗
(e *v1_trace.Span_Event, ee *Event)

Source from the content-addressed store, hash-verified

496}
497
498func eventToParquet(e *v1_trace.Span_Event, ee *Event) {
499 ee.Name = e.Name
500 ee.TimeUnixNano = e.TimeUnixNano
501 ee.DroppedAttributesCount = int32(e.DroppedAttributesCount)
502
503 ee.Attrs = extendReuseSlice(len(e.Attributes), ee.Attrs)
504 for i, a := range e.Attributes {
505 ee.Attrs[i].Key = a.Key
506 ee.Attrs[i].Value = extendReuseSlice(a.Value.Size(), ee.Attrs[i].Value)
507 _, _ = a.Value.MarshalToSizedBuffer(ee.Attrs[i].Value)
508 }
509}
510
511func parquetToProtoAttrs(parquetAttrs []Attribute) []*v1.KeyValue {
512 var protoAttrs []*v1.KeyValue

Callers 2

traceToParquetFunction · 0.70
BenchmarkEventToParquetFunction · 0.70

Calls 3

extendReuseSliceFunction · 0.70
SizeMethod · 0.65
MarshalToSizedBufferMethod · 0.45

Tested by 1

BenchmarkEventToParquetFunction · 0.56