import {useMemo} from 'react'; import {useTheme} from '@emotion/react'; import {Button} from 'sentry/components/button'; import {IconGroup} from 'sentry/icons'; import {t} from 'sentry/locale'; import type {TraceTreeNodeDetailsProps} from 'sentry/views/performance/newTraceDetails/traceDrawer/tabs/traceTreeNodeDetails'; import {getTraceTabTitle} from 'sentry/views/performance/newTraceDetails/traceTabs'; import {Row} from 'sentry/views/performance/traceDetails/styles'; import {makeTraceNodeBarColor, type ParentAutogroupNode} from '../../traceTree'; import {IssueList} from './issues/issues'; import {TraceDrawerComponents} from './styles'; export function ParentAutogroupNodeDetails({ node, organization, onParentClick, scrollToNode, }: TraceTreeNodeDetailsProps) { 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}
); }