(_ context.Context, req *tempopb.PushSpansRequest)
| 50 | } |
| 51 | |
| 52 | func (p *Processor) PushSpans(_ context.Context, req *tempopb.PushSpansRequest) { |
| 53 | for i := range req.Batches { |
| 54 | resourceSpans := req.Batches[i] |
| 55 | if hostID, hostSource := p.findHostIdentifier(resourceSpans); hostID != "" && hostSource != "" { |
| 56 | builder := p.registry.NewInfoMetricLabelBuilder() |
| 57 | builder.Add(hostIdentifierAttr, hostID) |
| 58 | builder.Add(hostSourceAttr, hostSource) |
| 59 | labels, validUTF8 := builder.CloseAndBuildLabels() |
| 60 | if !validUTF8 { |
| 61 | p.invalidUTF8Counter.Inc() |
| 62 | continue |
| 63 | } |
| 64 | p.gauge.Set(labels, 1) |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | func (p *Processor) Shutdown(_ context.Context) {} |
| 70 |
nothing calls this directly
no test coverage detected