:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(tracing): highlight active span (#63085)
Jon McCallumabea85cb631a
diff --git a/products/tracing/frontend/TraceWaterfallView.tsx b/products/tracing/frontend/TraceWaterfallView.tsxindex 8a66efb906fa..f24a7a359d0d 100644--- a/products/tracing/frontend/TraceWaterfallView.tsx+++ b/products/tracing/frontend/TraceWaterfallView.tsx@@ -287,8 +287,12 @@ function WaterfallRow({return (<div><div- className={`flex items-stretch cursor-pointer transition-colors ${- isSelected ? 'bg-surface-primary-active' : 'hover:bg-surface-primary-hover'+ // The 3px left border is always reserved (transparent when unselected) so selecting+ // a span shows an accent bar without shifting the row content.+ className={`flex items-stretch cursor-pointer transition-colors border-l-[3px] ${+ isSelected+ ? 'bg-surface-primary-active border-l-accent'+ : 'border-l-transparent hover:bg-surface-primary-hover'}`}// eslint-disable-next-line react/forbid-dom-propsstyle={{ minHeight: ROW_HEIGHT }}@@ -317,7 +321,9 @@ function WaterfallRow({)}<Tooltip title={span.name}><span- className={`text-xs truncate ${isError ? 'text-danger font-semibold' : 'font-medium'} ${isUnmatched ? 'opacity-40' : ''}`}+ className={`text-xs truncate ${isError ? 'text-danger' : ''} ${+ isSelected || isError ? 'font-semibold' : 'font-medium'+ } ${isUnmatched ? 'opacity-40' : ''}`}>{span.name}</span>