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

Method updateProcessorMetrics

modules/generator/instance.go:372–380  ·  view source on GitHub ↗

updateProcessorMetrics updates the active processor metrics. Must be called under a read lock.

()

Source from the content-addressed store, hash-verified

370
371// updateProcessorMetrics updates the active processor metrics. Must be called under a read lock.
372func (i *instance) updateProcessorMetrics() {
373 for _, processorName := range validation.SupportedProcessors {
374 isPresent := 0.0
375 if _, ok := i.processors[processorName]; ok {
376 isPresent = 1.0
377 }
378 metricActiveProcessors.WithLabelValues(i.instanceID, processorName).Set(isPresent)
379 }
380}
381
382func (i *instance) pushSpans(ctx context.Context, req *tempopb.PushSpansRequest) {
383 i.preprocessSpans(req)

Callers 1

updateProcessorsMethod · 0.95

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected