siblingAutogroup.tsx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import {IconGroup} from 'sentry/icons';
  2. import {t, tct} from 'sentry/locale';
  3. import {Row} from 'sentry/views/performance/traceDetails/styles';
  4. import type {SiblingAutogroupNode} from '../../traceTree';
  5. import {TraceDrawerComponents} from './styles';
  6. export function SiblingAutogroupNodeDetails({node}: {node: SiblingAutogroupNode}) {
  7. return (
  8. <TraceDrawerComponents.DetailContainer>
  9. <TraceDrawerComponents.IconTitleWrapper>
  10. <TraceDrawerComponents.IconBorder>
  11. <IconGroup color="blue300" />
  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('5 or more sibling spans with the same operation and description.')}
  19. </Row>
  20. <Row title={t('Group Count')}>{node.groupCount}</Row>
  21. <Row title={t('Grouping Key')}>
  22. {tct('Span operation: [operation] and description: [description]', {
  23. operation: node.value.op,
  24. description: node.value.description,
  25. })}
  26. </Row>
  27. </tbody>
  28. </TraceDrawerComponents.Table>
  29. </TraceDrawerComponents.DetailContainer>
  30. );
  31. }