|
@@ -22,7 +22,6 @@ import type {Organization} from 'sentry/types';
|
|
|
import type {EventTransaction} from 'sentry/types/event';
|
|
|
import {assert} from 'sentry/types/utils';
|
|
|
import {defined} from 'sentry/utils';
|
|
|
-import {trackAnalytics} from 'sentry/utils/analytics';
|
|
|
import EventView from 'sentry/utils/discover/eventView';
|
|
|
import {generateEventSlug} from 'sentry/utils/discover/urls';
|
|
|
import getDynamicText from 'sentry/utils/getDynamicText';
|
|
@@ -105,19 +104,10 @@ function NewTraceDetailsSpanDetail(props: SpanDetailProps) {
|
|
|
);
|
|
|
|
|
|
useLayoutEffect(() => {
|
|
|
- const {span, organization, event} = props;
|
|
|
- if (!('op' in span)) {
|
|
|
+ if (!('op' in props.span)) {
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- trackAnalytics('performance_views.event_details.open_span_details', {
|
|
|
- organization,
|
|
|
- operation: span.op ?? 'undefined',
|
|
|
- origin: span.origin ?? 'undefined',
|
|
|
- project_platform: event.platform ?? 'undefined',
|
|
|
- });
|
|
|
- // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
|
- }, []);
|
|
|
+ }, [props.span]);
|
|
|
|
|
|
function renderTraversalButton(): React.ReactNode {
|
|
|
if (!props.childTransactions) {
|