mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 00:55:47 -06:00
Explore: Trigger logs sample only when user click to see it (#62226)
LogSamples: Trigger log samples on user action
This commit is contained in:
parent
4bcd3b41ec
commit
8246fc64fa
@ -17,7 +17,7 @@ export const loadSupplementaryQueries = (): SupplementaryQueries => {
|
||||
// We default to true for all supp queries
|
||||
let supplementaryQueries: SupplementaryQueries = {
|
||||
[SupplementaryQueryType.LogsVolume]: { enabled: true },
|
||||
[SupplementaryQueryType.LogsSample]: { enabled: true },
|
||||
[SupplementaryQueryType.LogsSample]: { enabled: false },
|
||||
};
|
||||
|
||||
for (const type of supplementaryQueryTypes) {
|
||||
@ -36,6 +36,11 @@ export const loadSupplementaryQueries = (): SupplementaryQueries => {
|
||||
}
|
||||
}
|
||||
|
||||
// We want to skip LogsSample and default it to false for now to trigger it only on user action
|
||||
if (type === SupplementaryQueryType.LogsSample) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Only if "false" value in local storage, we disable it
|
||||
const shouldBeEnabled = store.get(getSupplementaryQuerySettingKey(type));
|
||||
if (shouldBeEnabled === 'false') {
|
||||
|
Loading…
Reference in New Issue
Block a user