Skip to content

: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.

feat(query-performance): show full error in tooltip on hover (#65694)

Juraj Majerik8b8672255f6a
diff --git a/frontend/src/scenes/instance/QueryPerformance/QueryPerformance.tsx b/frontend/src/scenes/instance/QueryPerformance/QueryPerformance.tsx
index 58ed6fc008bd..8ca33bc8f11b 100644
--- a/frontend/src/scenes/instance/QueryPerformance/QueryPerformance.tsx
+++ b/frontend/src/scenes/instance/QueryPerformance/QueryPerformance.tsx
@@ -9,6 +9,7 @@ import { LemonSwitch } from 'lib/lemon-ui/LemonSwitch'
import { LemonTable, LemonTableColumns } from 'lib/lemon-ui/LemonTable'
import { LemonTag } from 'lib/lemon-ui/LemonTag'
import { Link } from 'lib/lemon-ui/Link'
+import { Tooltip } from 'lib/lemon-ui/Tooltip'
import { SceneExport } from 'scenes/sceneTypes'
import { userLogic } from 'scenes/userLogic'
@@ -237,10 +238,12 @@ export function QueryPerformance(): JSX.Element {
const firstLine = item.exception.split('\n')[0]
const preview = firstLine.length > 60 ? firstLine.slice(0, 60) + '…' : firstLine
return (
- <div className="flex items-center gap-1 min-w-0">
- <LemonTag type="danger">Error</LemonTag>
- <span className="font-mono text-xs text-danger truncate">{preview}</span>
- </div>
+ <Tooltip title={<span className="font-mono text-xs whitespace-pre-wrap">{item.exception}</span>}>
+ <div className="flex items-center gap-1 min-w-0">
+ <LemonTag type="danger">Error</LemonTag>
+ <span className="font-mono text-xs text-danger truncate">{preview}</span>
+ </div>
+ </Tooltip>
)
},
},