(t *testing.T, client *httpclient.Client, info *tempoUtil.TraceInfo)
| 61 | } |
| 62 | |
| 63 | func SearchTraceQLAndAssertTrace(t *testing.T, client *httpclient.Client, info *tempoUtil.TraceInfo) { |
| 64 | expected, err := info.ConstructTraceFromEpoch() |
| 65 | require.NoError(t, err) |
| 66 | |
| 67 | attr := tempoUtil.RandomAttrFromTrace(expected) |
| 68 | query := fmt.Sprintf(`{ .%s = "%s"}`, attr.GetKey(), attr.GetValue().GetStringValue()) |
| 69 | |
| 70 | resp, err := client.SearchTraceQL(query) |
| 71 | require.NoError(t, err) |
| 72 | |
| 73 | require.True(t, traceIDInResults(t, info.HexID(), resp)) |
| 74 | } |
| 75 | |
| 76 | func SearchTraceQLAndAssertTraceWithRange(t *testing.T, client *httpclient.Client, info *tempoUtil.TraceInfo, start, end int64) { |
| 77 | expected, err := info.ConstructTraceFromEpoch() |
nothing calls this directly
no test coverage detected