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

Function instrumentationScopeToParquet

tempodb/encoding/vparquet4/schema.go:586–603  ·  view source on GitHub ↗
(s *v1.InstrumentationScope, ss *InstrumentationScope)

Source from the content-addressed store, hash-verified

584}
585
586func instrumentationScopeToParquet(s *v1.InstrumentationScope, ss *InstrumentationScope) {
587 if s == nil {
588 ss.Name = ""
589 ss.Version = ""
590 ss.DroppedAttributesCount = 0
591 ss.Attrs = ss.Attrs[:0]
592 return
593 }
594
595 ss.Name = s.Name
596 ss.Version = s.Version
597 ss.DroppedAttributesCount = int32(s.DroppedAttributesCount)
598
599 ss.Attrs = extendReuseSlice(len(s.Attributes), ss.Attrs)
600 for i, a := range s.Attributes {
601 attrToParquet(a, &ss.Attrs[i])
602 }
603}
604
605func eventToParquet(e *v1_trace.Span_Event, ee *Event, spanStartTime uint64) {
606 ee.Name = e.Name

Callers 1

Calls 2

extendReuseSliceFunction · 0.70
attrToParquetFunction · 0.70

Tested by

no test coverage detected