import {useMemo} from 'react'; import {useTheme} from '@emotion/react'; import {IconGroup} from 'sentry/icons'; import {t} from 'sentry/locale'; import type {Organization} from 'sentry/types'; import {getTraceTabTitle} from 'sentry/views/performance/newTraceDetails/traceTabs'; import {Row} from 'sentry/views/performance/traceDetails/styles'; import { makeTraceNodeBarColor, type ParentAutogroupNode, type TraceTree, type TraceTreeNode, } from '../../traceTree'; import {IssueList} from './issues/issues'; import {TraceDrawerComponents} from './styles'; export function ParentAutogroupNodeDetails({ node, organization, onParentClick, }: { node: ParentAutogroupNode; onParentClick: (node: TraceTreeNode) => void; organization: Organization; }) { const theme = useTheme(); const issues = useMemo(() => { return [...node.errors, ...node.performance_issues]; }, [node.errors, node.performance_issues]); const parentTransaction = node.parent_transaction; return (
{t('Autogroup')}
{parentTransaction ? ( onParentClick(parentTransaction)}> {getTraceTabTitle(parentTransaction)} ) : null} {t( 'Chain of immediate and only children spans with the same operation as their parent.' )} {node.groupCount} {t('Span Operation')} : {node.value.op}
); }