🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(posthog): normalize hostname URL to prevent whitespace in DB (#12652)
Valery Meleshkina3123356a09a
diff --git a/web/src/features/posthog-integration/types.ts b/web/src/features/posthog-integration/types.tsindex 9d6c5a72f1..3cd35c1e32 100644--- a/web/src/features/posthog-integration/types.ts+++ b/web/src/features/posthog-integration/types.ts@@ -2,7 +2,10 @@ import { AnalyticsIntegrationExportSource } from "@langfuse/shared";import { z } from "zod/v4";export const posthogIntegrationFormSchema = z.object({- posthogHostname: z.string().url(),+ posthogHostname: z+ .string()+ .url()+ .transform((v) => new URL(v).href),posthogProjectApiKey: z.string().refine((v) => v.startsWith("phc_"), {message:"PostHog 'Project API Key' must start with 'phc_'. You can find it in the PostHog project settings.",