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

Function newStore

modules/backendworker/backendworker_test.go:171–178  ·  view source on GitHub ↗
(ctx context.Context, t testing.TB, tmpDir string)

Source from the content-addressed store, hash-verified

169}
170
171func newStore(ctx context.Context, t testing.TB, tmpDir string) (storage.Store, backend.RawReader, backend.RawWriter) {
172 rr, ww, _, err := local.New(&local.Config{
173 Path: tmpDir + "/traces",
174 })
175 require.NoError(t, err)
176
177 return newStoreWithLogger(ctx, t, test.NewTestingLogger(t), tmpDir), rr, ww
178}
179
180func newStoreWithLogger(ctx context.Context, t testing.TB, log log.Logger, tmpDir string) storage.Store {
181 s, err := storage.NewStore(storage.Config{

Callers 1

setupDependenciesFunction · 0.70

Calls 3

NewFunction · 0.92
NewTestingLoggerFunction · 0.92
newStoreWithLoggerFunction · 0.70

Tested by

no test coverage detected