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

Function doRead

cmd/tempo-vulture/main.go:401–411  ·  view source on GitHub ↗
(httpClient httpclient.TempoHTTPClient, _ vultureConfiguration, info *util.TraceInfo, l *zap.Logger)

Source from the content-addressed store, hash-verified

399}
400
401func doRead(httpClient httpclient.TempoHTTPClient, _ vultureConfiguration, info *util.TraceInfo, l *zap.Logger) {
402 // query the trace
403 queryMetrics, err := queryTrace(httpClient, info, l)
404 if err != nil {
405 metricErrorTotal.Inc()
406 logger.Error("query for metrics failed",
407 zap.Error(err),
408 )
409 }
410 pushVultureMetrics(queryMetrics)
411}
412
413func doSearch(httpClient httpclient.TempoHTTPClient, config vultureConfiguration, info *util.TraceInfo, l *zap.Logger) {
414 // query a tag we expect the trace to be found within

Callers 3

TestDoReadForAnOkReadFunction · 0.85
mainFunction · 0.85

Calls 4

queryTraceFunction · 0.85
pushVultureMetricsFunction · 0.85
IncMethod · 0.65
ErrorMethod · 0.65

Tested by 2

TestDoReadForAnOkReadFunction · 0.68