1
- import { Fragment , lazy , useMemo , useRef } from 'react' ;
1
+ import { Fragment , useMemo , useRef } from 'react' ;
2
2
import { ClassNames } from '@emotion/react' ;
3
3
import styled from '@emotion/styled' ;
4
4
@@ -55,13 +55,12 @@ import {EventRRWebIntegration} from 'sentry/components/events/rrwebIntegration';
55
55
import { DataSection } from 'sentry/components/events/styles' ;
56
56
import { SuspectCommits } from 'sentry/components/events/suspectCommits' ;
57
57
import { EventUserFeedback } from 'sentry/components/events/userFeedback' ;
58
- import LazyLoad from 'sentry/components/lazyLoad' ;
59
58
import Placeholder from 'sentry/components/placeholder' ;
60
59
import { IconChevron } from 'sentry/icons' ;
61
60
import { t } from 'sentry/locale' ;
62
61
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' ;
65
64
import type { Group } from 'sentry/types/group' ;
66
65
import { IssueType } from 'sentry/types/group' ;
67
66
import type { Project } from 'sentry/types/project' ;
@@ -81,10 +80,6 @@ import {InterimSection} from 'sentry/views/issueDetails/streamline/interimSectio
81
80
import { TraceDataSection } from 'sentry/views/issueDetails/traceDataSection' ;
82
81
import { useHasStreamlinedUI } from 'sentry/views/issueDetails/utils' ;
83
82
84
- const LLMMonitoringSection = lazy (
85
- ( ) => import ( 'sentry/components/events/interfaces/llm-monitoring/llmMonitoringSection' )
86
- ) ;
87
-
88
83
export interface EventDetailsContentProps {
89
84
group : Group ;
90
85
project : Project ;
@@ -200,24 +195,6 @@ export function EventDetailsContent({
200
195
) : null }
201
196
</ InterimSection >
202
197
) }
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 }
221
198
{ ! hasStreamlinedUI && group . issueType === IssueType . UPTIME_DOMAIN_FAILURE && (
222
199
< UptimeDataSection event = { event } project = { project } group = { group } />
223
200
) }
0 commit comments