| 399 | } |
| 400 | |
| 401 | func 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 | |
| 413 | func doSearch(httpClient httpclient.TempoHTTPClient, config vultureConfiguration, info *util.TraceInfo, l *zap.Logger) { |
| 414 | // query a tag we expect the trace to be found within |