diff --git a/static/app/views/explore/hooks/useAnalytics.tsx b/static/app/views/explore/hooks/useAnalytics.tsx index fd2a26586035bc..d0bc0a1ddee089 100644 --- a/static/app/views/explore/hooks/useAnalytics.tsx +++ b/static/app/views/explore/hooks/useAnalytics.tsx @@ -1,11 +1,11 @@ import {useEffect} from 'react'; import type {Confidence, Organization} from 'sentry/types/organization'; -import {trackAnalytics} from 'sentry/utils/analytics'; +// import {trackAnalytics} from 'sentry/utils/analytics'; import type {DiscoverDatasets} from 'sentry/utils/discover/types'; import type {UseApiQueryResult} from 'sentry/utils/queryClient'; import type RequestError from 'sentry/utils/requestError/requestError'; -import {MutableSearch} from 'sentry/utils/tokenizeSearch'; +// import {MutableSearch} from 'sentry/utils/tokenizeSearch'; import type {Visualize} from 'sentry/views/explore/contexts/pageParamsContext/visualizes'; import {usePerformanceSubscriptionDetails} from 'sentry/views/performance/newTraceDetails/traceTypeWarnings/usePerformanceSubscriptionDetails'; @@ -44,26 +44,26 @@ export function useAnalytics({ return; } - const search = new MutableSearch(userQuery); - const params = { - organization, - columns, - columns_count: columns.filter(Boolean).length, - confidences, - dataset, - query_status: resultStatus, - result_length: resultLength || 0, - result_missing_root: resultMissingRoot || 0, - result_mode: resultMode, - user_queries: search.formatString(), - user_queries_count: search.tokens.length, - visualizes, - visualizes_count: visualizes.length, - title, - has_exceeded_performance_usage_limit: hasExceededPerformanceUsageLimit, - }; + // const search = new MutableSearch(userQuery); + // const params = { + // organization, + // columns, + // columns_count: columns.filter(Boolean).length, + // confidences, + // dataset, + // query_status: resultStatus, + // result_length: resultLength || 0, + // result_missing_root: resultMissingRoot || 0, + // result_mode: resultMode, + // user_queries: search.formatString(), + // user_queries_count: search.tokens.length, + // visualizes, + // visualizes_count: visualizes.length, + // title, + // has_exceeded_performance_usage_limit: hasExceededPerformanceUsageLimit, + // }; - trackAnalytics('trace.explorer.metadata', params); + // trackAnalytics('trace.explorer.metadata', params); }, [ organization, resultLength,