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

Function newStore

modules/backendscheduler/backendscheduler_test.go:255–262  ·  view source on GitHub ↗
(ctx context.Context, t testing.TB, tmpDir string)

Source from the content-addressed store, hash-verified

253}
254
255func newStore(ctx context.Context, t testing.TB, tmpDir string) (storage.Store, backend.RawReader, backend.RawWriter) {
256 rr, ww, _, err := local.New(&local.Config{
257 Path: tmpDir + "/traces",
258 })
259 require.NoError(t, err)
260
261 return newStoreWithLogger(ctx, t, test.NewTestingLogger(t), tmpDir), rr, ww
262}
263
264func newStoreWithLogger(ctx context.Context, t testing.TB, log log.Logger, tmpDir string) storage.Store {
265 s, err := storage.NewStore(storage.Config{

Callers 7

TestShardedIntegrationFunction · 0.70
TestBackendSchedulerFunction · 0.70
TestCacheFunction · 0.70

Calls 3

NewFunction · 0.92
NewTestingLoggerFunction · 0.92
newStoreWithLoggerFunction · 0.70

Tested by

no test coverage detected