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

Method Marshal

pkg/tempopb/tempo.pb.go:5428–5436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5426}
5427
5428func (m *Trace) Marshal() (dAtA []byte, err error) {
5429 size := m.Size()
5430 dAtA = make([]byte, size)
5431 n, err := m.MarshalToSizedBuffer(dAtA[:size])
5432 if err != nil {
5433 return nil, err
5434 }
5435 return dAtA[:n], nil
5436}
5437
5438func (m *Trace) MarshalTo(dAtA []byte) (int, error) {
5439 size := m.Size()

Callers 5

batchesToTracesFunction · 0.95
TestLiveStoreQueryRangeFunction · 0.95
TestClient_TraceByIDFunction · 0.95
marshalBatchesFunction · 0.95

Calls 2

SizeMethod · 0.95
MarshalToSizedBufferMethod · 0.95

Tested by 5

batchesToTracesFunction · 0.76
TestLiveStoreQueryRangeFunction · 0.76
TestClient_TraceByIDFunction · 0.76
marshalBatchesFunction · 0.76