@@ -844,8 +844,7 @@ def get(self, request: Request, organization: Organization, trace_id: str) -> Ht
844844 return Response (status = 404 )
845845
846846 try :
847- # The trace view isn't useful without global views, so skipping the check here
848- snuba_params = self .get_snuba_params (request , organization , check_global_views = False )
847+ snuba_params = self .get_snuba_params (request , organization )
849848 except NoProjects :
850849 return Response (status = 404 )
851850
@@ -1024,9 +1023,7 @@ def serialize(
10241023 current_generation = 0
10251024 break
10261025
1027- snuba_params = self .get_snuba_params (
1028- self .request , self .request .organization , check_global_views = False
1029- )
1026+ snuba_params = self .get_snuba_params (self .request , self .request .organization )
10301027 if current_generation is None :
10311028 for root in roots :
10321029 # We might not be necessarily connected to the root if we're on an orphan event
@@ -1178,9 +1175,7 @@ def serialize(
11781175 parent_events : dict [str , TraceEvent ] = {}
11791176 results_map : dict [str | None , list [TraceEvent ]] = defaultdict (list )
11801177 to_check : Deque [SnubaTransaction ] = deque ()
1181- snuba_params = self .get_snuba_params (
1182- self .request , self .request .organization , check_global_views = False
1183- )
1178+ snuba_params = self .get_snuba_params (self .request , self .request .organization )
11841179 # The root of the orphan tree we're currently navigating through
11851180 orphan_root : SnubaTransaction | None = None
11861181 if roots :
@@ -1484,8 +1479,7 @@ def get(self, request: Request, organization: Organization, trace_id: str) -> Ht
14841479 return Response (status = 404 )
14851480
14861481 try :
1487- # The trace meta isn't useful without global views, so skipping the check here
1488- snuba_params = self .get_snuba_params (request , organization , check_global_views = False )
1482+ snuba_params = self .get_snuba_params (request , organization )
14891483 except NoProjects :
14901484 return Response (status = 404 )
14911485
0 commit comments