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

Method recordWrite

integration/util/harness.go:132–134  ·  integration/util/harness.go::TempoHarness.recordWrite

recordWrite stamps the time of a successful trace write. Callers should invoke this after every method that emits traces to the distributor so that WaitTracesQueryable can wait for the query_end_cutoff window to elapse before tests assert queryability.

()

Source from the content-addressed store, hash-verified

130// after every method that emits traces to the distributor so that WaitTracesQueryable
131// can wait for the query_end_cutoff window to elapse before tests assert queryability.
132func (h *TempoHarness) recordWrite() {
133 h.lastWriteUnixNano.Store(time.Now().UnixNano())
134}
135
136// TestHarnessConfig provides configuration options for the test harness
137type TestHarnessConfig struct {

Callers 3

WriteTraceInfoMethod · 0.95
WriteJaegerBatchMethod · 0.95
WriteTempoProtoTracesMethod · 0.95

Calls 2

StoreMethod · 0.65
NowMethod · 0.65

Tested by

no test coverage detected