Просмотр исходного кода

chore(insights): Move Requests, Caches, and Queues into `/insights/` (#73004)

Continuing the move. Caches, Queues, HTTP are moved into `/insights/`.
Didn't need to make any changes other than moving files around and
updating paths
George Gritsouk 8 месяцев назад
Родитель
Сommit
67c50b719e

+ 2 - 2
static/app/components/sidebar/index.tsx

@@ -51,11 +51,11 @@ import useMedia from 'sentry/utils/useMedia';
 import useOrganization from 'sentry/utils/useOrganization';
 import useProjects from 'sentry/utils/useProjects';
 import {normalizeUrl} from 'sentry/utils/withDomainRequired';
+import {releaseLevelAsBadgeProps as CacheModuleBadgeProps} from 'sentry/views/insights/cache/settings';
+import {releaseLevelAsBadgeProps as QueuesModuleBadgeProps} from 'sentry/views/insights/queues/settings';
 import {ModuleName} from 'sentry/views/insights/types';
 import {releaseLevelAsBadgeProps as LLMModuleBadgeProps} from 'sentry/views/llmMonitoring/settings';
 import MetricsOnboardingSidebar from 'sentry/views/metrics/ddmOnboarding/sidebar';
-import {releaseLevelAsBadgeProps as CacheModuleBadgeProps} from 'sentry/views/performance/cache/settings';
-import {releaseLevelAsBadgeProps as QueuesModuleBadgeProps} from 'sentry/views/performance/queues/settings';
 import {
   MODULE_TITLES,
   useModuleTitle,

+ 7 - 8
static/app/routes.tsx

@@ -1487,19 +1487,21 @@ function buildRoutes() {
       </Route>
       <Route path={`${MODULE_BASE_URLS[ModuleName.HTTP]}/`}>
         <IndexRoute
-          component={make(() => import('sentry/views/performance/http/httpLandingPage'))}
+          component={make(
+            () => import('sentry/views/insights/http/views/httpLandingPage')
+          )}
         />
         <Route
           path="domains/"
           component={make(
-            () => import('sentry/views/performance/http/httpDomainSummaryPage')
+            () => import('sentry/views/insights/http/views/httpDomainSummaryPage')
           )}
         />
       </Route>
       <Route path={`${MODULE_BASE_URLS[ModuleName.CACHE]}/`}>
         <IndexRoute
           component={make(
-            () => import('sentry/views/performance/cache/cacheLandingPage')
+            () => import('sentry/views/insights/cache/views/cacheLandingPage')
           )}
         />
       </Route>
@@ -1540,16 +1542,13 @@ function buildRoutes() {
       <Route path={`${MODULE_BASE_URLS[ModuleName.QUEUE]}/`}>
         <IndexRoute
           component={make(
-            () => import('sentry/views/performance/queues/queuesLandingPage')
+            () => import('sentry/views/insights/queues/views/queuesLandingPage')
           )}
         />
         <Route
           path="destination/"
           component={make(
-            () =>
-              import(
-                'sentry/views/performance/queues/destinationSummary/destinationSummaryPage'
-              )
+            () => import('sentry/views/insights/queues/views/destinationSummaryPage')
           )}
         />
       </Route>

+ 1 - 1
static/app/views/performance/cache/charts/hitMissChart.tsx → static/app/views/insights/cache/components/charts/hitMissChart.tsx

@@ -1,10 +1,10 @@
 import type {Series} from 'sentry/types/echarts';
 import {formatPercentage} from 'sentry/utils/number/formatPercentage';
+import {CHART_HEIGHT} from 'sentry/views/insights/cache/settings';
 import {AVG_COLOR} from 'sentry/views/insights/colors';
 import Chart, {ChartType} from 'sentry/views/insights/common/components/chart';
 import ChartPanel from 'sentry/views/insights/common/components/chartPanel';
 import {DataTitles} from 'sentry/views/insights/common/views/spans/types';
-import {CHART_HEIGHT} from 'sentry/views/performance/cache/settings';
 
 type Props = {
   isLoading: boolean;

+ 1 - 1
static/app/views/performance/cache/charts/throughputChart.tsx → static/app/views/insights/cache/components/charts/throughputChart.tsx

@@ -1,11 +1,11 @@
 import type {Series} from 'sentry/types/echarts';
 import {RateUnit} from 'sentry/utils/discover/fields';
 import {formatRate} from 'sentry/utils/formatters';
+import {CHART_HEIGHT} from 'sentry/views/insights/cache/settings';
 import {THROUGHPUT_COLOR} from 'sentry/views/insights/colors';
 import Chart, {ChartType} from 'sentry/views/insights/common/components/chart';
 import ChartPanel from 'sentry/views/insights/common/components/chartPanel';
 import {getThroughputChartTitle} from 'sentry/views/insights/common/views/spans/types';
-import {CHART_HEIGHT} from 'sentry/views/performance/cache/settings';
 
 interface Props {
   isLoading: boolean;

+ 3 - 3
static/app/views/performance/cache/samplePanel/charts/transactionDurationChart.tsx → static/app/views/insights/cache/components/charts/transactionDurationChart.tsx

@@ -3,6 +3,9 @@ import type {EChartHighlightHandler, Series} from 'sentry/types/echarts';
 import {decodeScalar} from 'sentry/utils/queryString';
 import {MutableSearch} from 'sentry/utils/tokenizeSearch';
 import useLocationQuery from 'sentry/utils/url/useLocationQuery';
+import type {DataRow} from 'sentry/views/insights/cache/components/tables/spanSamplesTable';
+import {Referrer} from 'sentry/views/insights/cache/referrers';
+import {CHART_HEIGHT} from 'sentry/views/insights/cache/settings';
 import {AVG_COLOR} from 'sentry/views/insights/colors';
 import Chart, {ChartType} from 'sentry/views/insights/common/components/chart';
 import ChartPanel from 'sentry/views/insights/common/components/chartPanel';
@@ -10,9 +13,6 @@ import {useMetricsSeries} from 'sentry/views/insights/common/queries/useDiscover
 import {DataTitles} from 'sentry/views/insights/common/views/spans/types';
 import {useSampleScatterPlotSeries} from 'sentry/views/insights/common/views/spanSummaryPage/sampleList/durationChart/useSampleScatterPlotSeries';
 import type {MetricsQueryFilters} from 'sentry/views/insights/types';
-import {Referrer} from 'sentry/views/performance/cache/referrers';
-import {CHART_HEIGHT} from 'sentry/views/performance/cache/settings';
-import type {DataRow} from 'sentry/views/performance/cache/tables/spanSamplesTable';
 import {AverageValueMarkLine} from 'sentry/views/performance/charts/averageValueMarkLine';
 
 type Props = {

+ 6 - 6
static/app/views/performance/cache/samplePanel/samplePanel.tsx → static/app/views/insights/cache/components/samplePanel.tsx

@@ -24,6 +24,11 @@ import usePageFilters from 'sentry/utils/usePageFilters';
 import useProjects from 'sentry/utils/useProjects';
 import useRouter from 'sentry/utils/useRouter';
 import {normalizeUrl} from 'sentry/utils/withDomainRequired';
+import {CacheHitMissChart} from 'sentry/views/insights/cache/components/charts/hitMissChart';
+import {TransactionDurationChart} from 'sentry/views/insights/cache/components/charts/transactionDurationChart';
+import {SpanSamplesTable} from 'sentry/views/insights/cache/components/tables/spanSamplesTable';
+import {Referrer} from 'sentry/views/insights/cache/referrers';
+import {BASE_FILTERS} from 'sentry/views/insights/cache/settings';
 import DetailPanel from 'sentry/views/insights/common/components/detailPanel';
 import {getTimeSpentExplanation} from 'sentry/views/insights/common/components/tableCells/timeSpentCell';
 import {
@@ -38,6 +43,7 @@ import {
   DataTitles,
   getThroughputTitle,
 } from 'sentry/views/insights/common/views/spans/types';
+import {useDebouncedState} from 'sentry/views/insights/http/utils/useDebouncedState';
 import {
   MetricsFields,
   type MetricsQueryFilters,
@@ -49,12 +55,6 @@ import {
   SpanMetricsField,
   type SpanMetricsQueryFilters,
 } from 'sentry/views/insights/types';
-import {CacheHitMissChart} from 'sentry/views/performance/cache/charts/hitMissChart';
-import {Referrer} from 'sentry/views/performance/cache/referrers';
-import {TransactionDurationChart} from 'sentry/views/performance/cache/samplePanel/charts/transactionDurationChart';
-import {BASE_FILTERS} from 'sentry/views/performance/cache/settings';
-import {SpanSamplesTable} from 'sentry/views/performance/cache/tables/spanSamplesTable';
-import {useDebouncedState} from 'sentry/views/performance/http/useDebouncedState';
 import {MetricReadout} from 'sentry/views/performance/metricReadout';
 import * as ModuleLayout from 'sentry/views/performance/moduleLayout';
 import {useSpanFieldSupportedTags} from 'sentry/views/performance/utils/useSpanFieldSupportedTags';

+ 0 - 0
static/app/views/performance/cache/tables/cacheHitMissCell.tsx → static/app/views/insights/cache/components/tables/cacheHitMissCell.tsx


+ 2 - 3
static/app/views/performance/cache/tables/spanSamplesTable.tsx → static/app/views/insights/cache/components/tables/spanSamplesTable.tsx

@@ -12,13 +12,12 @@ import type {EventsMetaType} from 'sentry/utils/discover/eventView';
 import {getFieldRenderer} from 'sentry/utils/discover/fieldRenderers';
 import {useLocation} from 'sentry/utils/useLocation';
 import useOrganization from 'sentry/utils/useOrganization';
+import {CacheHitMissCell} from 'sentry/views/insights/cache/components/tables/cacheHitMissCell';
 import {renderHeadCell} from 'sentry/views/insights/common/components/tableCells/renderHeadCell';
 import {SpanIdCell} from 'sentry/views/insights/common/components/tableCells/spanIdCell';
 import type {SpanIndexedResponse} from 'sentry/views/insights/types';
 import {ModuleName, SpanIndexedField} from 'sentry/views/insights/types';
-import {CacheHitMissCell} from 'sentry/views/performance/cache/tables/cacheHitMissCell';
-
-import {TraceViewSources} from '../../newTraceDetails/traceMetadataHeader';
+import {TraceViewSources} from 'sentry/views/performance/newTraceDetails/traceMetadataHeader';
 
 type DataRowKeys =
   | SpanIndexedField.PROJECT

+ 0 - 0
static/app/views/performance/cache/tables/transactionCell.tsx → static/app/views/insights/cache/components/tables/transactionCell.tsx


+ 1 - 1
static/app/views/performance/cache/tables/transactionsTable.tsx → static/app/views/insights/cache/components/tables/transactionsTable.tsx

@@ -16,6 +16,7 @@ import {getFieldRenderer} from 'sentry/utils/discover/fieldRenderers';
 import {RATE_UNIT_TITLE, RateUnit, type Sort} from 'sentry/utils/discover/fields';
 import {useLocation} from 'sentry/utils/useLocation';
 import useOrganization from 'sentry/utils/useOrganization';
+import {TransactionCell} from 'sentry/views/insights/cache/components/tables/transactionCell';
 import {renderHeadCell} from 'sentry/views/insights/common/components/tableCells/renderHeadCell';
 import {QueryParameterNames} from 'sentry/views/insights/common/views/queryParameters';
 import {DataTitles} from 'sentry/views/insights/common/views/spans/types';
@@ -27,7 +28,6 @@ import {
   SpanMetricsField,
   type SpanMetricsResponse,
 } from 'sentry/views/insights/types';
-import {TransactionCell} from 'sentry/views/performance/cache/tables/transactionCell';
 
 const {CACHE_MISS_RATE, SPM, TIME_SPENT_PERCENTAGE} = SpanFunction;
 const {TRANSACTION_DURATION} = MetricsFields;

Некоторые файлы не были показаны из-за большого количества измененных файлов