@@ -13,7 +13,6 @@ import useOrganization from 'sentry/utils/useOrganization';
13
13
import useProjects from 'sentry/utils/useProjects' ;
14
14
import { useRelease } from 'sentry/utils/useRelease' ;
15
15
import { useSpansIndexed } from 'sentry/views/insights/common/queries/useDiscover' ;
16
- import { useEventDetails } from 'sentry/views/insights/common/queries/useEventDetails' ;
17
16
import { useFullSpanFromTrace } from 'sentry/views/insights/common/queries/useFullSpanFromTrace' ;
18
17
import { useInsightsEap } from 'sentry/views/insights/common/utils/useEap' ;
19
18
import {
@@ -62,7 +61,6 @@ export function DatabaseSpanDescription({
62
61
limit : 1 ,
63
62
fields : [
64
63
SpanIndexedField . PROJECT_ID ,
65
- SpanIndexedField . TRANSACTION_ID , // TODO: remove this with `useInsightsEap`, it's only needed to get the full event when eap is off
66
64
SpanIndexedField . SPAN_DESCRIPTION ,
67
65
SpanIndexedField . DB_SYSTEM ,
68
66
SpanIndexedField . CODE_FILEPATH ,
@@ -81,11 +79,6 @@ export function DatabaseSpanDescription({
81
79
82
80
const project = projects . find ( p => p . id === indexedSpan ?. project_id ?. toString ( ) ) ;
83
81
84
- const { data : eventDetailsData } = useEventDetails ( {
85
- eventId : indexedSpan ?. [ 'transaction.id' ] ,
86
- projectSlug : project ?. slug ,
87
- } ) ;
88
-
89
82
const { data : release } = useRelease ( {
90
83
orgSlug : organization . slug ,
91
84
projectSlug : project ?. slug ?? '' ,
@@ -101,13 +94,11 @@ export function DatabaseSpanDescription({
101
94
}
102
95
: undefined ;
103
96
104
- const event = useEap
105
- ? {
106
- platform : indexedSpan ?. platform ,
107
- release,
108
- sdk,
109
- }
110
- : eventDetailsData ;
97
+ const event = {
98
+ platform : indexedSpan ?. platform ,
99
+ release,
100
+ sdk,
101
+ } ;
111
102
112
103
// NOTE: We only need this for `span.data`! If this info existed in indexed spans, we could skip it
113
104
const { data : rawSpan , isFetching : isRawSpanLoading } = useFullSpanFromTrace (
0 commit comments