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

Function traceInTraces

cmd/tempo-vulture/main.go:483–497  ·  view source on GitHub ↗
(traceID string, traces []*tempopb.TraceSearchMetadata)

Source from the content-addressed store, hash-verified

481}
482
483func traceInTraces(traceID string, traces []*tempopb.TraceSearchMetadata) bool {
484 for _, t := range traces {
485 equal, err := util.EqualHexStringTraceIDs(t.TraceID, traceID)
486 if err != nil {
487 logger.Error("error comparing trace IDs", zap.Error(err))
488 continue
489 }
490
491 if equal {
492 return true
493 }
494 }
495
496 return false
497}
498
499func searchTag(client httpclient.TempoHTTPClient, seed time.Time, config vultureConfiguration, l *zap.Logger) (traceMetrics, error) {
500 tm := traceMetrics{

Callers 2

searchTagFunction · 0.85
searchTraceqlFunction · 0.85

Calls 2

EqualHexStringTraceIDsFunction · 0.92
ErrorMethod · 0.65

Tested by

no test coverage detected