parentAutogroup.tsx 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. import {IconGroup} from 'sentry/icons';
  2. import {t} from 'sentry/locale';
  3. import {Row} from 'sentry/views/performance/traceDetails/styles';
  4. import type {ParentAutogroupNode} from '../../traceTree';
  5. import {TraceDrawerComponents} from './styles';
  6. export function ParentAutogroupNodeDetails({node}: {node: ParentAutogroupNode}) {
  7. return (
  8. <TraceDrawerComponents.DetailContainer>
  9. <TraceDrawerComponents.IconTitleWrapper>
  10. <TraceDrawerComponents.IconBorder>
  11. <IconGroup color="blue300" size="md" />
  12. </TraceDrawerComponents.IconBorder>
  13. <div style={{fontWeight: 'bold'}}>{t('Autogroup')}</div>
  14. </TraceDrawerComponents.IconTitleWrapper>
  15. <TraceDrawerComponents.Table className="table key-value">
  16. <tbody>
  17. <Row title={t('Grouping Logic')}>
  18. {t(
  19. 'Chain of immediate and only children spans with the same operation as their parent.'
  20. )}
  21. </Row>
  22. <Row title={t('Group Count')}>{node.groupCount}</Row>
  23. <Row title={t('Grouping Key')}>
  24. {t('Span Operation')} : {node.value.op}
  25. </Row>
  26. </tbody>
  27. </TraceDrawerComponents.Table>
  28. </TraceDrawerComponents.DetailContainer>
  29. );
  30. }