|
@@ -7,7 +7,8 @@ import {Client} from 'sentry/api';
|
|
|
import Pagination, {CursorHandler} from 'sentry/components/pagination';
|
|
|
import {t} from 'sentry/locale';
|
|
|
import {Organization} from 'sentry/types';
|
|
|
-import {metric, trackAnalyticsEvent} from 'sentry/utils/analytics';
|
|
|
+import {metric} from 'sentry/utils/analytics';
|
|
|
+import trackAdvancedAnalyticsEvent from 'sentry/utils/analytics/trackAdvancedAnalyticsEvent';
|
|
|
import {CustomMeasurementsContext} from 'sentry/utils/customMeasurements/customMeasurementsContext';
|
|
|
import {TableData} from 'sentry/utils/discover/discoverQuery';
|
|
|
import EventView, {
|
|
@@ -186,16 +187,12 @@ class Table extends PureComponent<TableProps, TableState> {
|
|
|
pageLinks: null,
|
|
|
tableData: null,
|
|
|
});
|
|
|
-
|
|
|
- trackAnalyticsEvent({
|
|
|
- eventKey: 'discover_search.failed',
|
|
|
- eventName: 'Discover Search: Failed',
|
|
|
- organization_id: this.props.organization.id,
|
|
|
+ trackAdvancedAnalyticsEvent('discover_search.failed', {
|
|
|
+ organization: this.props.organization,
|
|
|
search_type: 'events',
|
|
|
search_source: 'discover_search',
|
|
|
error: message,
|
|
|
});
|
|
|
-
|
|
|
setError(message, err.status);
|
|
|
});
|
|
|
};
|