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

Method WaitTracesWritable

integration/util/harness.go:371–385  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

369}
370
371func (h *TempoHarness) WaitTracesWritable(t *testing.T) {
372 t.Helper()
373
374 matchers := []*labels.Matcher{
375 {Type: labels.MatchEqual, Name: "state", Value: "Active"},
376 {Type: labels.MatchEqual, Name: "name", Value: "livestore-partitions"},
377 }
378
379 // distributors have to be non-nil if we're writing anything
380 distributor := h.Services[ServiceDistributor]
381 require.NoError(t, distributor.WaitSumMetricsWithOptions(
382 e2e.Equals(float64(1)),
383 []string{"tempo_partition_ring_partitions"},
384 e2e.WithLabelMatchers(matchers...)), "distributor failed to see the partition ring")
385}
386
387func (h *TempoHarness) WaitTracesQueryable(t *testing.T, traces int) {
388 t.Helper()

Callers 15

TestEncodingsFunction · 0.80
TestIngestionLimitsFunction · 0.80
TestOTLPLimitsFunction · 0.80
TestQueryLimitsFunction · 0.80
TestLimitsPartialSuccessFunction · 0.80
TestQueryRateLimitsFunction · 0.80
TestQueryRangeExemplarsFunction · 0.80
TestQueryRangeMaxSeriesFunction · 0.80

Calls 1

EqualsMethod · 0.80

Tested by 15

TestEncodingsFunction · 0.64
TestIngestionLimitsFunction · 0.64
TestOTLPLimitsFunction · 0.64
TestQueryLimitsFunction · 0.64
TestLimitsPartialSuccessFunction · 0.64
TestQueryRateLimitsFunction · 0.64
TestQueryRangeExemplarsFunction · 0.64
TestQueryRangeMaxSeriesFunction · 0.64