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

Function ExtractValidTenantID

pkg/validation/tenantid.go:10–19  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

8)
9
10func ExtractValidTenantID(ctx context.Context) (string, error) {
11 tenantID, err := tenant.TenantID(ctx)
12 if err != nil {
13 return "", err
14 }
15 if tenantID == "" {
16 return "", user.ErrNoOrgID
17 }
18 return tenantID, nil
19}

Callers 15

PushSpansMethod · 0.92
RoundTripMethod · 0.92
RoundTripMethod · 0.92
RoundTripMethod · 0.92
buildShardedRequestsMethod · 0.92
RoundTripMethod · 0.92
extractBasicInfoMethod · 0.92
PushBytesMethod · 0.92
withInstanceFunction · 0.92
SearchTagsV2Method · 0.92
SearchTagValuesMethod · 0.92
SearchTagValuesV2Method · 0.92

Calls 1

TenantIDMethod · 0.80

Tested by

no test coverage detected