Browse Source

chore(features): Replace performance-extraneous-spans-poc (#38309)

Evan Purkhiser 2 years ago
parent
commit
0b1c78e575

+ 1 - 3
src/sentry/api/endpoints/organization_events_spans_count_histogram.py

@@ -34,9 +34,7 @@ class OrganizationEventsSpansCountHistogramEndpoint(OrganizationEventsV2Endpoint
     private = True
 
     def has_feature(self, organization, request):
-        return features.has(
-            "organizations:performance-extraneous-spans-poc", organization, actor=request.user
-        )
+        return features.has("organizations:performance-issues", organization, actor=request.user)
 
     def get(self, request: Request, organization) -> Response:
         if not self.has_feature(organization, request):

+ 2 - 2
static/app/components/events/eventEntry.tsx

@@ -154,7 +154,7 @@ function EventEntry({
         />
       );
     case EntryType.SPANTREE:
-      if (!organization.features?.includes('performance-extraneous-spans-poc')) {
+      if (!organization.features?.includes('performance-issues')) {
         return null;
       }
 
@@ -172,7 +172,7 @@ function EventEntry({
         />
       );
     case EntryType.PERFORMANCE:
-      if (!organization.features?.includes('performance-extraneous-spans-poc')) {
+      if (!organization.features?.includes('performance-issues')) {
         return null;
       }
 

+ 1 - 1
static/app/views/organizationGroupDetails/groupDetails.tsx

@@ -205,7 +205,7 @@ class GroupDetails extends Component<Props, State> {
 
       // add extra perf issue specific entries like span tree and duration and span count charts
       if (
-        organization.features.includes('performance-extraneous-spans-poc') &&
+        organization.features.includes('performance-issues') &&
         event.contexts.performance_issue
       ) {
         const updatedEvent = this.addPerformanceSpecificEntries(event);

+ 1 - 1
tests/snuba/api/endpoints/test_organization_events_spans_count_histogram.py

@@ -9,7 +9,7 @@ from sentry.utils.samples import load_data
 
 
 class OrganizationEventsSpansHistogramEndpointTest(APITestCase, SnubaTestCase):
-    FEATURES = ["organizations:performance-extraneous-spans-poc"]
+    FEATURES = ["organizations:performance-issues"]
     URL = "sentry-api-0-organization-events-spans-count-histogram"
 
     def setUp(self):