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

Function multiTenantMiddleware

modules/frontend/frontend.go:362–368  ·  view source on GitHub ↗
(cfg Config, logger log.Logger)

Source from the content-addressed store, hash-verified

360}
361
362func multiTenantMiddleware(cfg Config, logger log.Logger) pipeline.AsyncMiddleware[combiner.PipelineResponse] {
363 if cfg.MultiTenantQueriesEnabled {
364 return pipeline.NewMultiTenantMiddleware(logger)
365 }
366
367 return pipeline.NewNoopMiddleware()
368}
369
370// blockMetasForSearch returns a list of blocks that are relevant to the search query.
371// start and end are unix timestamps in seconds. rf is the replication factor of the blocks to return.

Callers 1

NewFunction · 0.85

Calls 2

NewMultiTenantMiddlewareFunction · 0.92
NewNoopMiddlewareFunction · 0.92

Tested by

no test coverage detected