logs: use explicit frame-type-check (#48940)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
+4
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user