import {useMemo} from 'react'; import {useTheme} from '@emotion/react'; import {Button} from 'sentry/components/button'; import {IconGroup} from 'sentry/icons'; import {t, tct} 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 SiblingAutogroupNode} from '../../traceTree'; import {IssueList} from './issues/issues'; import {TraceDrawerComponents} from './styles'; export function SiblingAutogroupNodeDetails({ 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('5 or more sibling spans with the same operation and description.')} {node.groupCount} {tct('Span operation: [operation] and description: [description]', { operation: node.value.op, description: node.value.description, })}
); }