(ctx context.Context)
| 19 | } |
| 20 | |
| 21 | func RequestFromRuler(ctx context.Context) bool { |
| 22 | metadataMap := MapFromContext(ctx) |
| 23 | if metadataMap == nil { |
| 24 | return false |
| 25 | } |
| 26 | return metadataMap[RequestSourceKey] == SourceRuler |
| 27 | } |
no test coverage detected