import {t} from 'sentry/locale'; import {TraceIcons} from '../traceIcons'; import type {ParentAutogroupNode} from '../traceModels/parentAutogroupNode'; import type {SiblingAutogroupNode} from '../traceModels/siblingAutogroupNode'; import {AutogroupedTraceBar, makeTraceNodeBarColor} from '../traceRow/traceBar'; import { maybeFocusTraceRow, TRACE_COUNT_FORMATTER, TraceChildrenButton, TraceRowConnectors, type TraceRowProps, } from '../traceRow/traceRow'; export function TraceAutogroupedRow( props: TraceRowProps ) { return (
props.tabIndex === 0 ? maybeFocusTraceRow(r, props.node, props.previouslyFocusedNodeRef) : null } tabIndex={props.tabIndex} className={`Autogrouped TraceRow ${props.rowSearchClassName} ${props.node.hasErrors ? props.node.maxIssueSeverity : ''}`} onPointerDown={props.onRowClick} onKeyDown={props.onRowKeyDown} style={props.style} >
} status={props.node.fetchStatus} expanded={!props.node.expanded} onClick={props.onExpand} onDoubleClick={props.onExpandDoubleClick} > {TRACE_COUNT_FORMATTER.format(props.node.groupCount)}
{t('Autogrouped')} {props.node.value.autogrouped_by.op}
); }