logs: use explicit frame-type-check (#48940)

This commit is contained in:
Gábor Farkas
2022-05-16 13:38:05 +02:00
committed by GitHub
parent f256f625d8
commit 683c1c0f40
7 changed files with 45 additions and 13 deletions
+5 -1
View File
@@ -114,7 +114,11 @@ func adjustLogsFrame(frame *data.Frame, query *lokiQuery) error {
}
frame.Meta.Stats = parseStats(frame.Meta.Custom)
frame.Meta.Custom = nil
// TODO: when we get a real frame-type in grafana-plugin-sdk-go,
// move this to frame.Meta.FrameType
frame.Meta.Custom = map[string]string{
"frameType": "LabeledTimeValues",
}
frame.Meta.ExecutedQueryString = "Expr: " + query.Expr
File diff suppressed because one or more lines are too long