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

Function parquetToProtoInstrumentationScope

tempodb/encoding/vparquet4/schema.go:711–723  ·  view source on GitHub ↗
(parquetScope *InstrumentationScope)

Source from the content-addressed store, hash-verified

709}
710
711func parquetToProtoInstrumentationScope(parquetScope *InstrumentationScope) *v1.InstrumentationScope {
712 scope := v1.InstrumentationScope{
713 Name: parquetScope.Name,
714 Version: parquetScope.Version,
715 DroppedAttributesCount: uint32(parquetScope.DroppedAttributesCount),
716 }
717
718 if len(parquetScope.Attrs) > 0 {
719 scope.Attributes = parquetToProtoAttrs(parquetScope.Attrs)
720 }
721
722 return &scope
723}
724
725func parquetToProtoLinks(parquetLinks []Link) []*v1_trace.Span_Link {
726 var protoLinks []*v1_trace.Span_Link

Callers 1

Calls 1

parquetToProtoAttrsFunction · 0.70

Tested by

no test coverage detected