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

Function attrToParquetTypeUnsupported

tempodb/encoding/vparquet4/schema.go:341–347  ·  view source on GitHub ↗
(a *v1.KeyValue, p *Attribute)

Source from the content-addressed store, hash-verified

339}
340
341func attrToParquetTypeUnsupported(a *v1.KeyValue, p *Attribute) {
342 jsonBytes := &bytes.Buffer{}
343 _ = jsonMarshaler.Marshal(jsonBytes, a.Value) // deliberately marshalling a.Value because of AnyValue logic
344 jsonStr := jsonBytes.String()
345 p.ValueUnsupported = &jsonStr
346 p.IsArray = false
347}
348
349// traceToParquet converts a tempopb.Trace to this schema's object model. Returns the new object and
350// a bool indicating if it's a connected trace or not

Callers 1

attrToParquetFunction · 0.70

Calls 2

MarshalMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected