(userID string)
| 190 | } |
| 191 | |
| 192 | func (l *Limiter) formatMaxMetadataPerUserError(userID string) error { |
| 193 | actualLimit := l.maxMetadataPerUser(userID) |
| 194 | localLimit := l.limits.MaxLocalMetricsWithMetadataPerUser(userID) |
| 195 | globalLimit := l.limits.MaxGlobalMetricsWithMetadataPerUser(userID) |
| 196 | |
| 197 | return fmt.Errorf("per-user metric metadata limit of %d exceeded, %s (local limit: %d global limit: %d actual local limit: %d)", |
| 198 | minNonZero(localLimit, globalLimit), l.AdminLimitMessage, localLimit, globalLimit, actualLimit) |
| 199 | } |
| 200 | |
| 201 | func (l *Limiter) formatMaxMetadataPerMetricError(userID string, metric string) error { |
| 202 | actualLimit := l.maxMetadataPerMetric(userID) |
no test coverage detected