File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
packages/overlay/src/integrations/sentry/components/explore/traces/spans Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @spotlightjs/spotlight ' : minor
3+ ' @spotlightjs/electron ' : minor
4+ ' @spotlightjs/overlay ' : minor
5+ ' @spotlightjs/astro ' : minor
6+ ---
7+
8+ feat: Keep profile spans collapsed
Original file line number Diff line number Diff line change @@ -33,7 +33,11 @@ const SpanItem = ({
3333 const containerRef = useRef < HTMLLIElement > ( null ) ;
3434 const childrenCount = span . children ? span . children . length : 0 ;
3535 const [ isItemCollapsed , setIsItemCollapsed ] = useState (
36- ( ( span . transaction && totalTransactions > 1 ) || depth >= 10 || childrenCount > 10 ) && depth !== 1 ,
36+ ( ( span . transaction && totalTransactions > 1 ) ||
37+ depth >= 10 ||
38+ childrenCount > 10 ||
39+ span . tags ?. source === 'profile' ) &&
40+ depth !== 1 ,
3741 ) ;
3842 const [ isResizing , setIsResizing ] = useState ( false ) ;
3943
You can’t perform that action at this time.
0 commit comments