Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { Button, Callout, Flex, Spinner, Table, Text } from "@radix-ui/themes";
import { ANALYTICS_EVENTS } from "@shared/types/analytics";
import { track } from "@utils/analytics";

const DOCS_URL = "https://posthog.com/docs/llm-analytics";
const DOCS_URL = "https://posthog.com/docs/ai-observability";

function generateSuggestions(data: SpendAnalysisResponse): string[] {
const suggestions: string[] = [];
Expand Down Expand Up @@ -254,7 +254,7 @@ function FooterLinks({ data }: { data: SpendAnalysisResponse }) {
rel="noreferrer"
className="text-(--accent-11) underline"
>
PostHog AI Observability
PostHog AI observability
</a>{" "}
in your own project for the full slice-and-dice experience.
</Text>
Expand Down Expand Up @@ -363,7 +363,7 @@ export function TokenSpendAnalysisBanner() {
<Callout.Text>
<Flex direction="column" gap="2">
<Text className="font-medium text-sm">
Analyse your token usage with PostHog AI Observability
Analyse your token usage with PostHog AI observability
</Text>
<Text className="text-(--gray-11) text-[13px]">
See where your spend goes — by product, tool, and model — over the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ describe("buildAnalysisPrompt", () => {
it("instructs the agent not to query external data", () => {
const prompt = buildAnalysisPrompt(makeResponse());
expect(prompt).toContain(
"do **not** try to query PostHog LLM analytics or any external data source",
"do **not** try to query PostHog AI observability or any external data source",
);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export function buildAnalysisPrompt(data: SpendAnalysisResponse): string {

return `Here is my PostHog Code LLM spend for the last ${windowDays}. Help me understand what's driving the cost and what concrete changes I should make to reduce it.

Work only from the tables below — do **not** try to query PostHog LLM analytics or any external data source. The numbers here are everything you have. Rank advice by impact, lead with the biggest lever, and keep each suggestion concrete and actionable.
Work only from the tables below — do **not** try to query PostHog AI observability or any external data source. The numbers here are everything you have. Rank advice by impact, lead with the biggest lever, and keep each suggestion concrete and actionable.

## My spend

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const EvaluationsSection = memo(function EvaluationsSection({
<Flex direction="column" gap="1">
<Flex align="center" gap="2">
<Text className="font-medium text-(--gray-12) text-sm">
LLM Analytics
AI observability
</Text>
<Tooltip content="This is only visible to staff users of PostHog">
<Badge color="blue">Internal</Badge>
Expand All @@ -189,21 +189,21 @@ export const EvaluationsSection = memo(function EvaluationsSection({
</Text>
<Text className="text-(--gray-11) text-[13px]">
<a
href="https://posthog.com/docs/llm-analytics"
href="https://posthog.com/docs/ai-observability"
target="_blank"
rel="noopener noreferrer"
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
window.open(
"https://posthog.com/docs/llm-analytics",
"https://posthog.com/docs/ai-observability",
"_blank",
"noopener",
);
}}
className="inline-flex items-center gap-[4px] text-(--accent-11) no-underline"
>
Learn about LLM Analytics
Learn about AI observability
<ArrowSquareOutIcon size={11} />
</a>
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function signalCardSourceLine(signal: {
return "Session replay · Session analysis cluster";
}
if (source_product === "llm_analytics" && source_type === "evaluation") {
return "LLM analytics · Evaluation";
return "AI observability · Evaluation";
}
if (source_product === "zendesk" && source_type === "ticket") {
return "Zendesk · Ticket";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const SOURCE_PRODUCT_OPTIONS: {
},
{
value: "llm_analytics",
label: "LLM analytics",
label: "AI observability",
icon: <BrainIcon size={14} />,
},
{ value: "github", label: "GitHub", icon: <GithubLogoIcon size={14} /> },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const SOURCE_PRODUCT_META: Record<
llm_analytics: {
Icon: BrainIcon,
color: "var(--purple-9)",
label: "LLM analytics",
label: "AI observability",
},
github: {
Icon: GithubLogoIcon,
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/features/inbox/components/FilterSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function useStatusDotColors(): Record<string, string> {
const SOURCE_PRODUCT_OPTIONS: { value: SourceProduct; label: string }[] = [
{ value: "session_replay", label: "Session replay" },
{ value: "error_tracking", label: "Error tracking" },
{ value: "llm_analytics", label: "LLM analytics" },
{ value: "llm_analytics", label: "AI observability" },
{ value: "github", label: "GitHub" },
{ value: "linear", label: "Linear" },
{ value: "zendesk", label: "Zendesk" },
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/features/inbox/components/SignalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function sourceLine(signal: Signal): string {
if (source_product === "session_replay" && source_type === "session_problem")
return "Session replay · Session problem";
if (source_product === "llm_analytics" && source_type === "evaluation")
return "LLM analytics · Evaluation";
return "AI observability · Evaluation";
if (source_product === "zendesk" && source_type === "ticket")
return "Zendesk · Ticket";
if (source_product === "github" && source_type === "issue")
Expand Down
2 changes: 1 addition & 1 deletion packages/agent/src/posthog-products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const POSTHOG_PRODUCTS = {
error_tracking: "Error tracking",
session_replay: "Session replay",
surveys: "Surveys",
llm_analytics: "LLM analytics",
llm_analytics: "AI observability",
data_warehouse: "Data warehouse",
cdp: "Data pipelines",
logs: "Logs",
Expand Down
Loading