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

Function parquetToProtoInstrumentationScope

tempodb/encoding/vparquet5/schema.go:702–714  ·  view source on GitHub ↗
(parquetScope *InstrumentationScope)

Source from the content-addressed store, hash-verified

700}
701
702func parquetToProtoInstrumentationScope(parquetScope *InstrumentationScope) *v1.InstrumentationScope {
703 scope := v1.InstrumentationScope{
704 Name: parquetScope.Name,
705 Version: parquetScope.Version,
706 DroppedAttributesCount: uint32(parquetScope.DroppedAttributesCount),
707 }
708
709 if len(parquetScope.Attrs) > 0 {
710 scope.Attributes = parquetToProtoAttrs(parquetScope.Attrs)
711 }
712
713 return &scope
714}
715
716func parquetToProtoLinks(parquetLinks []Link) []*v1_trace.Span_Link {
717 var protoLinks []*v1_trace.Span_Link

Callers 1

Calls 1

parquetToProtoAttrsFunction · 0.70

Tested by

no test coverage detected