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.

fix(aio): explain the trace root empty state in plain language (#92971)

Bernat Torres1953d06ae332
diff --git a/products/ai_observability/frontend/AIObservabilityTraceScene.tsx b/products/ai_observability/frontend/AIObservabilityTraceScene.tsx
index 9ed092123efb..ba7bead1c4d3 100644
--- a/products/ai_observability/frontend/AIObservabilityTraceScene.tsx
+++ b/products/ai_observability/frontend/AIObservabilityTraceScene.tsx
@@ -1736,14 +1736,21 @@ const EventContent = React.memo(
<>
{isTopLevelTraceWithoutContent ? (
<InsightEmptyState
- heading="No top-level trace event"
+ heading="No trace-level input and output captured"
detail={
<>
- This trace doesn't have an associated <code>$ai_trace</code>{' '}
- event.
+ This trace's content is on the events in the tree. Select an
+ event to view its input and output.
<br />
- Click on individual generations in the tree to view their
- content.
+ To show a conversation here, capture a{' '}
+ <Link
+ to="https://posthog.com/docs/ai-observability/traces"
+ target="_blank"
+ >
+ <code>$ai_trace</code> event
+ </Link>{' '}
+ with <code>$ai_input_state</code> and{' '}
+ <code>$ai_output_state</code> properties.
</>
}
/>