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

Function instrumentationScopeToParquet

tempodb/encoding/vparquet5/schema.go:575–592  ·  view source on GitHub ↗
(s *v1.InstrumentationScope, ss *InstrumentationScope)

Source from the content-addressed store, hash-verified

573}
574
575func instrumentationScopeToParquet(s *v1.InstrumentationScope, ss *InstrumentationScope) {
576 if s == nil {
577 ss.Name = ""
578 ss.Version = ""
579 ss.DroppedAttributesCount = 0
580 ss.Attrs = ss.Attrs[:0]
581 return
582 }
583
584 ss.Name = s.Name
585 ss.Version = s.Version
586 ss.DroppedAttributesCount = int32(s.DroppedAttributesCount)
587
588 ss.Attrs = extendReuseSlice(len(s.Attributes), ss.Attrs)
589 for i, a := range s.Attributes {
590 attrToParquet(a, &ss.Attrs[i])
591 }
592}
593
594func eventToParquet(e *v1_trace.Span_Event, ee *Event, spanStartTime uint64, dedicatedEventAttributes dedicatedColumnMapping) {
595 ee.Name = e.Name

Callers 1

Calls 2

extendReuseSliceFunction · 0.70
attrToParquetFunction · 0.70

Tested by

no test coverage detected