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

Function testingConfig

tempodb/tempodb_search_test.go:1883–1906  ·  view source on GitHub ↗
(dir string, version string, dc backend.DedicatedColumns)

Source from the content-addressed store, hash-verified

1881}
1882
1883func testingConfig(dir string, version string, dc backend.DedicatedColumns) *Config {
1884 return &Config{
1885 Backend: backend.Local,
1886 Local: &local.Config{
1887 Path: path.Join(dir, "traces"),
1888 },
1889 Block: &common.BlockConfig{
1890 BloomFP: .01,
1891 BloomShardSizeBytes: 100_000,
1892 Version: version,
1893 RowGroupSizeBytes: 10000,
1894 DedicatedColumns: dc,
1895 },
1896 WAL: &wal.Config{
1897 Filepath: path.Join(dir, "wal"),
1898 IngestionSlack: time.Since(time.Time{}),
1899 },
1900 Search: &SearchConfig{
1901 ChunkSizeBytes: 1_000_000,
1902 ReadBufferCount: 8, ReadBufferSizeBytes: 4 * 1024 * 1024,
1903 },
1904 BlocklistPoll: 0,
1905 }
1906}
1907
1908var testingCompactorConfig = &CompactorConfig{
1909 MaxCompactionRange: time.Hour,

Calls 1

JoinMethod · 0.65

Tested by

no test coverage detected