
PostHog has launched automatic clustering for LLM traces, a new capability designed to help teams analyze large volumes of trace data more efficiently. The feature turns complex traces into structured summaries, groups similar traces into clusters, and applies labels to help users identify recurring patterns and issues.
Key details from the announcement include:
- Raw trace JSON is converted into an ASCII tree with line numbers so it is more readable for language models.
- Large traces are compressed by keeping headers and line numbers while dropping every Nth line from the body.
- Summarization uses GPT-4.1 nano in structured output mode for faster, lower-cost, and parseable results.
- PostHog embeds the summaries rather than using raw traces or a retrieval-based approach, aiming to reduce noise and complexity.
- Dimensionality reduction is handled with UMAP twice: once for clustering and once for visualization.
- Clusters are identified with HDBSCAN, which groups dense regions of similar trace summaries.
- Cluster labels are generated with LLMs, first in bulk and then refined for less clear groupings.
For small business owners and builders, this could make observability data more useful without requiring manual review of every trace. It may help teams spot product issues, user behavior patterns, or failure modes faster when building AI features.
Sources
1 checkedHow we cover tool news: Create With's tool desk drafts these reports with AI from the sources listed above and checks them against those sources before publishing.





