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

Method PrepareForRead

pkg/model/object_decoder.go:24–24  ·  view source on GitHub ↗

PrepareForRead converts the byte slice into a tempopb.Trace for reading. This can be very expensive and should only be used when surfacing a byte slice from tempodb and preparing it for reads.

(obj []byte)

Source from the content-addressed store, hash-verified

22 // PrepareForRead converts the byte slice into a tempopb.Trace for reading. This can be very expensive
23 // and should only be used when surfacing a byte slice from tempodb and preparing it for reads.
24 PrepareForRead(obj []byte) (*tempopb.Trace, error)
25
26 // Combine combines the passed byte slice
27 Combine(objs ...[]byte) ([]byte, error)

Callers 7

AppendMethod · 0.65
AppendMethod · 0.65
AppendMethod · 0.65
TestCombinesFunction · 0.65
CombineMethod · 0.65

Implementers 2

ObjectDecoderpkg/model/v2/object_decoder.go
ObjectDecoderpkg/model/v1/object_decoder.go

Calls

no outgoing calls

Tested by 3

TestCombinesFunction · 0.52