mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
logs: histogram: handle backend-mode queries (#50535)
This commit is contained in:
parent
88279dda1c
commit
a0e5a4eba2
@ -702,7 +702,17 @@ export function queryLogsVolume<T extends DataQuery>(
|
||||
observer.complete();
|
||||
},
|
||||
next: (dataQueryResponse: DataQueryResponse) => {
|
||||
rawLogsVolume = rawLogsVolume.concat(dataQueryResponse.data.map(toDataFrame));
|
||||
const { error } = dataQueryResponse;
|
||||
if (error !== undefined) {
|
||||
observer.next({
|
||||
state: LoadingState.Error,
|
||||
error,
|
||||
data: [],
|
||||
});
|
||||
observer.error(error);
|
||||
} else {
|
||||
rawLogsVolume = rawLogsVolume.concat(dataQueryResponse.data.map(toDataFrame));
|
||||
}
|
||||
},
|
||||
error: (error) => {
|
||||
observer.next({
|
||||
|
Loading…
Reference in New Issue
Block a user