(t *testing.T, client *httpclient.Client, info *tempoUtil.TraceInfo, start, end int64)
| 74 | } |
| 75 | |
| 76 | func SearchTraceQLAndAssertTraceWithRange(t *testing.T, client *httpclient.Client, info *tempoUtil.TraceInfo, start, end int64) { |
| 77 | expected, err := info.ConstructTraceFromEpoch() |
| 78 | require.NoError(t, err) |
| 79 | |
| 80 | attr := tempoUtil.RandomAttrFromTrace(expected) |
| 81 | query := fmt.Sprintf(`{ .%s = "%s"}`, attr.GetKey(), attr.GetValue().GetStringValue()) |
| 82 | |
| 83 | resp, err := client.SearchTraceQLWithRange(query, start, end) |
| 84 | require.NoError(t, err) |
| 85 | |
| 86 | require.True(t, traceIDInResults(t, info.HexID(), resp)) |
| 87 | } |
| 88 | |
| 89 | // SearchStreamAndAssertTrace will search and assert that the trace is present in the streamed results. |
| 90 | // nolint: revive |
nothing calls this directly
no test coverage detected