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

Function eventToParquet

tempodb/encoding/vparquet5/schema.go:594–599  ·  view source on GitHub ↗
(e *v1_trace.Span_Event, ee *Event, spanStartTime uint64, dedicatedEventAttributes dedicatedColumnMapping)

Source from the content-addressed store, hash-verified

592}
593
594func eventToParquet(e *v1_trace.Span_Event, ee *Event, spanStartTime uint64, dedicatedEventAttributes dedicatedColumnMapping) {
595 ee.Name = e.Name
596 ee.TimeSinceStartNano = e.TimeUnixNano - spanStartTime
597 ee.DroppedAttributesCount = int32(e.DroppedAttributesCount)
598 writeAttrs(e.Attributes, &ee.Attrs, &ee.DedicatedAttributes, dedicatedEventAttributes)
599}
600
601func linkToParquet(l *v1_trace.Span_Link, ll *Link) {
602 ll.TraceID = l.TraceId

Callers 2

BenchmarkEventToParquetFunction · 0.70

Calls 1

writeAttrsFunction · 0.85

Tested by 1

BenchmarkEventToParquetFunction · 0.56