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

Method Tenants

tempodb/backend/raw.go:220–232  ·  view source on GitHub ↗

Tenants implements backend.Reader

(ctx context.Context)

Source from the content-addressed store, hash-verified

218
219// Tenants implements backend.Reader
220func (r *reader) Tenants(ctx context.Context) ([]string, error) {
221 list, err := r.r.List(ctx, nil)
222
223 // this filter is added to fix a GCS usage stats issue that would result in ""
224 var filteredList []string
225 for _, tenant := range list {
226 if tenant != "" && tenant != ClusterSeedFileName && tenant != WorkFileName {
227 filteredList = append(filteredList, tenant)
228 }
229 }
230
231 return filteredList, err
232}
233
234// Blocks implements backend.Reader
235func (r *reader) Blocks(ctx context.Context, tenantID string) ([]uuid.UUID, []uuid.UUID, error) {

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected