mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
Tempo: fix handling of trace-not-found cases (#34219)
This commit is contained in:
parent
b9eab37149
commit
bd4afe41ba
@ -64,7 +64,7 @@ func (e *tempoExecutor) DataQuery(ctx context.Context, dsInfo *models.DataSource
|
|||||||
}
|
}
|
||||||
|
|
||||||
if resp.StatusCode != http.StatusOK {
|
if resp.StatusCode != http.StatusOK {
|
||||||
queryResult.ErrorString = fmt.Sprintf("failed to get trace with id: %s Status: %s Body: %s", traceID, resp.Status, string(body))
|
queryResult.Error = fmt.Errorf("failed to get trace with id: %s Status: %s Body: %s", traceID, resp.Status, string(body))
|
||||||
return plugins.DataResponse{
|
return plugins.DataResponse{
|
||||||
Results: map[string]plugins.DataQueryResult{
|
Results: map[string]plugins.DataQueryResult{
|
||||||
refID: queryResult,
|
refID: queryResult,
|
||||||
|
Loading…
Reference in New Issue
Block a user