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

Function dedicatedColsToJSON

pkg/api/dedicated_columns_to_json_test.go:33–43  ·  view source on GitHub ↗
(t *testing.T, cols backend.DedicatedColumns)

Source from the content-addressed store, hash-verified

31}
32
33func dedicatedColsToJSON(t *testing.T, cols backend.DedicatedColumns) string {
34 t.Helper()
35
36 proto, err := cols.ToTempopb()
37 require.NoError(t, err)
38
39 jsonBytes, err := json.Marshal(proto)
40 require.NoError(t, err)
41
42 return string(jsonBytes)
43}
44
45// randoDedicatedCols generates a random set of cols for testing
46func randoDedicatedCols() backend.DedicatedColumns {

Callers 1

Calls 2

MarshalMethod · 0.65
ToTempopbMethod · 0.45

Tested by

no test coverage detected