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

Method WaitTracesWrittenToBackend

integration/util/harness.go:432–437  ·  view source on GitHub ↗
(t *testing.T, traces int)

Source from the content-addressed store, hash-verified

430}
431
432func (h *TempoHarness) WaitTracesWrittenToBackend(t *testing.T, traces int) {
433 t.Helper()
434
435 queryFrontend := h.Services[ServiceQueryFrontend]
436 require.NoError(t, queryFrontend.WaitSumMetricsWithOptions(e2e.GreaterOrEqual(float64(traces)), []string{"tempodb_backend_objects_total"}, e2e.WaitMissingMetrics))
437}
438
439// ForceBackendQuerying restarts the query frontend with the query-backend config overlay applied.
440// Using this function requires re-creating any clients pointing at the frontend!

Callers 7

TestEncodingsFunction · 0.80
TestTagEndpointsFunction · 0.80
TestTraceByIDandTraceQLFunction · 0.80
TestWriteMetricsFunction · 0.80
TestFailureModesFunction · 0.80

Calls

no outgoing calls

Tested by 7

TestEncodingsFunction · 0.64
TestTagEndpointsFunction · 0.64
TestTraceByIDandTraceQLFunction · 0.64
TestWriteMetricsFunction · 0.64
TestFailureModesFunction · 0.64