Skip to content

Commit af17371

Browse files
authored
fix(issues): Temporarily remove LLM insights from issue details (#91776)
This is currently positioned in a promenent place and also seems to not ever be able to load data correctly. Removing it for now as a quick fix. Example issue: https://sentry.sentry.io/issues/6582590183/?project=6178942
1 parent 41f81ca commit af17371

File tree

1 file changed

+3
-26
lines changed

1 file changed

+3
-26
lines changed

static/app/views/issueDetails/groupEventDetails/groupEventDetailsContent.tsx

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Fragment, lazy, useMemo, useRef} from 'react';
1+
import {Fragment, useMemo, useRef} from 'react';
22
import {ClassNames} from '@emotion/react';
33
import styled from '@emotion/styled';
44

@@ -55,13 +55,12 @@ import {EventRRWebIntegration} from 'sentry/components/events/rrwebIntegration';
5555
import {DataSection} from 'sentry/components/events/styles';
5656
import {SuspectCommits} from 'sentry/components/events/suspectCommits';
5757
import {EventUserFeedback} from 'sentry/components/events/userFeedback';
58-
import LazyLoad from 'sentry/components/lazyLoad';
5958
import Placeholder from 'sentry/components/placeholder';
6059
import {IconChevron} from 'sentry/icons';
6160
import {t} from 'sentry/locale';
6261
import {space} from 'sentry/styles/space';
63-
import type {Entry, EntryException, Event, EventTransaction} from 'sentry/types/event';
64-
import {EntryType, EventOrGroupType} from 'sentry/types/event';
62+
import type {Entry, Event, EventTransaction} from 'sentry/types/event';
63+
import {EntryType} from 'sentry/types/event';
6564
import type {Group} from 'sentry/types/group';
6665
import {IssueType} from 'sentry/types/group';
6766
import type {Project} from 'sentry/types/project';
@@ -81,10 +80,6 @@ import {InterimSection} from 'sentry/views/issueDetails/streamline/interimSectio
8180
import {TraceDataSection} from 'sentry/views/issueDetails/traceDataSection';
8281
import {useHasStreamlinedUI} from 'sentry/views/issueDetails/utils';
8382

84-
const LLMMonitoringSection = lazy(
85-
() => import('sentry/components/events/interfaces/llm-monitoring/llmMonitoringSection')
86-
);
87-
8883
export interface EventDetailsContentProps {
8984
group: Group;
9085
project: Project;
@@ -200,24 +195,6 @@ export function EventDetailsContent({
200195
) : null}
201196
</InterimSection>
202197
)}
203-
{event.type === EventOrGroupType.ERROR &&
204-
organization.features.includes('insights-addon-modules') &&
205-
event?.entries
206-
?.filter((x): x is EntryException => x.type === EntryType.EXCEPTION)
207-
.flatMap(x => x.data.values ?? [])
208-
.some(({value}) => {
209-
const lowerText = value?.toLowerCase();
210-
return (
211-
lowerText &&
212-
(lowerText.includes('api key') || lowerText.includes('429')) &&
213-
(lowerText.includes('openai') ||
214-
lowerText.includes('anthropic') ||
215-
lowerText.includes('cohere') ||
216-
lowerText.includes('langchain'))
217-
);
218-
}) ? (
219-
<LazyLoad LazyComponent={LLMMonitoringSection} />
220-
) : null}
221198
{!hasStreamlinedUI && group.issueType === IssueType.UPTIME_DOMAIN_FAILURE && (
222199
<UptimeDataSection event={event} project={project} group={group} />
223200
)}

0 commit comments

Comments
 (0)