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

ref(traces): Move traces url and remove breadcrumb (#72141)

### Summary
This changes the traces folder location, updates the url, and removes
the breadcrumb as it's no longer under performance.
Kev 9 месяцев назад
Родитель
Сommit
b3dd62f2d9

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

@@ -390,7 +390,7 @@ function Sidebar() {
       <SidebarItem
         {...sidebarItemProps}
         label={<GuideAnchor target="traces">{t('Traces')}</GuideAnchor>}
-        to={`/organizations/${organization.slug}/performance/traces/`}
+        to={`/organizations/${organization.slug}/traces/`}
         id="performance-trace-explorer"
         icon={<SubitemDot collapsed />}
         isNew

+ 9 - 3
static/app/routes.tsx

@@ -1609,9 +1609,6 @@ function buildRoutes() {
         path="trends/"
         component={make(() => import('sentry/views/performance/trends'))}
       />
-      <Route path="traces/">
-        <IndexRoute component={make(() => import('sentry/views/performance/traces'))} />
-      </Route>
       <Route path="summary/">
         <IndexRoute
           component={make(
@@ -1697,6 +1694,14 @@ function buildRoutes() {
     </Route>
   );
 
+  const tracesRoutes = (
+    <Route
+      path="/traces/"
+      component={make(() => import('sentry/views/traces'))}
+      withOrgPath
+    />
+  );
+
   const userFeedbackRoutes = (
     <Route
       path="/user-feedback/"
@@ -2081,6 +2086,7 @@ function buildRoutes() {
       {statsRoutes}
       {discoverRoutes}
       {performanceRoutes}
+      {tracesRoutes}
       {insightsRoutes}
       {llmMonitoringRoutes}
       {profilingRoutes}

+ 1 - 1
static/app/views/metrics/widgetDetails.tsx

@@ -29,7 +29,7 @@ import {CodeLocations} from 'sentry/views/metrics/codeLocations';
 import type {FocusAreaProps} from 'sentry/views/metrics/context';
 import {useMetricsContext} from 'sentry/views/metrics/context';
 import {extendQueryWithGroupBys} from 'sentry/views/metrics/utils';
-import {generateTracesRouteWithQuery} from 'sentry/views/performance/traces/utils';
+import {generateTracesRouteWithQuery} from 'sentry/views/traces/utils';
 
 enum Tab {
   SAMPLES = 'samples',

+ 1 - 1
static/app/views/performance/newTraceDetails/traceDrawer/tabs/trace/generalInfo.tsx

@@ -18,7 +18,7 @@ import type {UseApiQueryResult} from 'sentry/utils/queryClient';
 import type RequestError from 'sentry/utils/requestError/requestError';
 import {useParams} from 'sentry/utils/useParams';
 import {normalizeUrl} from 'sentry/utils/withDomainRequired';
-import {SpanTimeRenderer} from 'sentry/views/performance/traces/fieldRenderers';
+import {SpanTimeRenderer} from 'sentry/views/traces/fieldRenderers';
 
 import {isTraceNode} from '../../../guards';
 import type {TraceMetaQueryResults} from '../../../traceApi/useTraceMeta';

+ 1 - 1
static/app/views/performance/newTraceDetails/traceModels/traceTree.tsx

@@ -24,8 +24,8 @@ import {
 import type {Vital} from 'sentry/utils/performance/vitals/types';
 import type {ReplayRecord} from 'sentry/views/replays/types';
 
+import {getStylingSliceName} from '../../../traces/utils';
 import {isRootTransaction} from '../../traceDetails/utils';
-import {getStylingSliceName} from '../../traces/utils';
 import {
   isAutogroupedNode,
   isMissingInstrumentationNode,

+ 0 - 0
static/app/views/performance/traces/content.tsx → static/app/views/traces/content.tsx


+ 0 - 0
static/app/views/performance/traces/data.tsx → static/app/views/traces/data.tsx


+ 0 - 0
static/app/views/performance/traces/fieldRenderers.tsx → static/app/views/traces/fieldRenderers.tsx


+ 0 - 8
static/app/views/performance/traces/index.tsx → static/app/views/traces/index.tsx

@@ -10,24 +10,16 @@ import PageFiltersContainer from 'sentry/components/organizations/pageFilters/co
 import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
 import {t} from 'sentry/locale';
 import useOrganization from 'sentry/utils/useOrganization';
-import {normalizeUrl} from 'sentry/utils/withDomainRequired';
 
 import {Content} from './content';
 
 function TraceExplorerLandingPage() {
-  const organization = useOrganization();
-
   return (
     <Fragment>
       <Layout.Header>
         <Layout.HeaderContent>
           <Breadcrumbs
             crumbs={[
-              {
-                label: 'Performance',
-                to: normalizeUrl(`/organizations/${organization.slug}/performance/`),
-                preservePageFilters: true,
-              },
               {
                 label: 'Traces',
               },

+ 0 - 0
static/app/views/performance/traces/tracesChart.tsx → static/app/views/traces/tracesChart.tsx


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