Skip to content

Commit addbdb0

Browse files
authored
GCM: Correctly mark errors as downstream (grafana#97196)
* Correctly mark query type error as downstream * Correctly mark Prom parsing failures as downstream errors * Rename function for clarity
1 parent 3838fa5 commit addbdb0

File tree

2 files changed

+68
-67
lines changed

2 files changed

+68
-67
lines changed

pkg/tsdb/cloud-monitoring/cloudmonitoring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ func (s *Service) buildQueryExecutors(logger log.Logger, req *backend.QueryDataR
443443
}
444444
queryInterface = cmp
445445
default:
446-
return nil, fmt.Errorf("unrecognized query type %q", query.QueryType)
446+
return nil, backend.DownstreamError(fmt.Errorf("unrecognized query type %q", query.QueryType))
447447
}
448448

449449
cloudMonitoringQueryExecutors = append(cloudMonitoringQueryExecutors, queryInterface)

0 commit comments

Comments
 (0)