Versions in this module Expand all Collapse all v2 v2.0.0 Jun 14, 2023 Changes in this version + var ErrMaxChunkBytesHit = "the query hit the aggregated chunks size limit (limit: %d bytes)" + var ErrMaxChunksPerQueryLimit = "the query hit the max number of chunks limit (limit: %d chunks)" + var ErrMaxSeriesHit = "the query hit the max number of series limit (limit: %d series)" + func AddQueryLimiterToContext(ctx context.Context, limiter *QueryLimiter) context.Context + type CombinedLimits interface + type QueryLimiter struct + func NewQueryLimiter(maxSeriesPerQuery, maxChunkBytesPerQuery int, maxChunksPerQuery int) *QueryLimiter + func QueryLimiterFromContextWithFallback(ctx context.Context) *QueryLimiter + func (ql *QueryLimiter) AddChunkBytes(chunkSizeInBytes int) error + func (ql *QueryLimiter) AddChunks(count int) error + func (ql *QueryLimiter) AddSeries(seriesLabels []logproto.LabelAdapter) error