Loki: Fix a bug when reading frames without values but warnings (#97197)

* Loki: Fix a bug when reading frames without values but warnings

* Loki: Better bail if fields are less than 2
This commit is contained in:
Sven Grossmann
2024-11-29 15:34:59 +01:00
committed by GitHub
parent 0def6f2bce
commit b544b8afff
7 changed files with 110 additions and 11 deletions
@@ -0,0 +1,47 @@
// 🌟 This was machine generated. Do not edit. 🌟
//
// Frame[0] {
// "typeVersion": [
// 0,
// 0
// ],
// "notices": [
// {
// "severity": "warning",
// "text": "Some logs may have been dropped by Adaptive Logs sampling"
// }
// ]
// }
// Name: Warnings
// Dimensions: 0 Fields by 0 Rows
// +
// +
//
//
// 🌟 This was machine generated. Do not edit. 🌟
{
"status": 200,
"frames": [
{
"schema": {
"name": "Warnings",
"meta": {
"typeVersion": [
0,
0
],
"notices": [
{
"severity": "warning",
"text": "Some logs may have been dropped by Adaptive Logs sampling"
}
]
},
"fields": []
},
"data": {
"values": []
}
}
]
}