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

Function DefaultSearchOptions

tempodb/encoding/common/interfaces.go:53–59  ·  view source on GitHub ↗

DefaultSearchOptions is used in a lot of places such as local ingester searches. It is important in these cases to set a reasonable read buffer size and count to prevent constant tiny readranges against the local backend. TODO: Note that there is another method of creating "default search options" t

()

Source from the content-addressed store, hash-verified

51// TODO: Note that there is another method of creating "default search options" that looks like this:
52// tempodb.SearchConfig{}.ApplyToOptions(&searchOpts). we should consolidate these.
53func DefaultSearchOptions() SearchOptions {
54 return SearchOptions{
55 ReadBufferCount: 32,
56 ReadBufferSize: 1024 * 1024,
57 ChunkSizeBytes: 4 * 1024 * 1024,
58 }
59}
60
61func DefaultSearchOptionsWithMaxBytes(maxBytes int) SearchOptions {
62 opts := DefaultSearchOptions()

Callers 15

TestApplyToOptionsFunction · 0.92
TestDBFunction · 0.92
TestBlockShardingFunction · 0.92
TestNilOnUnknownTenantIDFunction · 0.92
testCompleteBlockFunction · 0.92
RedactBlockMethod · 0.92
testCompactionRoundtripFunction · 0.92
testSameIDCompactionFunction · 0.92
searchRunnerFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestApplyToOptionsFunction · 0.74
TestDBFunction · 0.74
TestBlockShardingFunction · 0.74
TestNilOnUnknownTenantIDFunction · 0.74
testCompleteBlockFunction · 0.74
testCompactionRoundtripFunction · 0.74
testSameIDCompactionFunction · 0.74
searchRunnerFunction · 0.74
traceQLRunnerFunction · 0.74