NewMultiResolver creates a tenant resolver, which allows request to have multiple tenant ids submitted separated by a '|' character. This enforces further limits on the character set allowed within tenants as detailed here: https://cortexmetrics.io/docs/guides/limitations/#tenant-id-naming)
()
| 99 | // further limits on the character set allowed within tenants as detailed here: |
| 100 | // https://cortexmetrics.io/docs/guides/limitations/#tenant-id-naming) |
| 101 | func NewMultiResolver() *MultiResolver { |
| 102 | return &MultiResolver{} |
| 103 | } |
| 104 | |
| 105 | func (t *MultiResolver) TenantID(ctx context.Context) (string, error) { |
| 106 | orgIDs, err := t.TenantIDs(ctx) |
no outgoing calls