mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Logs: Remove grafana_explore_logs_result_displayed
event (#91172)
This commit is contained in:
parent
2362e79e4e
commit
270b01f883
@ -22,9 +22,8 @@ import {
|
||||
toLegacyResponseData,
|
||||
} from '@grafana/data';
|
||||
import { combinePanelData } from '@grafana/o11y-ds-frontend';
|
||||
import { config, getDataSourceSrv, reportInteraction } from '@grafana/runtime';
|
||||
import { config, getDataSourceSrv } from '@grafana/runtime';
|
||||
import { DataQuery } from '@grafana/schema';
|
||||
import store from 'app/core/store';
|
||||
import {
|
||||
buildQueryTransaction,
|
||||
ensureQueries,
|
||||
@ -55,7 +54,6 @@ import { ExploreState, QueryOptions, SupplementaryQueries } from 'app/types/expl
|
||||
import { notifyApp } from '../../../core/actions';
|
||||
import { createErrorNotification } from '../../../core/copy/appNotification';
|
||||
import { runRequest } from '../../query/state/runRequest';
|
||||
import { visualisationTypeKey } from '../Logs/utils/logs';
|
||||
import { decorateData, decorateWithLogsResult } from '../utils/decorators';
|
||||
import {
|
||||
getSupplementaryQueryProvider,
|
||||
@ -656,15 +654,6 @@ export const runQueries = createAsyncThunk<void, RunQueriesOptions>(
|
||||
newQuerySubscription = newQuerySource.subscribe({
|
||||
next(data) {
|
||||
const exploreState = getState().explore.panes[exploreId];
|
||||
if (data.logsResult !== null && data.state === LoadingState.Done) {
|
||||
reportInteraction('grafana_explore_logs_result_displayed', {
|
||||
datasourceType: datasourceInstance.type,
|
||||
visualisationType:
|
||||
exploreState?.panelsState?.logs?.visualisationType ?? store.get(visualisationTypeKey) ?? 'N/A',
|
||||
length: data.logsResult.rows.length,
|
||||
defaultVisualisationType: config.featureToggles.logsExploreTableDefaultVisualization ? 'table' : 'logs',
|
||||
});
|
||||
}
|
||||
dispatch(queryStreamUpdatedAction({ exploreId, response: data }));
|
||||
|
||||
// Keep scanning for results if this was the last scanning transaction
|
||||
|
Loading…
Reference in New Issue
Block a user