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

Method filterSupportedProcessors

modules/generator/instance.go:256–269  ·  modules/generator/instance.go::instance.filterSupportedProcessors
(processors map[string]struct{})

Source from the content-addressed store, hash-verified

254}
255
256func (i *instance) filterSupportedProcessors(processors map[string]struct{}) map[string]struct{} {
257 filtered := make(map[string]struct{}, len(processors))
258
259 for processorName := range processors {
260 if _, ok := validation.SupportedProcessorsSet[processorName]; ok {
261 filtered[processorName] = struct{}{}
262 continue
263 }
264
265 level.Warn(i.logger).Log("msg", "ignoring unknown metrics-generator processor", "tenant", i.instanceID, "processor", processorName)
266 }
267
268 return filtered
269}
270
271// diffProcessors compares the existing processors with the desired processors and config.
272// Must be called under a read lock.

Callers 1

updateProcessorsMethod · 0.95

Calls 1

LogMethod · 0.65

Tested by

no test coverage detected