Skip to content

Commit e75f6cd

Browse files
committed
👔 Conditionally call trace explorer ai setup endpoint and move calling of hook
1 parent 2819594 commit e75f6cd

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

static/app/views/explore/spans/content.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import {
2323
} from 'sentry/views/explore/contexts/pageParamsContext';
2424
import {TraceItemAttributeProvider} from 'sentry/views/explore/contexts/traceItemAttributeContext';
2525
import {useGetSavedQuery} from 'sentry/views/explore/hooks/useGetSavedQueries';
26-
import {useTraceExploreAiQuerySetup} from 'sentry/views/explore/hooks/useTraceExploreAiQuerySetup';
2726
import {SavedQueryEditMenu} from 'sentry/views/explore/savedQueryEditMenu';
2827
import {SpansTabContent, SpansTabOnboarding} from 'sentry/views/explore/spans/spansTab';
2928
import {
@@ -70,8 +69,6 @@ export function ExploreContent() {
7069
}
7170

7271
function SpansTabWrapper({children}: SpansTabContextProps) {
73-
useTraceExploreAiQuerySetup();
74-
7572
return (
7673
<SpansTabTourProvider>
7774
<SpansTabTourTrigger />

static/app/views/explore/spans/spansTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ function SpanTabSearchSection({datePageFilterProps}: SpanTabSearchSectionProps)
187187
const mode = useExploreMode();
188188
const fields = useExploreFields();
189189
const query = useExploreQuery();
190-
const organization = useOrganization();
191190
const setExplorePageParams = useSetExplorePageParams();
192191

192+
const organization = useOrganization();
193193
const areAiFeaturesAllowed =
194194
!organization?.hideAiFeatures && organization.features.includes('gen-ai-features');
195195

0 commit comments

Comments
 (0)